Question about dynamic link
Andreas Jaeger
aj@arthur.rhein-neckar.de
Thu Apr 1 00:00:00 GMT 1999
>>>>> Tung-Han Hsieh writes:
> Dear All,
> I want to test glibc-2.1, but I also want to preserve my stable glibc-2.0.7.
> I use Debian-2.1, with glibc-2.0.7 installed in the standard path (/lib,
> /usr/lib). And the glibc-2.1 is installed with prefix /usr/local/gnu. Now
> I want to have program to use the shared lib in /usr/local/gnu/lib. I
> followed the instruction of FAQ:
> LD_LIBRARY_PATH=/usr/local/gnu/lib /usr/local/gnu/lib/ld-linux.so.2 prog
The FAQ of glibc 2.1.1pre1 mentions to supply the *full* path to prog,
e.g. /usr/bin/prog.
> Another question: I wrote a program which use setlocale() of libc and
> XSupportLocale() of Xlib. In glibc-2.0.7 it works fine, but if I recompile
> the program with the above linker options and run the program, the
> XSupportLocale() returns False (but setlocale() returns OK). Both glibc-2.1
> and Xlib has the localedata installed I specified (our zh_TW.Big5 locale).
> I guess that this might be:
> THH:thhpc $ ldd /usr/X11R6/lib/libX11.so.6.1
> libc.so.6 => /lib/libc.so.6 (0x400a6000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
> i.e., libX11 dynamically links to /lib/.... Is that true? How do I solve
> this problem?
Test it with LD_DEBUG - see the FAQ 3.18 for a pointer.
> I use "glibc-2.1.1pre1" for test.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de
More information about the Libc-alpha
mailing list