[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#488776: marked as done (libc6-dev: Headers are broken if /usr/include/linux is in include path)



Your message dated Tue, 01 Jul 2008 17:03:06 +0200
with message-id <486A472A.3090904@aurel32.net>
and subject line Re: Bug#488776: libc6-dev: Headers are broken if /usr/include/linux is in include path
has caused the Debian Bug report #488776,
regarding libc6-dev: Headers are broken if /usr/include/linux is in include path
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
488776: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488776
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- 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 ---
--- Begin Message ---
Paul Millar a écrit :
> 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.
> 

This is something normal, the headers from the kernel can't replace the
ones from the GNU libc.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net


--- End Message ---

Reply to: