Bug 545 - After installing ns-3 (3.4 stable) the regression test test-tcp-nsc-lfn fails
After installing ns-3 (3.4 stable) the regression test test-tcp-nsc-lfn fails
Status: CLOSED FIXED
Product: nsc
Classification: Unclassified
Component: Linux
unspecified
PC Linux
: P3 normal
Assigned To: Sam Jansen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-10 00:16 UTC by Damian Lezama
Modified: 2009-04-14 23:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damian Lezama 2009-04-10 00:16:50 UTC
I installed according to the instructions and everything works except for this test. I have 2.6.27-11 kernel, ubuntu distribution. I get the following (please note that the kernel version in the error doesn't match mine!) :

[635/639] regression-test (test-tcp-nsc-lfn)
liblinux2.6.26.so: cannot open shared object file: No such file or directory
Command ['/home/damian/repos/ns-3-allinone/ns-3.4/build/debug/examples/tcp-nsc-lfn', '--ns3::OnOffApplication::DataRate=40000', '--runtime=20'] exited with code -11
FAIL test-tcp-nsc-lfn
Comment 1 Sam Jansen 2009-04-14 17:49:25 UTC
Sorry for the late reply, I'm quite busy as of late. Some notes on this:

1. The version of Linux there has no relation to the version of Linux you are running on your machine. This is the version of Linux built in the NSC, which allows simulation of this version.

2. I think if ns-3 is configured with NSC, it should automatically build the NSC and then automatically find the shared libraries (the error is not finding the build shared library). But I'm a little hazy on the exact structure right now.

Perhaps you could reply with some more information:

a) The exact command-line run to produce this error. Feel free to attach an entire transcript of a build session, possibly using the "script" utility to save a text file. e.g., "script my_build_log.txt; ./waf; ... ; exit"

b) What version of ns-3 you are using.

c) What command-line you used to configure ns-3, and if possible, include the output (perhaps do a clean build before doing step (a) above)

Alternatively, fw might have some thoughts on tracking this down off the top of his head.
Comment 2 Florian Westphal 2009-04-14 19:25:05 UTC
works for me (using ns-allinone-3.4.tar.bz2).
Most likely nsc was not compiled at all.
Could you please post the exact commands you used
to set up ns3?
If nsc was built, and the file liblinux2.6.26.so does exist
in the nsc directory (should be 'nsc-0.5.0/linux-2.6.26/liblinux2.6.26.so')
the library is not found for some reason. In that case please
run ./waf --shell followed by "echo $LD_LIBRARY_PATH" and post the output
of that.

Comment 3 Damian Lezama 2009-04-14 23:53:22 UTC
(In reply to comment #2)
> works for me (using ns-allinone-3.4.tar.bz2).
> Most likely nsc was not compiled at all.
> Could you please post the exact commands you used
> to set up ns3?
> If nsc was built, and the file liblinux2.6.26.so does exist
> in the nsc directory (should be 'nsc-0.5.0/linux-2.6.26/liblinux2.6.26.so')
> the library is not found for some reason. In that case please
> run ./waf --shell followed by "echo $LD_LIBRARY_PATH" and post the output
> of that.

You're right, it doesn't seem to be built. I somehow got into a configuration with nsc enabled in ns but nsc not built. BTW it didn't build because of this known issue:

http://www.nsnam.org/wiki/index.php/Troubleshooting#Scons_NSC_error

I'm closing the bug, thanks a lot for your help!