[ILUG] glibc problem
dave.neary at palamon.ie
Fri Sep 21 10:18:36 IST 2001
Padraig Brady wrote:
> Default RH7.1 install it works fine for me (gcc version 2.96).
> Note I've glibc 2.2.2 also which gives the same nm output as
> you have.
D'oh! OK - everything I said before is right, but... I tried the
following, and it led me up the right path.
$ ls -l /usr/lib/libc.so
libc.so 178 bytes (to cut a long story short)
That didn't look right, so I checked...
$ rpm -qf /usr/lib/libc.so
Ahhh! The mist falls. Upgrade glibc-devel, all's well. But why??? Well,
$ cat /usr/lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
$ nm /usr/lib/libc_nonshared.a | grep atexit
00000000 T atexit
aha! I don't know what changed, but I'd assume that atexit didn't
existin the old libc_nonshared.a (or equivalent), or that the old redhat
/usr/lib/libc.so failed to specify a static lib - anyone on a RedHat 7.0
or 6.95 box verify that in glibc 2.1.91?
Thanks for the help,
David Neary, E-Mail dave.neary at palamon.ie
Palamon Technologies Ltd. Phone +353-1-634-5059
More information about the ILUG