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

Bug#235547: linux-kernel-headers: including linux/ext2_fs.h gives syntax errors



Package: linux-kernel-headers
Version: 2.5.999-test7-bk-15
Severity: normal

Hello,

including linux/ext2_fs.h in source code file will result in error
messages:

In file included from /usr/include/linux/cpumask.h:8,
                 from /usr/include/asm/smp.h:11,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/percpu_counter.h:9,
                 from /usr/include/linux/ext2_fs_sb.h:20,
                 from /usr/include/linux/ext2_fs.h:20,
                 from test.c:2:
/usr/include/linux/bitmap.h: In function `bitmap_empty':
/usr/include/linux/bitmap.h:15: error: `BITS_PER_LONG' undeclared (first
use in this function)
/usr/include/linux/bitmap.h:15: error: (Each undeclared identifier is
reported only once

.... [the rest is cut off]

The libc headers from Mariusz Mazur at
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
work fine.


Here's some example code:

#include <unistd.h>
#include <linux/ext2_fs.h>

int main (void)
{ return 0;}


The linux/ext2_fs.h header is needed for example for building unfs3
(unfs3.sf.net) with inode generation number support. 

Thanks, 
Bernd


-- System Information:
Debian Release: testing
  APT prefers unstable
  APT policy: (800, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.3
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (ignored: LC_ALL set to C)

-- no debconf information




Reply to: