Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16482 - glibc-2.2.5-r7 compile chokes on __thread (in linuxthreads)
Summary: glibc-2.2.5-r7 compile chokes on __thread (in linuxthreads)
Status: RESOLVED DUPLICATE of bug 14539
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 11:39 UTC by Mike Hogye
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hogye 2003-02-27 11:39:39 UTC
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
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-02-27 16:18:08 UTC

*** This bug has been marked as a duplicate of 14539 ***