Bugzilla – Full Text Bug Listing |
Summary: | object 'ns3-network--lib' was not found in uselib_local (required by 'bench-packets') | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Hemant <hemantr> |
Component: | click | Assignee: | Mitch Watrous <watrous> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | ns-bugs, suresh.lalith, tomh |
Priority: | P5 | ||
Version: | pre-release | ||
Hardware: | PC | ||
OS: | Linux |
Description
Hemant
2011-08-01 04:42:20 EDT
Hi Hemant, (In reply to comment #0) > Hi, > > While following the installation and testing of NS3 as given in > http://www.nsnam.org/wiki/index.php/Installation and > http://www.nsnam.org/wiki/index.php/Troubleshooting, when I run ./test.py, I > come across the following errors. Kindly help. > > Waf: Entering directory `/home/lab/repos/ns-3-allinone/ns-3-dev/build' > Waf: Leaving directory `/home/lab/repos/ns-3-allinone/ns-3-dev/build' > object 'ns3-network--lib' was not found in uselib_local (required by > 'bench-packets') > Waf died. Not running tests > > Prior to running ./test.py, I executed > > ./waf configure --enable-examples --enable-tests --enable-modules=core > That's because utils/wscript tries to build bench-packets along with the test-runner, and bench-packets requires the network module to be enabled. Any particular reason you need to do a build with just 'core' enabled? Thanks Suresh. If I execute ./waf configure --enable-examples --enable-tests instead of ./waf configure --enable-examples --enable-tests --enable-modules=core, then ./test.py does not give any problem. All 174 tests are passed successfully. Thanks. (In reply to comment #1) > Hi Hemant, > > (In reply to comment #0) > > Hi, > > > > While following the installation and testing of NS3 as given in > > http://www.nsnam.org/wiki/index.php/Installation and > > http://www.nsnam.org/wiki/index.php/Troubleshooting, when I run ./test.py, I > > come across the following errors. Kindly help. > > > > Waf: Entering directory `/home/lab/repos/ns-3-allinone/ns-3-dev/build' > > Waf: Leaving directory `/home/lab/repos/ns-3-allinone/ns-3-dev/build' > > object 'ns3-network--lib' was not found in uselib_local (required by > > 'bench-packets') > > Waf died. Not running tests > > > > Prior to running ./test.py, I executed > > > > ./waf configure --enable-examples --enable-tests --enable-modules=core > > > > That's because utils/wscript tries to build bench-packets along with the > test-runner, and bench-packets requires the network module to be enabled. > > Any particular reason you need to do a build with just 'core' enabled? wscript says this: obj = bld.create_ns3_program('bench-packets', ['network']) obj.source = 'bench-packets.cc' but build is failing on this program when only 'core' is enabled (In reply to comment #3) > wscript says this: > > obj = bld.create_ns3_program('bench-packets', ['network']) > obj.source = 'bench-packets.cc' > > but build is failing on this program when only 'core' is enabled I'm not really good with the build system stuff, but here's my hunch: - In the top level wscript, the code block between line 727 and 734 is what decides whether a program should be built or not depending on whether the dependencies for that program have been built. - Line 795 is where the utils/ folder is added to the build list, and no dependency checking is performed after that point. I guess the reason this went unnoticed for so long is that no one really does a build with only 'core' enabled (and no 'network'). :) Bug closed. ns-3-dev changeset: 710d6ff1d227 |