Solved [Solved] Building CDE on FreeBSD 10.0

I am trying to build and install CDE on my installation of FreeBSD 10.0, but it's returning errors on make World.

This is the error message:
Code:
./config/cf/FreeBSD.cf:81:35: error: '#' is not followed by a macro parameter
#define IncludeMakefile(file)   @@# dependencies are in .depend
                                    ^
In file included from Imakefile.c:9:
In file included from ./config/cf/Imake.tmpl:148:
./config/cf/Imake.rules:1196:27: warning: empty character constant
      [-Winvalid-pp-token]
        for flag in ${MAKEFLAGS} ''; do \                               @@\
                                 ^
In file included from Imakefile.c:9:
./config/cf/Imake.tmpl:1177:10: fatal error: ' cde .rules' file not found
#include ProjectRulesFile
         ^
./config/cf/Imake.tmpl:1175:35: note: expanded from macro 'ProjectRulesFile'
# define ProjectRulesFile       Concat3(<,TopLevelProject,.rules>)
                                        ^
./config/cf/Imake.rules:227:23: note: expanded from macro 'Concat3'
#define Concat3(a,b,c)a/**/b/**/c
                      ^
1 warning and 2 errors generated.
./config/imake/imake: Exit code 1.
Stop.
*** Error code 1

Stop.
make[1]: stopped in /root/cdesktopenv-code/cde
*** Error code 1

Stop.
make: stopped in /root/cdesktopenv-code/cde

Does anybody have an idea of how I can fix this? Thanks in advance.

PS: I already made symbolic links to gcc46 and g++46 in /usr/local/bin.
 
Re: Building CDE on FreeBSD 10.0

Oh, I almost forgot here is my Makefile.
Code:
# $TOG: Makefile /main/15 1999/10/12 09:33:30 mgreess $
          CC = /usr/local/bin/gcc46
          cc = /usr/local/bin/gcc46
         CPP = /usr/local/bin/g++46
         CXX = /usr/local/bin/g++46
         C++ = /usr/local/bin/g++46
         cpp = /usr/local/bin/g++46
         cxx = /usr/local/bin/g++46
         c++ = /usr/local/bin/g++46
     RELEASE = Release 2.2.0
     PRODUCT = CDE
       SHELL = /bin/sh
          RM = rm -f
          MV = mv
        MAKE = make
       NMAKE = nmake
   WORLDOPTS =
WIN32WORLDOPTS = -i
         TOP = .
 CURRENT_DIR = .
   CONFIGSRC = $(TOP)/config
    IMAKESRC = $(CONFIGSRC)/imake
   DEPENDSRC = $(CONFIGSRC)/makedepend
   DEPENDTOP = ../..
    IMAKETOP = ../..
    IRULESRC = $(CONFIGSRC)/cf
       IMAKE = $(IMAKESRC)/imake
   IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)
   MAKE_OPTS = -f xmakefile
    MAKE_CMD = $(MAKE) $(MAKE_OPTS)
   NMAKE_CMD = $(NMAKE) $(MAKE_OPTS)
       FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"

all:
        @$(MAKE_CMD) xmakefile-exists || $(MAKE) all-initial
        @$(MAKE_CMD) $@

all-initial:
        @echo "Please begin by using make World or make Makefile.  You may"
        @echo "find it necessary to set the make variable BOOTSTRAPCFLAGS in"
        @echo "order to compile imake.  One common example is"
        @echo "\"BOOTSTRAPCFLAGS=-I<dir>\", where <dir> is the top of your"
        @echo "X11R6 source tree.  Remember to check the configuration"
        @echo "parameters in the config directory."
        @echo
        @echo "We recommend that you read the release notes carefully before"
        @echo "proceeding; they can be found under the doc directory.  If"
        @echo "the top-level Makefile gets corrupted, copy Makefile.ini to"
        @echo "Makefile and try again.  Do not name your log file make.log or"
        @echo "it will be deleted."

