This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: test-installation.pl problem
>>>>> Austin Hung writes:
> At 02:10 PM 24/07/2000 +0200, you wrote:
> <snip>
>> The libraries have initialization functions which might get called.
>> The program is linked against each and every lib! It could be a bug
>> in the dynamic linker or in one of these initialization functions.
>> Debug with LD_DEBUG set in the environment (LD_DEBUG=help ls gives
>> options).
>>
>> Andreas
> Well, I gave the LD_DEBUG settings a try. It's funny, the linker didn't
> actually recognize the settings unless I called it explicitly
> (/lib/ld-linux.so.2 -> /lib/ld-2.1.3.so), ie. /lib/ld-2.1.3 test-prg9414.
> Here is a list of my linkers: (in /lib)
> ld-2.1.3.so
> ld-linux.so -> ld-linux.so.2
> ld-linux.so.1 -> ld-linux.so.1.9.9
> ld-linux.so.1.9.9
> ld-linux.so.2 -> ld-2.1.3.so
> I tried using ld-linux.so.1, which segfaulted.
> These two points led me to believe that for some reason ld-linux.so.1 was
> being called and no so.2. This was confirmed when I looked at the FAQ again
> (grepped for LD_DEBUG). There was an item about upgrading from glibc 2 to 2.1.
> So, I set LD_LIBRARY_PATH=/tmp (previously not set), and tried running
> /tmp/test-prog9414, which worked. So, the question is, why is ld-linux.so.1
> my default linker, and how do I change that? Was I supposed to move it
> along with my other libc5 libraries out to /usr/i486-linuxlibc5/lib ?
The default linker is specified in the spec file - see the FAQ for
details. Don't move ld-linux.so.1 away from /lib - binaries contain
the complete path and will not run anymore if move it.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de