View previous topic :: View next topic |
Author |
Message |
c0ma2k n00b
Joined: 30 Sep 2002 Posts: 15 Location: Germany
|
Posted: Mon Sep 30, 2002 11:32 am Post subject: Bug in glibc-2.2.5 pthread.h header |
|
|
There seems to be a bug in glibc's pthread.h header at line 608, which misses a }. I didn't check the original sources, as I assumed this to be a problem with Gentoo's version of glibc. I found the problem in releases r6 and r7.
Can anybody confirm this, or is it just some weird thing with my installation? |
|
Back to top |
|
|
Tuna Guru
Joined: 19 Jul 2002 Posts: 485 Location: Berlin
|
Posted: Mon Sep 30, 2002 1:24 pm Post subject: |
|
|
did you use any custom compiler flags?
i experienced such behaviour while compiling some quake sourcecode, and with certain flags the compilation aborted complaing about some parse errors with {}.
maybe that is related. better try to compile it with default optimisations. |
|
Back to top |
|
|
c0ma2k n00b
Joined: 30 Sep 2002 Posts: 15 Location: Germany
|
Posted: Mon Sep 30, 2002 3:45 pm Post subject: |
|
|
I'm sure this has nothing to do with optimizations. I encountered the error in one of my own projects, not in an ebuild. To be more specific, pthread.h defines a macro as this:
#define pthread_cleanup_push(routine,arg) \
{ struct _pthread_cleanup_buffer _buffer; \
_pthread_cleanup_push (&_buffer, (routine), (arg));
This obviously misses the closing bracket, which the compiler comments with an "unexpected end of file" error in my own code. Add a }, and everything is fine. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Mon Sep 30, 2002 6:11 pm Post subject: |
|
|
Look at the definition of pthread_cleanup_pop. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
c0ma2k n00b
Joined: 30 Sep 2002 Posts: 15 Location: Germany
|
Posted: Mon Sep 30, 2002 10:30 pm Post subject: |
|
|
Guess, sometimes I should actually read code documentations... Sorry about that silly question. |
|
Back to top |
|
|
|