testsuite linking wrong libstdc++
Alexandre Oliva
aoliva@redhat.com
Fri Apr 13 12:48:00 GMT 2001
On Apr 11, 2001, Nathan Sidwell <nathan@codesourcery.com> wrote:
> It appears that the executable has dependencies on the wrong libstdc++, vis
> nathan@uha:65>ldd g++-brendan-eh1-C
> libstdc++.so.3 => /home/nathan/local/unknown-i686-Linux-2/egcs-devel/lib/libstdc++.so.3 (0x40015000)
ldd doesn't mean much unless you have the same LD_LIBRARY_PATH
settings as those used to run the program.
> nathan@uha:1>echo $LD_LIBRARY_PATH
> /home/nathan/local/unknown-i686-Linux-2/egcs-devel/lib [...]
> I can get this to work by unsetting LD_LIBRARY_PATH for the tests,
> however ... it would be more friendly for this to just work.
> Should not the testsuite either unset LD_LIBRARY_PATH
Nope. Sometimes you need that so that the linker works, for example.
> prepend the correct directory so that it's found first.
Yep, this would be the right thing to do. But it seems to me that
dejagnu 1.4's unix.exp does more than that: it *overwrites*
LD_LIBRARY_PATH with in the environment of the program that's going to
be executed. So, it should work. Are you using dejagnu 1.4 or some
earlier version?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc-bugs
mailing list