This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: ld.so cares about /usr/X11R6?
- To: Robert Siemer <siemer@i309.hadiko.de>
- Subject: Re: ld.so cares about /usr/X11R6?
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 27 May 1999 07:13:06 +0200
- Cc: glibc-linux@ricardo.ecn.wfu.edu
- References: <Pine.LNX.3.96.990526225456.16419C-100000@panorama.hadiko.de>
- Reply-To: glibc-linux@ricardo.ecn.wfu.edu
>>>>> Robert Siemer writes:
> Question:
> Why does ld.so cares more about my directory-hierarchie and its symlinks
> instead to decide from LD_LIBRARY_PATH and /etc/ld.so.cache??
> How can I run this application even with a symlink from /usr/X11R6 to
> X11R6-libc6?
If you're running glibc 2.1, try LD_DEBUG=help to see what's possible
and then e.g.:
LD_DEBUG=files ghostview
The problem you describe can happen if you link with
--rpath=/usr/X11R6/lib. In this case the run path (search path for
libraries) is hardcoded into the binary. You can check this with
objdump.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de