World:
        @echo ""
        @echo "Building $(RELEASE) of $(PRODUCT)"
        @echo ""
        @case "x$(BOOTSTRAPCFLAGS)" in x) \
        echo I hope you checked the configuration parameters in $(IRULESRC) ; \
        echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
        echo "" ; \
        ;; esac;
        @date
        @echo ""
        cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
        $(MAKE) $(MFLAGS) Makefile.boot
        $(MAKE_CMD) $(MFLAGS) VerifyOS
        $(MAKE_CMD) $(MFLAGS) Makefiles
        $(MAKE_CMD) $(MFLAGS) Makefiles.doc
        $(MAKE_CMD) $(MFLAGS) clean
        $(MAKE_CMD) $(MFLAGS) clean.doc
        $(MAKE_CMD) $(MFLAGS) includes
        $(MAKE_CMD) $(MFLAGS) includes.doc
        $(MAKE_CMD) $(MFLAGS) depend
        $(MAKE_CMD) $(MFLAGS) depend.doc
        $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
        $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
        @echo ""
        @date
        @echo ""
        @echo "Full build of $(RELEASE) of $(PRODUCT) complete."
        @echo ""


World.dev:
        @echo ""
        @echo "Building $(RELEASE) of $(PRODUCT) excluding DOC"
        @echo ""
        @case "x$(BOOTSTRAPCFLAGS)" in x) \
        echo I hope you checked the configuration parameters in $(IRULESRC) ; \
        echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
        echo "" ; \
        ;; esac;
        @date
        @echo ""
        cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
        $(MAKE) $(MFLAGS) Makefile.boot
        $(MAKE_CMD) $(MFLAGS) VerifyOS
        $(MAKE_CMD) $(MFLAGS) Makefiles
        $(MAKE_CMD) $(MFLAGS) clean
        $(MAKE_CMD) $(MFLAGS) includes
        $(MAKE_CMD) $(MFLAGS) depend
        $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
        @echo ""
        @date
        @echo ""
        @echo "Full build of $(RELEASE) of $(PRODUCT) excluding DOC complete."
        @echo ""

World.doc:
        @echo ""
        @echo "Building $(RELEASE) of $(PRODUCT) DOC"
        @echo ""
        @case "x$(BOOTSTRAPCFLAGS)" in x) \
        echo I hope you checked the configuration parameters in $(IRULESRC) ; \
        echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
        echo "" ; \
        ;; esac;
        @date
        @echo ""
        cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
        $(MAKE) $(MFLAGS) Makefile.boot
        $(MAKE_CMD) $(MFLAGS) VerifyOS
        $(MAKE_CMD) $(MFLAGS) Makefiles.doc
        $(MAKE_CMD) $(MFLAGS) clean.doc
        $(MAKE_CMD) $(MFLAGS) includes.doc
        $(MAKE_CMD) $(MFLAGS) depend.doc
        $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
        @echo ""
        @date
        @echo ""
        @echo "Full build of $(RELEASE) of $(PRODUCT) DOC complete."
        @echo ""

.PRECIOUS: Makefile

# This is just a sequence of bootstrapping steps we have to do.
# The steps are listed as separate targets so clearmake can wink in
# the Makefile.proto files.
Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKESR
C)/Makefile.proto imake.bootstrap

imake.proto:
        cd $(IMAKESRC) && $(MAKE) $(FLAGS)
        $(RM) $(DEPENDSRC)/Makefile.proto

$(DEPENDSRC)/Makefile.proto:
        $(IMAKE_CMD) -s $(DEPENDSRC)/Makefile.proto -f $(DEPENDSRC)/Imakefile -DT
OPDIR=$(DEPENDTOP) -DCURDIR=$(DEPENDSRC)

depend.bootstrap:
        cd $(DEPENDSRC) && $(RM) -r Makefile Makefile.dep makedepend *.o bootstra
p
        cd $(DEPENDSRC) && $(MAKE) -f Makefile.proto bootstrap

$(IMAKESRC)/Makefile.proto:
        $(IMAKE_CMD) -s $(IMAKESRC)/Makefile.proto -f $(IMAKESRC)/Imakefile -DTOP
DIR=$(IMAKETOP) -DCURDIR=$(IMAKESRC)

