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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!