This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glibc-2.1.3 and glibc-2.0.7: How to make them coexist peacefully?


On Tue, 5 Sep 2000 13:31:59 +0100 (BST), 
Jan Kreft <Kreft@Cardiff.ac.uk> wrote:
>On Tue, 5 Sep 2000, Keith Owens wrote:
>> use-2.1.3 /full/path/to/old/binary <options>
>> 
>> where use-2.1.3 contains
>> 
>> #!/bin/sh
>> LD_LIBRARY_PATH=/usr/local/glibc-2.1.3/ \
>> 	/usr/local/glibc-2.1.3/ld-linux.so.2 "$@"
>
>Thanks, I tried that and get:
>
>jan@ara:~ > use-2.1.3 /dos/so-5_2-ga-bin-linux-en.bin 
>sh: error in loading shared libraries
>/usr/local/glibc-2.1.3/lib/libc.so.6: undefined symbol: _dl_initial_searchlist
>glibc version: 2.1.3
>sh: error in loading shared libraries
>/usr/local/glibc-2.1.3/lib/libc.so.6: undefined symbol: _dl_initial_searchlist

Suspect you are picking up the wrong loader.  My /lib/libc-2.1.3.so has
an unresolved reference to _dl_initial_searchlist, the symbol is
defined in /lib/ld-2.1.3.so.  Does /usr/local/glibc-2.1.3/ld-linux.so.2
point to /usr/local/glibc-2.1.3/ld-2.1.3.so?

nm -A /usr/local/glibc-2.1.3/*.so* | grep _dl_initial_searchlist
will find references and definitions.  I get

/lib/ld-2.1.3.so:00013bf0 B _dl_initial_searchlist
/lib/ld-linux.so.2:00013bf0 B _dl_initial_searchlist
/lib/libc-2.1.3.so:         U _dl_initial_searchlist@@GLIBC_2.1
/lib/libc.so.6:         U _dl_initial_searchlist@@GLIBC_2.1

lrwxrwxrwx    1 root     root           11 Apr 24 13:41 /lib/ld-linux.so.2 -> ld-2.1.3.so*
lrwxrwxrwx    1 root     root           13 Apr 24 13:41 /lib/libc.so.6 -> libc-2.1.3.so*



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]