imake.bootstrap:
        cd $(IMAKESRC) && $(MAKE) -f Makefile.proto bootstrapdepend
        cd $(IMAKESRC) && $(MAKE) $(FLAGS) bootstrap
        cd $(IMAKESRC) && $(MAKE) -f Makefile.proto all
        -@if [ -f xmakefile ]; then set -x; \
          $(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak; \
          else exit 0; fi
        $(MAKE) $(MFLAGS) xmakefile

Makefile::
        $(MAKE) $(MFLAGS) xmakefile

xmakefile: Imakefile
        $(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

World.Win32:
        @echo :
        @echo Building $(RELEASE) of $(PRODUCT).
        @echo :
        @echo :
        cd $(IMAKESRC)
        $(NMAKE) -f Makefile.ini clean.Win32
        $(NMAKE) -f Makefile.ini imake.exe
        cd ..\..
        -if exist xmakefile.bak del xmakefile.bak
        -if exist xmakefile ren xmakefile xmakefile.bak
        $(IMAKE:/=\) -s xmakefile -I$(IRULESRC) $(IMAKE_DEFINES) -DTOPDIR=$(TOP)
-DCURDIR=$(CURRENT_DIR)
        $(NMAKE_CMD) $(MFLAGS) VerifyOS
        $(NMAKE_CMD) $(MFLAGS) Makefiles
        $(NMAKE_CMD) $(MFLAGS) clean
        $(NMAKE_CMD) $(MFLAGS) includes
        $(NMAKE_CMD) $(MFLAGS) depend
        $(NMAKE_CMD) $(MFLAGS) $(WIN32WORLDOPTS)
        @echo :
        @echo :
        @echo Full build of $(RELEASE) of $(PRODUCT) complete.
        @echo :


# don't allow any default rules in this Makefile
.SUFFIXES:

# a copy of every rule that might be invoked at top level

clean:
            $(MAKE_CMD) $@
dangerous_strip_clean:
            $(MAKE_CMD) $@
depend:
            $(MAKE_CMD) $@
Everything:
            $(MAKE_CMD) $@
external.ln:
            $(MAKE_CMD) $@
includes:
            $(MAKE_CMD) $@
install.ln:
            $(MAKE_CMD) $@
install.man:
            $(MAKE_CMD) $@
install:
            $(MAKE_CMD) $@
Makefiles:
            $(MAKE_CMD) $@
man_keywords:
            $(MAKE_CMD) $@
tags:
            $(MAKE_CMD) $@
VerifyOS:
            $(MAKE_CMD) $@

# dev versions

Everything.dev:
            $(MAKE_CMD) $@

# doc versions

clean.doc:
            $(MAKE_CMD) $@
depend.doc:
            $(MAKE_CMD) $@
Everything.doc:
            $(MAKE_CMD) $@
includes.doc:
            $(MAKE_CMD) $@
install.man.doc:
            $(MAKE_CMD) $@
install.doc:
            $(MAKE_CMD) $@
Makefiles.doc:
            $(MAKE_CMD) $@
tags.doc:
            $(MAKE_CMD) $@
 
Re: Building CDE on FreeBSD 10.0

cenu said:
I am trying to build and install CDE on my installation of FreeBSD 10.0, but it's returning errors on make World.

This is the error message:
Code:
./config/cf/FreeBSD.cf:81:35: error: '#' is not followed by a macro parameter
#define IncludeMakefile(file)   @@# dependencies are in .depend
                                    ^
In file included from Imakefile.c:9:
In file included from ./config/cf/Imake.tmpl:148:
./config/cf/Imake.rules:1196:27: warning: empty character constant
      [-Winvalid-pp-token]
        for flag in ${MAKEFLAGS} ''; do \                               @@\
                                 ^
In file included from Imakefile.c:9:
./config/cf/Imake.tmpl:1177:10: fatal error: ' cde .rules' file not found
#include ProjectRulesFile
         ^
./config/cf/Imake.tmpl:1175:35: note: expanded from macro 'ProjectRulesFile'
# define ProjectRulesFile       Concat3(<,TopLevelProject,.rules>)
                                        ^
./config/cf/Imake.rules:227:23: note: expanded from macro 'Concat3'
#define Concat3(a,b,c)a/**/b/**/c
                      ^
1 warning and 2 errors generated.
./config/imake/imake: Exit code 1.
Stop.
*** Error code 1

Stop.
make[1]: stopped in /root/cdesktopenv-code/cde
*** Error code 1

Stop.
make: stopped in /root/cdesktopenv-code/cde

Does anybody have an idea of how I can fix this? Thanks in advance.

PS: I already made symbolic links to gcc46 and g++46 in /usr/local/bin.

The cf files and imaketmpl.h must be edited to remove references to /usr/bin/cpp in favour of /usr/local/bin/cpp46 (assuming you installed GCC 4.6). Alternatively you may temporarily rename /usr/bin/cpp to something else, and symlink cpp46 to /usr/bin/cpp.
 
Re: Building CDE on FreeBSD 10.0

JX8P said:
cenu said:
I am trying to build and install CDE on my installation of FreeBSD 10.0, but it's returning errors on make World.

This is the error message:
Code:
./config/cf/FreeBSD.cf:81:35: error: '#' is not followed by a macro parameter
#define IncludeMakefile(file)   @@# dependencies are in .depend
                                    ^
In file included from Imakefile.c:9:
In file included from ./config/cf/Imake.tmpl:148:
./config/cf/Imake.rules:1196:27: warning: empty character constant
      [-Winvalid-pp-token]
        for flag in ${MAKEFLAGS} ''; do \                               @@\
                                 ^
In file included from Imakefile.c:9:
./config/cf/Imake.tmpl:1177:10: fatal error: ' cde .rules' file not found
#include ProjectRulesFile
         ^
./config/cf/Imake.tmpl:1175:35: note: expanded from macro 'ProjectRulesFile'
# define ProjectRulesFile       Concat3(<,TopLevelProject,.rules>)
                                        ^
./config/cf/Imake.rules:227:23: note: expanded from macro 'Concat3'
#define Concat3(a,b,c)a/**/b/**/c
                      ^
1 warning and 2 errors generated.
./config/imake/imake: Exit code 1.
Stop.
*** Error code 1

Stop.
make[1]: stopped in /root/cdesktopenv-code/cde
*** Error code 1

Stop.
make: stopped in /root/cdesktopenv-code/cde

Does anybody have an idea of how I can fix this? Thanks in advance.

PS: I already made symbolic links to gcc46 and g++46 in /usr/local/bin.

The cf files and imaketmpl.h must be edited to remove references to /usr/bin/cpp in favour of /usr/local/bin/cpp46 (assuming you installed GCC 4.6). Alternatively you may temporarily rename /usr/bin/cpp to something else, and symlink cpp46 to /usr/bin/cpp.
I already tried both, to no avail.
 
Re: Building CDE on FreeBSD 10.0

Alright, I've some progress, but then I ran into this error.
Code:
CC -o msgsets msgsets.o -O2 -fno-strict-aliasing     -L../../../../exports/lib  -L../../../../imports/motif/lib -L../../../../imports/x11/lib   -L/usr/dt/lib  -L/usr/local/lib -L/usr/local/lib     
msgsets.o: In function `yylex()':
msgsets.C:(.text+0x39f): undefined reference to `VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
msgsets.C:(.text+0x3a6): undefined reference to `VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
msgsets.C:(.text+0x52e): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0x59c): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0x5fe): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0x646): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0x650): undefined reference to `operator new(unsigned long)'
msgsets.C:(.text+0x65f): undefined reference to `std::ios_base::ios_base()'
msgsets.C:(.text+0x66a): undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >'
msgsets.C:(.text+0x6c8): undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'
msgsets.C:(.text+0x6d7): undefined reference to `vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
msgsets.C:(.text+0x6df): undefined reference to `vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
msgsets.C:(.text+0x6e7): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >'
msgsets.C:(.text+0x71c): undefined reference to `std::locale::locale()'
msgsets.C:(.text+0x724): undefined reference to `vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
msgsets.C:(.text+0x736): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text+0x73e): undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'
msgsets.C:(.text+0x799): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0x7f4): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0x9b6): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0xa0f): undefined reference to `std::cout'
msgsets.C:(.text+0xa14): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0xacd): undefined reference to `std::cout'
msgsets.C:(.text+0xad9): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text+0xb35): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
msgsets.C:(.text+0xc20): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
msgsets.C:(.text+0xc2c): undefined reference to `std::cout'
msgsets.C:(.text+0xc37): undefined reference to `std::cout'
msgsets.C:(.text+0xc42): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
msgsets.C:(.text+0xc58): undefined reference to `std::basic_ios<char, std::char_traits<char> >::~basic_ios()'
msgsets.C:(.text+0xc60): undefined reference to `operator delete(void*)'
msgsets.o: In function `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x1d): undefined reference to `vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x28): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x35): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x3a): undefined reference to `std::locale::~locale()'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x76): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0xd6): undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::~basic_streambuf()'
msgsets.o: In function `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x1d): undefined reference to `vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x28): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x35): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x3a): undefined reference to `std::locale::~locale()'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x42): undefined reference to `operator delete(void*)'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x7e): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
msgsets.C:(.text._ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0xde): undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::~basic_streambuf()'
msgsets.o: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&)':
msgsets.C:(.text._ZNSsC2IPcEET_S1_RKSaIcE[_ZNSsC5IPcEET_S1_RKSaIcE]+0x3c): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)'
msgsets.C:(.text._ZNSsC2IPcEET_S1_RKSaIcE[_ZNSsC5IPcEET_S1_RKSaIcE]+0x5e): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text._ZNSsC2IPcEET_S1_RKSaIcE[_ZNSsC5IPcEET_S1_RKSaIcE]+0x92): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text._ZNSsC2IPcEET_S1_RKSaIcE[_ZNSsC5IPcEET_S1_RKSaIcE]+0xab): undefined reference to `std::__throw_logic_error(char const*)'
msgsets.C:(.text._ZNSsC2IPcEET_S1_RKSaIcE[_ZNSsC5IPcEET_S1_RKSaIcE]+0xb8): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)'
msgsets.o: In function `main':
msgsets.C:(.text.startup+0x10b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msgsets.C:(.text.startup+0x11c): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text.startup+0x132): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text.startup+0x154): undefined reference to `std::cout'
msgsets.C:(.text.startup+0x159): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text.startup+0x168): undefined reference to `std::cout'
msgsets.C:(.text.startup+0x179): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
msgsets.C:(.text.startup+0x181): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::flush()'
msgsets.C:(.text.startup+0x1ab): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text.startup+0x1e5): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msgsets.C:(.text.startup+0x1f6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
msgsets.C:(.text.startup+0x234): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
msgsets.C:(.text.startup+0x243): undefined reference to `std::cout'
msgsets.C:(.text.startup+0x24e): undefined reference to `std::cout'
msgsets.C:(.text.startup+0x259): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
msgsets.C:(.text.startup+0x2d2): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msgsets.C:(.text.startup+0x2e2): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
msgsets.C:(.text.startup+0x2f9): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
msgsets.C:(.text.startup+0x393): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
msgsets.C:(.text.startup+0x3c8): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
msgsets.C:(.text.startup+0x3da): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
msgsets.o: In function `_GLOBAL__sub_I_sets':
msgsets.C:(.text.startup+0x4aa): undefined reference to `std::ios_base::Init::Init()'
msgsets.C:(.text.startup+0x4b9): undefined reference to `std::ios_base::Init::~Init()'
msgsets.o:(.eh_frame+0xeb): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
*** Error code 1
 
Re: Building CDE on FreeBSD 10.0

I found the solution here, and it works! :D http://sourceforge.net/p/cdesktopenv/mailman/message/32361417/

So go ahead and use it. And if the latest version of CDE [2.2.1 at the time of this post] crashes, (which it will if you try to perform certain actions) please know that it isn't FreeBSD 10.0's fault; there have been complaints about its stability from all of its users across all platforms. :\
 
I've been working on a better solution than just renaming things on your system (especially in /usr/bin). I made this patch that you can apply to the cde codebase. It has changes to a few config files and the imake sources. It depends on lang/gcc.
 

Attachments

  • freebsd.txt
    2.7 KB · Views: 270
Back
Top