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

Mark Handley M.Handley at cs.ucl.ac.uk
Thu Nov 23 02:46:16 PST 2006


At first glance, it looks like your linux system is somewhat broken.

The first error is a problem compiling the standard C++ iostream
module - gcc 3.3 is complaining that some of the standard gcc 3.3
header files are illegal syntax.  Doesn't seem to be a XORP-specific
problem to me.  Maybe a bad compiler installation?

The second problem looks like rtrmgr doesn't want to start because it
can't find traceroute.  Make sure that traceroute is in your command
path.   I'm not certain if this is the only problem though, but I am
pretty sure that rtrmgr failed to start properly.

The 3rd problem is a segfault in ld.  This seems to point to a broken
linux install, or perhaps a machine that has flakey hardware.  If the
results are non-deterministic (things fail in a different place each
time), then I'd suspect bad hardware.  Of course it could be something
else, but it doesn't look good from the errors you've show us.

 - Mark

On 11/23/06, David H. Guerrero <elcinturapartida at yahoo.es> wrote:
>
> 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
>
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
>



More information about the Xorp-hackers mailing list