undefined reference to `atexit'

Gabor Z. Papp gzp@myhost.mynet
Mon Mar 12 23:13:00 GMT 2001


* Ulrich Drepper <drepper@cygnus.com>:

| This is exactly what is intended and no, it is no problem.  If you see problems
| something else is wrong on your side.

Well, these days I tried almost everything to solve the problem:

/lib/libpthread.so.0: undefined reference to `atexit'
collect2: ld returned 1 exit status

gcc 2.95.2
gcc 2.95-cvs
gcc latest-snapshot
gcc 3.1-cvs

binutils-2.9.1.0.25-glibc.x86
binutils-2.9.1.0.25
binutils-2.10.1
binutils-2.10.91.0.4
binutils-2.11.90.0.1

And I got always this error. With 2.9 series of binutils also got:

/usr/X11R6/lib/libXext.so.6: undefined reference to `atexit@@GLIBC_2.0'
/lib/libpthread.so.0: undefined reference to `atexit'
collect2: ld returned 1 exit status

So I'm totally lost. Why I have this error? There is
something special on my host? Only the kernel was not
touched, it is from the 2.4 series.

And glibc 2.1 works fine. So where is the error?



More information about the Binutils mailing list