Bug#50083: libc6-dev: broken headers for sparc
Package: libc6-dev
Version: 2.1.2-8
Severity: important
see the following program:
gorgo@debella:~$ cat main.c
#include <sys/io.h>
main() {}
gorgo@debella:~$ gcc -o main main.c
In file included from /usr/include/sys/io.h:27,
from main.c:1:
/usr/include/asm/io.h: In function `mapioaddr':
/usr/include/asm/io.h:107: `sparc_cpu_model' undeclared (first use in this function)
/usr/include/asm/io.h:107: (Each undeclared identifier is reported only once
/usr/include/asm/io.h:107: for each function it appears in.)
/usr/include/asm/io.h:110: warning: unreachable code at beginning of switch statement
/usr/include/asm/io.h: In function `unmapioaddr':
/usr/include/asm/io.h:131: `sparc_cpu_model' undeclared (first use in this function)
/usr/include/asm/io.h:134: warning: unreachable code at beginning of switch statement
/usr/include/asm/io.h: At top level:
/usr/include/asm/io.h:148: parse error before `pa'
This is a fact in bug in the kernel headers (the sparc_cpu_model declaration
in asm/system.h is protected by #ifdef __KERNEL__, but asm/io.h does not
protect the use of it by a corresponding #ifdef), but still, libc-dev
includes them
-- System Information
Debian Release: potato
Kernel Version: Linux debella 2.2.13 #17 SMP Tue Nov 9 18:17:19 CET 1999 sparc unknown
Versions of the packages libc6-dev depends on:
ii libc6 2.1.2-8 GNU C Library: Shared libraries and timezone
Reply to: