Bugzilla – Bug 1092
Problem building FreeBSD stack with g++ 4.5.2 (Ubuntu)
Last modified: 2011-04-16 09:05:46 EDT
When building ns-3-allinone-dev, I get the following: # Build NSC Entering directory `nsc' => python scons.py scons: Reading SConscript files ... Checking target architecure...(cached) x86 scons: done reading SConscript files. scons: Building targets ... g++ -o test/test_interface test/test_interface.o -Ltest -lsimulator -ldl LD_LIBRARY_PATH=/home/rmovac/ns-3-allinone/nsc/lib test/test_interface TEST: TestNewLinuxInterface ... PASS TEST: TestFreeBSDInterface ... /home/rmovac/ns-3-allinone/nsc/lib/libfreebsd5.3.so: undefined symbol: _GLOBAL_0_inetsw_I FAIL test/test_interface.cc:68: assertion 'ops->Load(stack_name) == 0' failed. TEST: TestOpenBSDInterface ... PASS TEST: TestLwipInterface ... PASS scons: *** [test/test_interface] Error 1 scons: building terminated because of errors. # Build NSC: failure (ignoring NSC) Leaving directory `nsc'
Can you confirm the version of ns-3 and NSC you are using here? I've tried this with gcc 4.4, building for 32-bit and it works there with the latest NSC. I don't currently have a gcc 4.5 setup that works just yet.
Sure, it's latest ns-3-allinone-dev.
Fixed in NSC hg tip.