[clug] using LD_LIBRARY_PATH to load different glibc

Bill Clarke llib at computer.org
Tue May 2 03:48:43 GMT 2006

Simon Burton wrote, On 05/02/06 12:22:
> I've compiled a different glibc (2.3.6) to the one I have installed (2.3.2),
> and I'm trying to use LD_LIBRARY_PATH so that my programs
> are run with this alternate glibc. Here is the trouble:
> $  env LD_LIBRARY_PATH=/home/users/simonb/lib ls
> ls: relocation error: /home/users/simonb/lib/libpthread.so.0: symbol _rtld_global_ro, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference

try things like:
env LD_DEBUG=all LD_LIBRARY_PATH=/home/users/simonb/lib ls
to see what's going on.

env LD_PRELOAD=/home/users/simonb/lib/libc-2.3.6.so ls

/lib BillClarke PostdoctoralFellow CompSci ANU cs.anu.edu.au/CC-NUMA
http://llib.cjb.net llib at computer.org  tel:+61-2-6125x5687 fax:x0010
PGPid:B381EE7DB7D3E58F17248C672E2DA124ADADF444 GNU unix LaTeX XPilot
Buffy DrWho Goodies StarTrek XFiles Origami SML SMP MPI mozilla tcsh
Asimov Bear Clarke Donaldson Volleyball Ultimate Cricket emacs C++ X
Jordan Kay Lackey Martin Stasheff DeepPurple H&C KLF Queen PinkFloyd

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/linux/attachments/20060502/4d18a09f/signature.bin

More information about the linux mailing list