--- Begin Message ---
Package: libc6-dev
Version: 2.7-12
Severity: important
I'm trying to compile Sun GridEngine from source (current CVS HEAD).
This fails when trying to compile the first source-code file.
After playing with this first compilation, I find I can compile this first
source-code file if I copy the command line and exclude the "-I/usr/include/linux" option.
I've been able to reproduce the problem with the following minimal
test-case:
paul@scaramanga:~$ cat test.c
#include <stdio.h>
paul@scaramanga:~$ gcc -c test.c
paul@scaramanga:~$ gcc -c -I/usr/include/linux test.c
In file included from /usr/include/stdio.h:75,
from test.c:1:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before 'size_t'
/usr/include/libio.h:364: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:373: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
In file included from test.c:1:
/usr/include/stdio.h:312: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:319: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:361: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:678: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
/usr/include/stdio.h:684: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
/usr/include/stdio.h:706: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked'
/usr/include/stdio.h:708: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked'
paul@scaramanga:~$
The stdio.h header is somewhat impenetrable so I've not been able to
follow this further. Also, it's also not completely clear to me whether
including the Linux headers (/usr/include/linux) in the include path is
supported (as a sane thing to want).
Bug #478183 may be related, since the error messages look vaguely
similar and both seemed to involve include paths. However, that
bug looked more specific to some particular case, so the two issues
may be unrelated.
HTH,
Paul.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages libc6-dev depends on:
ii libc6 2.7-12 GNU C Library: Shared libraries
ii linux-libc-dev 2.6.25-6 Linux Kernel Headers for developme
Versions of packages libc6-dev recommends:
ii gcc [c-compiler] 4:4.3.1-2 The GNU C compiler
ii gcc-3.4 [c-compiler] 3.4.6-8 The GNU C compiler
ii gcc-4.0 [c-compiler] 4.0.3-7 The GNU C compiler
ii gcc-4.1 [c-compiler] 4.1.2-23 The GNU C compiler
ii gcc-4.2 [c-compiler] 4.2.4-2+b1 The GNU C compiler
ii gcc-4.3 [c-compiler] 4.3.1-3 The GNU C compiler
-- no debconf information
--- End Message ---