[Ns-developers] ns-3 not 64bit clean already
Mathieu Lacage
Mathieu.Lacage at sophia.inria.fr
Tue Oct 3 06:25:01 PDT 2006
On Wed, 2006-10-04 at 00:06 +1200, Lee Begg wrote:
> On Wednesday 04 October 2006 00:42, you wrote:
> > you have to set LD_LIBRARY_PATH to make it work ? This should not be the
> > case since it should use RPATH during linking on your system. Would you
> > mind paste the link line of the run-tests program ?
> >
> > Mathieu
>
> scons by default is building dbg-shared.
yes. My question is about the link command which is generating
run-tests. On my system it is this:
g++ -Wl,--rpath=build-dir/dbg-shared/lib -o
build-dir/dbg-shared/bin/run-tests
build-dir/dbg-shared/utils/run-tests.o -Lbuild-dir/dbg-shared/lib
-lcommon -lsimulator -lcore -lpthread
and it should be pretty similar on your system. If it looks the same
(the rpath option especially), then, you should be able not to use
LD_LIBRARY_PATH and run the program directly with the following command:
./build-dir/dbg-shared/bin/run-tests
i.e., you must not cd into the directory
>
> I cd into build-dir/dbg-shared/bin and run
> LD_LIBRARY_PATH=../lib/ ./run-tests
>
> Without the LD_LIBRARY_PATH prefix is reports:
> ./run-tests: error while loading shared libraries: libcommon.so: cannot open
> shared object file: No such file or directory
>
> (I would like to point out that libcommon is not a good shared library name)
yes, but these are not supposed to be installed and they are supposed to
be used with RPATH only which limits the scope of the problem. I expect
that if someone were to be serious about shipping a shared library for
ns-3, he would propose a patch to generate optionally a single libns3.so
library.
>
> >From the src base dir (ie ns-3) running ./build-dir/dbg-shared/bin/run-tests
> works correctly (didn't think to try that originally.)
yes, this is what I expected :) good to know it works.
> When I build dbg-static, the run-tests doesn't output anything to the console
> (but does run). The other sample-* programs work correctly, afaict.
hrm. good catch. This looks like a bug. Will look into it.
> Hope this helps
it does.
Mathieu
--
More information about the Ns-developers
mailing list