Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bug in glibc-2.2.5 pthread.h header
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
c0ma2k
n00b
n00b


Joined: 30 Sep 2002
Posts: 15
Location: Germany

PostPosted: Mon Sep 30, 2002 11:32 am    Post subject: Bug in glibc-2.2.5 pthread.h header Reply with quote

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
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Mon Sep 30, 2002 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
c0ma2k
n00b
n00b


Joined: 30 Sep 2002
Posts: 15
Location: Germany

PostPosted: Mon Sep 30, 2002 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Sep 30, 2002 6:11 pm    Post subject: Reply with quote

Look at the definition of pthread_cleanup_pop.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
c0ma2k
n00b
n00b


Joined: 30 Sep 2002
Posts: 15
Location: Germany

PostPosted: Mon Sep 30, 2002 10:30 pm    Post subject: Reply with quote

Guess, sometimes I should actually read code documentations... Sorry about that silly question.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum