Glibc, redhat 5 and wrong libs loaded by ld.so

Mark Phillips (M.S.Phillips@nortel.co.uk)
Wed, 1 Apr 1998 10:24:46 +0100 (BST)


Sorry to bother you if you are not the correct people to talk to!

I'm not sure who I should email:-(

I have encountered a problem, AND come up with a patch, with the dynamic
linker code.

The problem is that when I'm using RedHat 5.0, with latest patches
from RedHat (including ldconfig-1.9.5-2.rpm), ld.so is loading a
mixture of libc5 and libc6(glibc) libs!

Now the redhat ldconfig/ld.so has been patched so ldconfig records the
libc version in the cache against each lib, if it can deduce it, and
ld.so then tries to load a consistent set of libs.

BUT, I found that XEmacs was picking up a mixture of libc5 and libc6(glibc)
libs because the XFree libs (and others) did not have enough info for
ldconfig to work out their libc version (it gets some libc5 libs
because they are earlier in the path and do not have libc version info
- of course the same problem hits different apps if I change the
path).

My enclosed patch allows you to specify the expected lib type for
directories in ld.so.conf (/usr/X11R6/lib=LIB_ELF_LIBC6 for example), then
libs it can't work out get tagged anyway. Appropriate warnings are also
issued.

Now what should I do with the patch!

Does anyone want a copy, or know who I should email it to?

Many Thanks
Mark

Mark S. Phillips ESN 742 2461
msp@nortel.co.uk Tel. +44 1279 402461

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu