From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Glickstein To: egcs@cygnus.com Subject: Can't compile 970929 Date: Thu, 02 Oct 1997 17:04:00 -0000 Message-id: <199710030004.RAA12048@hiro.zanshin.com> X-SW-Source: 1997-10/msg00135.html 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 ... 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.