[Xorp-users] Problems verifying compalation
Christopher David Chapman
c.d.chapman at reading.ac.uk
Fri Aug 17 01:26:11 PDT 2007
First my deep thanks to Pavlin for all his support.
Pavlin has been working with me to resolve this off-list and I thought I should sum up how we sorted it.
It turns out that the problem was caused by the SSP protection of the Gentoo hardened toolchain causing run-time problems. To resolve the issue I used gcc-config to switch the gcc profile to "hardenednossp" and recompiled xorp.
I then got some errors while running xorp_rtrmgr:
[ 2007/08/15 17:35:56 INFO xorp_rtrmgr:6773 RTRMGR +239 master_conf_tree.cc execute ] Changed modules: interfaces, fea, mfea4, rib, fib2mrib, igmp, pimsm4
[ 2007/08/15 17:35:56 INFO xorp_rtrmgr:6773 RTRMGR +96 module_manager.cc execute ] Executing module: interfaces (fea/xorp_fea)
[ 2007/08/15 17:35:56 ERROR xorp_fea:6774 LIBCOMM +114 comm_sock.c comm_sock_open ] Error opening socket (domain = 10, type = 2, protocol = 0): Address family not supported by protocol
[ 2007/08/15 17:35:56 ERROR xorp_fea:6774 LIBCOMM +114 comm_sock.c comm_sock_open ] Error opening socket (domain = 10, type = 2, protocol = 0): Address family not supported by protocol
This was because I have disabled IPV6 in the kernel and was fixed by recompiling xorp after re-running the configuration with the "--disable-ipv6" switch.
Cheers
Chris
"Why is Gaffa tape like the force?
Because it has a light side, a dark side, and it holds the universe together!"
----------------===========----------------
Christopher Chapman
Systems Programmer ITNG
School of Systems Engineering
The University of Reading
E-mail: c.d.chapman at reading.ac.uk
Phone: +44 (0)118 3787664
School of Systems Engineering
The University of Reading
PO Box 225
Whiteknights
Reading
RG6 6AY
----------------===========----------------
-----Original Message-----
From: Pavlin Radoslavov [mailto:pavlin at icir.org]
Sent: 02 August 2007 17:51
To: Christopher David Chapman
Cc: xorp-users at xorp.org
Subject: Re: [Xorp-users] Problems verifying compalation
Christopher David Chapman <c.d.chapman at reading.ac.uk> wrote:
> Hi Folks,
>
> I am trying to get xorp running under gentoo. I compiled the code without any errors but running the verification errors while testing test_vif. A check on google didn't turn up any hits, Has anybody else seen this? Or got it working under gentoo?
>
> Error as follows:
>
> ---------------
> PASS
> PASS: test_trie
> PASS: test_types
> PASS: test_utils
> /bin/sh: line 4: 7241 Segmentation fault ${dir}$tst
> FAIL: test_vif
> ====================
> 2 of 27 tests failed
> ====================
> make[2]: *** [check-TESTS] Error 1
> make[2]: Leaving directory `/usr/src/xorp-1.4/libxorp'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/usr/src/xorp-1.4/libxorp'
> make: *** [check-recursive] Error 1
What Gentoo version and what compiler are you using?
We have Gentoo 2006.1 with gcc-4.1.1 and we don't see that problem.
Can you run gdb on the coredump file and trace where it failed:
gdb test_vif -c <corefile>
bt
Thanks,
Pavlin
> Cheers
> Chris
>
>
> "Why is Gaffa tape like the force?
> Because it has a light side, a dark side, and it holds the universe together!"
>
> ----------------===========----------------
> Christopher Chapman
> Systems Programmer ITNG
> School of Systems Engineering
> The University of Reading
>
> E-mail: c.d.chapman at reading.ac.uk
> Phone: +44 (0)118 3787664
>
> School of Systems Engineering
> The University of Reading
> PO Box 225
> Whiteknights
> Reading
> RG6 6AY
> ----------------===========----------------
>
>
>
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
More information about the Xorp-users
mailing list