public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Can't compile 970929
@ 1997-10-02 17:04 Bob Glickstein
  0 siblings, 0 replies; only message in thread
From: Bob Glickstein @ 1997-10-02 17:04 UTC (permalink / raw)
  To: egcs

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-10-02 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-02 17:04 Can't compile 970929 Bob Glickstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).