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

perhaps headers(linux/aio.h) bug ?



Whenever I include linux aio header,  the compile errors occured:

$  cat test.c
#include <linux/aio.h>
$ gcc-3.4 test.c

In file included from /usr/include/linux/workqueue.h:8,
                from /usr/include/linux/aio.h:5,
                from test.c:1:
/usr/include/linux/timer.h:12: error: field `entry' has incomplete type
/usr/include/linux/timer.h:34: error: syntax error before "init_timer"
In file included from /usr/include/linux/aio.h:5,
                from test.c:1:
/usr/include/linux/workqueue.h:16: error: field `entry' has incomplete type
In file included from /usr/include/linux/cpumask.h:86,
                from /usr/include/asm-i486/processor.h:23,
                from /usr/include/asm/processor.h:8,
                from /usr/include/asm-i486/atomic.h:6,
                from /usr/include/asm/atomic.h:8,
                from /usr/include/linux/aio.h:8,
                from test.c:1:
/usr/include/linux/bitmap.h: In function `bitmap_zero':
/usr/include/linux/bitmap.h:128: error: `BITS_PER_LONG' undeclared
(first use in this function)
/usr/include/linux/bitmap.h:128: error: (Each undeclared identifier is
reported only once
/usr/include/linux/bitmap.h:128: error: for each function it appears in.)
/usr/include/linux/bitmap.h: In function `bitmap_fill':
...

When I using gcc-4.1, same errors occured.

Here is those related packages version:
ii  linux-headers-2.6.17-2          2.6.17-9               Common
header files for Linux 2.6.17
ii  linux-headers-2.6.17-2-686      2.6.17-9               Header
files for Linux 2.6.17 on PPro/Celero
ii  linux-kernel-headers            2.6.17.10-3            Linux
Kernel Headers for development
ii  libc6                           2.3.6.ds1-4            GNU C
Library: Shared libraries
ii  libc6-dev                       2.3.6.ds1-4            GNU C
Library: Development Libraries and Hea
ii  libc6-i686                      2.3.6.ds1-4            GNU C
Library: Shared libraries [i686 optimi
ii  gcc-3.4                         3.4.6-4                The GNU C compiler
ii  gcc-4.1                         4.1.1-13               The GNU C compiler



Reply to: