On Wed, 27 Feb 2002 15:51:15 +0100
"Haaribaer" <[EMAIL PROTECTED]> wrote:
> i'm very confused because when i want to do a "make install" after a
> succesful "make World", i get the error:
>
> "/lib/libdl.so.2: undefined reference to 'atexit'
> collect2: ld returned 1 exit status"
>
> but when i do a "make World" and then a "make install" with XFree 4.1
> it works very fine without any error!
>
> For compiling i'm using gcc version 2.95.3, glibc 2.2.4 and GNU make
> verison 3.79.1.
atexit() is required by 1989 ISO Standard C. Here's a quick test you
can do to determine whether it's your C environment that's broken or
XFree86. Snarf'n'barf the following into a file, say "test.c":
#include <stdlib.h>
void dummy(void) {}
int main(void) { exit(atexit(dummy)); }
Then compile it with just "cc test.c". If you get the same undefined
reference, your C system is broken, not XFree86. If it compiles OK, try
"./a.out ; echo $?". If that prints 0, your C system is fine, the
problem is with XFree86.
[...]
> gcc -o appres -O2 -fno-strength-reduce -ansi -pedantic -Wall
> -Wpointer-arith -L../../exports/lib appres.o -lXt -lSM -lICE
> -lXext -lX11 -Wl,-rpath-link,../../exports/lib/lib/libdl.so.2:
> undefined reference to `atexit' collect2: ld returned 1 exit status
--
Remember, more computing power was thrown away last week than existed in
the world in 1982. -- http://www.tom.womack.net/computing/prices.html
_______________________________________________
Newbie mailing list
[EMAIL PROTECTED]
*** To unsubscribe , or change message options, see:
http://XFree86.Org/mailman/listinfo/newbie