Can't compile 970929
Bob Glickstein
bobg@zanshin.com
Thu Oct 2 17:04:00 GMT 1997
My platform is Linux 2.0.30, glibc 2.0.4, gcc 2.7.2.2. While
compiling libio, I get this error:
/space/bobg/src/extern/egcs-970929/gcc/xgcc -B/space/bobg/src/extern/egcs-970929/gcc/ -c -O2 -g -fvtable-thunks -fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO fstream.cc
In file included from bits/libc-lock.h:1,
from libioP.h:31,
from fstream.cc:32:
/usr/include/libc-lock.h:124: syntax error before `;'
The offending line in libc-lock.h is
typedef pthread_key_t __libc_key_t;
At that point in the file, pthread_key_t is only defined if _LIBC is
defined, because of this at the beginning of libc-lock.h:
#ifdef _LIBC
#include <pthread.h>
...
and while compiling libio, _LIBC isn't defined.
Actually, this problem (or ones related to it) has kept me from
building the last three or four snapshots of egcs, but I didn't
mention it earlier because I thought I saw a discussion and resolution
of the problem go by on the mailing list. But apparently the problem
still exists.
Cheers.
More information about the Gcc
mailing list