From: "Ted Spradley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 5:02 PM
Subject: Re: [Newbie]Fw: atexit error during make install only with XFree
4.2


> 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.
>


Hallo Ted,

i've test it with the test.c the way you descibe it above. And it works like
you said: I can compile it without an error and when i run the ./a.out ;
echo $? i get "0". So it seems that the problem is with XFree, right??

But what can i do now so solve this problem?? Should i send an Bug-report or
something like this?? Or have you got a better idea what to do??

btw: Thanks much for your fast help!

greetings

Andread Krings

















> [...]
> > 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
>
>


_______________________________________________
Newbie mailing list
[EMAIL PROTECTED]
*** To unsubscribe , or change message options, see:
http://XFree86.Org/mailman/listinfo/newbie

Reply via email to