This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linuxthreads problem introduced between 2.2.1 and 2.2.2


* Andreas Jaeger <aj@suse.de>:

| Send a small program that shows the bug.

I would like to connect this thread with my linuxthread
related error report.

I have configured/compiled cvs glibc with options:

--enable-shared
--disable-static
--disable-profile
--disable-debug
--enable-add-ons=linuxthreads
--enable-kernel=2.4.0
--with-cvs

Now I run it in the environment:

Linux 2.4.2
libc-2.2.2.so
gcc 2.95.2
GNU ld version 2.10.91 (with BFD 2.10.91.0.4)

And I started to compile GNOME galeon/nautilus, both use
mozilla, and both can't find the mozilla libs. From the
config.log it seems both are failed at this moment:

configure:3343: gcc -o conftest -g -O2 -I/home/gzp/src/x/mozilla/dist/include   -L/home/gzp/src/x/mozilla/dist/bin conftest.c -lnspr4   1>&5
/lib/libpthread.so.0: undefined reference to `atexit'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3332 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PR_Init();

int main() {
PR_Init()
; return 0; }

When I add "-lpthread" to the CFLAGS, it compiles fine, but
adding "-lpthread" to the CFLAGS isn't the best solution,
and noticed also that ppls using glibc 2.1.x doesn't have
this problem.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]