When I try to compile glibc-2.2.5 (from ebuild -r7 or just manually from a tarball), I get the following error message: In file included from ../include/pthread.h:1, from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23, from ../sysdeps/generic/ldsodefs.h:34, from ../sysdeps/unix/sysv/linux/ldsodefs.h:25, from ../sysdeps/generic/libc-start.c:21: ../linuxthreads/sysdeps/pthread/pthread.h:163: parse error before "__thread" ../linuxthreads/sysdeps/pthread/pthread.h:165: `pthread_create' declared as function returning a function ../linuxthreads/sysdeps/pthread/pthread.h:165: warning: function declaration isn't a prototype ../linuxthreads/sysdeps/pthread/pthread.h:166: parse error before "void" ../linuxthreads/sysdeps/pthread/pthread.h:591: storage class specified for parameter `type name' I've been able to fix this by changing variables named "__thread" to "__thread1" -- it looks like gcc (I'm using gcc-3.2.1-r6) understands "__thread" as a keyword or type name. It may be that it would compile fine with gcc-2.95 ... but emerge gcc-2.95 fails, and it was easier just to fix glibc instead of getting into that. Reproducible: Always Steps to Reproduce: 1.cd /usr/portage/sys-libs/glibc 2.ebuild glibc-2.2.5-r7 fetch unpack compile 3. Actual Results: configure goes fine, make crunches away for a brief while (< 1 min) before choking gcc-3.2.1-r6 glibc-2.3.1-r2 currently installed
*** This bug has been marked as a duplicate of 14539 ***