This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: testsuite linking wrong libstdc++
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Subject: Re: testsuite linking wrong libstdc++
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 13 Apr 2001 16:47:53 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3AD4286C.59CDC9FF@codesourcery.com>
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