[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-glibc
Subject:    Re: Broken headers in glibc 2.1?
From:       Andreas Jaeger <aj () arthur ! rhein-neckar ! de>
Date:       1999-05-11 20:06:40
[Download RAW message or body]

>>>>> Mark H Wood writes:

Mark> I finally cleared enough space and built 2.1.  The build process completed
Mark> and seemed satisfied.  "make check" was happy.  "make install" grinds
Mark> away, apparently up to the last step, then throws this:

Mark> 	CC="gcc" /usr/local/bin/perl scripts/test-installation.pl /usr/src/libs/glibc build/

Mark> 	In file included from /usr/include/stdio.h:57,
Mark>                          from /tmp/test-prg8163.c:2:
Mark> 	/usr/include/libio.h:335:  parse error before `_IO_seekoff'
Mark> 	/usr/include/libio.h:335:  parse error before `_G_off64_t'
Mark> 	/usr/include/libio.h:336:  parse error before `_IO_seekoff'
Mark> 	/usr/include/libio.h:336:  parse error before `_G_fpos64_t'

Mark> Attempting to compile the usual "hello world" test gives identical
Mark> results (except for the source file path of course).

Glibc 2.1.1 will contain the appended FAQ entry.

Andreas

2.29.	Compiling programs I get parse errors in libio.h (e.g. "parse error
	before `_IO_seekoff'").  How should I fix this?

{AJ} You might get the following errors when upgrading to glibc 2.1:

  In file included from /usr/include/stdio.h:57,
                   from ...
  /usr/include/libio.h:335: parse error before `_IO_seekoff'
  /usr/include/libio.h:335: parse error before `_G_off64_t'
  /usr/include/libio.h:336: parse error before `_IO_seekpos'
  /usr/include/libio.h:336: parse error before `_G_fpos64_t'

The problem is a wrong _G_config.h file in your include path.  The
_G_config.h file that comes with glibc 2.1 should be used and not one from
libc5 or from a compiler directory.  To check which _G_config.h file the
compiler uses, compile your program with `gcc -E ...|grep G_config.h' and
remove that file.  Your compiler should pick up the file that has been
installed by glibc 2.1 in your include directory.

-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic