Error while building ns-3

713 views
Skip to first unread message

ara...@ncsu.edu

unread,
Apr 13, 2014, 7:38:30 PM4/13/14
to ns-3-...@googlegroups.com
Hi Everyone

While building the ns-3 code, i am getting the following error. Please help me to resolve this. Let me know if any additional information is required. 
Code is downloaded from the following link https://github.com/bestephe/ns-3-tcpbolt


[1761/1921] cxxshlib: build/src/dcn/model/fivetuple.cc.1.o build/src/dcn/model/hash-function-impl.cc.1.o build/src/dcn/model/hash-routing.cc.1.o build/src/dcn/model/hsieh.c.1.o build/src/dcn/model/qbb-net-device.cc.1.o build/src/dcn/helper/fat-tree-helper.cc.1.o build/src/dcn/helper/ipv4-hash-routing-helper.cc.1.o build/src/dcn/model/priority-queue.cc.1.o build/src/dcn/model/priority-tag.cc.1.o build/src/dcn/model/order-tag.cc.1.o -> build/libns3-dev-dcn-debug.so
[1761/1921] cxxprogram: build/examples/ipv6/test-ipv6.cc.5.o -> build/examples/ipv6/ns3-dev-test-ipv6-debug
[1762/1921] cxxshlib: build/src/nix-vector-routing/model/ipv4-nix-vector-routing.cc.1.o build/src/nix-vector-routing/helper/ipv4-nix-vector-helper.cc.1.o -> build/libns3-dev-nix-vector-routing-debug.so
./libns3-dev-internet-debug.so: undefined reference to `ns3::PriorityTag::PriorityTag()'
./libns3-dev-internet-debug.so: undefined reference to `ns3::PriorityTag::GetPriority() const'
./libns3-dev-internet-debug.so: undefined reference to `ns3::PriorityTag::SetPriority(double)'
./libns3-dev-internet-debug.so: undefined reference to `vtable for ns3::PriorityTag'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/amith1987/ns-3-tcpbolt-master/build'
Build failed
 -> task in 'test-ipv6' failed (exit status 1): 
{task 57106192: cxxprogram test-ipv6.cc.5.o -> ns3-dev-test-ipv6-debug}
['/usr/bin/g++', '-pthread', 'examples/ipv6/test-ipv6.cc.5.o', '-o', '/home/amith1987/ns-3-tcpbolt-master/build/examples/ipv6/ns3-dev-test-ipv6-debug', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-lns3-dev-point-to-point-debug', '-lns3-dev-internet-debug', '-lns3-dev-mpi-debug', '-lns3-dev-bridge-debug', '-lns3-dev-network-debug', '-lns3-dev-core-debug', '-lrt']

Thanks and Regards,
Amith Reddy

Tommaso Pecorella

unread,
Apr 14, 2014, 2:21:43 AM4/14/14
to ns-3-...@googlegroups.com
Hi,

I’m here to kick ass and chew bubblegum and I’m all out of bubblegum.
Fortunately for you, I'm not going to direct my rage to you. Plus, I promised to be not be too much aggressive, so I'll go buy some bubblegums.

[20 minutes later, with some bubblegums]

The git site states "The modified ns-3-dev code used in TCP-Bolt (Infocom 2014)". Great... somebody working on an up-to-date ns-3 release.
WRONG. It's a ns-3-dev somewhere in between 3.16 and 3.17, and it doesn't compile on my machines.
I hate when people turn me down... [grab another bubblegum].

I wish I could be ore precise, but without a building system I can't.
The error is from the linker. The "PriorityTag" class is in a module not being linked with another module, apparently the "internet" one.
src/internet/wscript, line 95
    obj = bld.create_ns3_module('internet', ['bridge', 'mpi', 'network', 'core'])
must be
    obj = bld.create_ns3_module('internet', ['bridge', 'mpi', 'network', 'core', 'dcn'])

... and this dependancy makes me chew a LOT of bubblegums.

BTW, more stuff similar to this may come up. The solution is always similar.

Hope this will help you fix the issues.
 
T.
Reply all
Reply to author
Forward
0 new messages