|
From: Tom H. <th...@cy...> - 2004-02-25 13:05:08
|
In message <200...@ac...>
Julian Seward <js...@ac...> wrote:
> On Wednesday 25 February 2004 03:00, Tom Hughes wrote:
>> Nightly build on standard ( Red Hat 7.2 ) started at 2004-02-25 03:00:00
>
>> `test -f 'vg_scheduler.c' || echo './'`vg_scheduler.c In file included from
>> vg_scheduler.c:1286:
>> /usr/include/pthread.h:163: parse error before "__thread"
>
> Any idea what happened here? Is it that the 7.2 pthread.h
> has a variable called __thread, and you are using a newer gcc
> which regard it as a keyword?
Exactly. The gcc on that box had been updated to 3.2.2 but the glibc
is still an old one that uses __thread as a formal parameter name in
one of the prototypes in pthread.h.
I fixed it this morning by changing the header file to avoid the use
of __thread given that it is now a reserved word in gcc.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|