Bug 1092

Summary: Problem building FreeBSD stack with g++ 4.5.2 (Ubuntu)
Product: nsc Reporter: Vedran Miletić <vedran>
Component: FreeBSDAssignee: Sam Jansen <sam.jansen>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: unspecified   
Hardware: All   
OS: All   

Description Vedran Miletić 2011-04-03 15:45:09 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'
Comment 1 Sam Jansen 2011-04-12 13:28:44 EDT
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.
Comment 2 Vedran Miletić 2011-04-13 04:47:29 EDT
Sure, it's latest ns-3-allinone-dev.
Comment 3 Sam Jansen 2011-04-16 09:05:46 EDT
Fixed in NSC hg tip.