[Xorp-hackers] Compiler error when trying to compile XORP

David H. Guerrero elcinturapartida at yahoo.es
Wed Nov 22 23:48:36 PST 2006


Hello all, I have been trying to compile the lastest XORP code from the anon-CVS repository (VERSION 1.4-WIP) on Debian 4.0 Etch. 

david at xorp-hp:~/xorp$ uname -a
Linux xorp-hp 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686 GNU/Linux
david at xorp-hp:~/xorp$ dpkg -l gc* | grep ii
ii  gcc            3.3.5-3        The GNU C compiler
ii  gcc-3.3        3.3.6-13       The GNU C compiler
ii  gcc-3.3-base   3.3.6-13       The GNU Compiler Collection (base package)
ii  gcc-3.4        3.4.6-4        The GNU C compiler
ii  gcc-3.4-base   3.4.6-4        The GNU Compiler Collection (base package)
ii  gcc-4.1-base   4.1.1-19       The GNU Compiler Collection (base package)
david at xorp-hp:~/xorp$ dpkg -l g+* | grep ii
ii  g++            3.3.5-3        The GNU C++ compiler
ii  g++-3.3        3.3.6-13       The GNU C++ compiler
ii  g++-3.4        3.4.6-4        The GNU C++ compiler

I get error with gcc-3.3 and g++-3.3
...
source='xrl_pf_stcp.cc' object='xrl_pf_stcp.lo' libtool=yes \
        depfile='.deps/xrl_pf_stcp.Plo' tmpdepfile='.deps/xrl_pf_stcp.TPlo' \
        depmode=gcc3 /bin/sh ../config/depcomp \
        /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Wstrict-prototypes -Woverloaded-virtual -ftemplate-depth-25 -pipe -c -o xrl_pf_stcp.lo `test -f xrl_pf_stcp.cc || echo './'`xrl_pf_stcp.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Wstrict-prototypes -Woverloaded-virtual -ftemplate-depth-25 -pipe -c xrl_pf_stcp.cc -MT xrl_pf_stcp.lo -MD -MP -MF .deps/xrl_pf_stcp.TPlo -o xrl_pf_stcp.o
echo timestamp > xrl_pf_stcp.lo
source='xrl_pf_stcp_ph.cc' object='xrl_pf_stcp_ph.lo' libtool=yes \
        depfile='.deps/xrl_pf_stcp_ph.Plo' tmpdepfile='.deps/xrl_pf_stcp_ph.TPlo' \
        depmode=gcc3 /bin/sh ../config/depcomp \
        /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Wstrict-prototypes -Woverloaded-virtual -ftemplate-depth-25 -pipe -c -o xrl_pf_stcp_ph.lo `test -f xrl_pf_stcp_ph.cc || echo './'`xrl_pf_stcp_ph.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Wstrict-prototypes -Woverloaded-virtual -ftemplate-depth-25 -pipe -c xrl_pf_stcp_ph.cc -MT xrl_pf_stcp_ph.lo -MD -MP -MF .deps/xrl_pf_stcp_ph.TPlo -o xrl_pf_stcp_ph.o
In file included from /usr/include/c++/3.3/bits/locale_facets.h:528,
                 from /usr/include/c++/3.3/bits/basic_ios.h:44,
                 from /usr/include/c++/3.3/ios:51,
                 from /usr/include/c++/3.3/ostream:45,
                 from /usr/include/c++/3.3/iostream:45,
                 from ../libxorp/xorp.h:31,
                 from xrl_pf_stcp_ph.cc:18:
/usr/include/c++/3.3/bits/codecvt.h:179: error: syntax error before `&' token
/usr/include/c++/3.3/bits/codecvt.h:185: error: syntax error before `&' token
/usr/include/c++/3.3/bits/codecvt.h:189: error: syntax error before `&' token
make[2]: *** [xrl_pf_stcp_ph.lo] Error 1
make[2]: Leaving directory `/home/david/xorp/libxipc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/david/xorp'
make: *** [all] Error 2

Even though XORP compiles with gcc-3.4 and g++-3.4 and I can install (make install), I get error when running xoprsh:

david at xorp-hp:/usr/local/xorp/bin$ ./xorpsh
[ 2006/11/22 19:52:04 WARNING xorpsh RTRMGR ] [Operational Command File: /usr/lo                                              cal/xorp/etc/templates/misc.cmds line 39]: Executable file not found: traceroute                                              6
Waiting for xorp_rtrmgr...
[ 2006/11/22 19:52:34  ERROR xorpsh:5858 RTRMGR +90 xorpsh_main.cc wait_for_xrl_router_ready ] XrlRouter failed.  No Finder?
[ 2006/11/22 19:52:34  ERROR xorpsh:5858 RTRMGR +897 xorpsh_main.cc main ] xorpsh exiting due to an init error: Failed to connect to the router manager
david at xorp-hp:/usr/local/xorp/bin$ ./xorpsh
[ 2006/11/22 20:04:48 WARNING xorpsh RTRMGR ] [Operational Command File: /usr/local/xorp/etc/templates/misc.cmds line 39]: Executable file not found: traceroute6
Waiting for xorp_rtrmgr...
[ 2006/11/22 20:05:18  ERROR xorpsh:6213 RTRMGR +90 xorpsh_main.cc wait_for_xrl_router_ready ] XrlRouter failed.  No Finder?
[ 2006/11/22 20:05:18  ERROR xorpsh:6213 RTRMGR +897 xorpsh_main.cc main ] xorpsh exiting due to an init error: Failed to connect to the router manager

Furthermore, I get error when running 'make check' after compile:

make[2]: `test_finder_messenger' is up to date.
make[2]: `test_finder_msgs' is up to date.
make[2]: `test_finder' is up to date.
make[2]: `test_finder_events' is up to date.
make[2]: `test_xrl_parser' is up to date.
/bin/sh ../libtool --mode=link /usr/bin/g++-3.4  -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe   -o test_finder_to  test_finder_to.o libfinder.la ./libfinder.la ./libxipc.la ../libxorp/libxorp.la ../libcomm/libcomm.la -lcrypto 
/usr/bin/g++-3.4 -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -o test_finder_to test_finder_to.o  ./.libs/libfinder.a ./.libs/libxipc.a ../libxorp/.libs/libxorp.a ../libcomm/.libs/libcomm.a -lcrypto
make[2]: Leaving directory `/home/david/xorp/libxipc'
make[1]: Leaving directory `/home/david/xorp/libxipc'
collect2: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [test_finder_to] Error 1
make[2]: Leaving directory `/home/david/xorp/libxipc'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/david/xorp/libxipc'
make: *** [check-recursive] Error 1

Any advice will be much appreciated.

Thanks

David 





		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com



More information about the Xorp-hackers mailing list