gcc & glibc incompatibility in lfs 3.3

Richard Smith richard at ex-parrot.com
Fri May 31 04:31:41 PDT 2002

gcc-2.95.3 and glibc-2.2.x are slightly incompatible in their handling of
atexit:  libc.so.6 no longer contains atexit -- it was moved to
libc_nonshared.a in glibc-2.2, however gcc-2.95.3's crtendS.o (which is
linked into every shared library) assumes it is in libc and references the
symbol.  This is a known problem: see for example


The first of these links contains a patch to gcc which fixes this issue;
it might worth suggesting that users of lfs apply this patch.

This problem manifests, for example, if one tries to follow the blfs
instructions to build xfree86.

Richard Smith

Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list