Enrico Scholz wrote:
* compilation fixes for kernel 2.6 headers

checking ext2fs/ext2fs.h usability... no checking ext2fs/ext2fs.h presence... no checking for ext2fs/ext2fs.h... no checking linux/ext2_fs.h usability... no checking linux/ext2_fs.h presence... no checking for linux/ext2_fs.h... no configure: error: Sorry, do not know, how to include 'ext2fs.h' make: *** [config.status] Fehler 1

Happens with the kernel headers from the debian package
linux-kernel-headers-2.6.999. The file linux/ext2_fs.h
exists. This could be a debian bug, too.

If I symlink /usr/include/asm,asm-generic and linux to the
2.6.0-test9/include/* configure complains that it found
linux/ext2_fs.h, but it's not useable.
See here:

checking ext2fs/ext2fs.h usability... no
checking ext2fs/ext2fs.h presence... no
checking for ext2fs/ext2fs.h... no
checking linux/ext2_fs.h usability... no
checking linux/ext2_fs.h presence... yes
configure: WARNING: linux/ext2_fs.h: present but cannot be compiled
configure: WARNING: linux/ext2_fs.h: check for missing prerequisite headers?
configure: WARNING: linux/ext2_fs.h: see the Autoconf documentation
configure: WARNING: linux/ext2_fs.h: section "Present But Cannot Be Compiled"
configure: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result
configure: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------------------ ##
configure: WARNING: ## Report this to [EMAIL PROTECTED] ##
configure: WARNING: ## ------------------------------------------------------ ##
checking for linux/ext2_fs.h... yes
checking for sys_virtual_context... no
checking whether MS_MOVE is declared... no
checking for ctx_t... no
configure: creating ./config.status



======================================================================================


If I try to compile anyway, the following happens:

In file included from /usr/include/linux/thread_info.h:20,
from /usr/include/linux/spinlock.h:12,
from /usr/include/linux/blockgroup_lock.h:8,
from /usr/include/linux/ext2_fs_sb.h:19,
from /usr/include/linux/ext2_fs.h:20,
from src/ext2fs.h:25,
from src/showattr.c:32:
/usr/include/linux/bitops.h:111: error: parse error before "w"
/usr/include/linux/bitops.h: In function `generic_hweight64':
/usr/include/linux/bitops.h:114: error: `w' undeclared (first use in this function)
/usr/include/linux/bitops.h:114: error: (Each undeclared identifier is reported only once
/usr/include/linux/bitops.h:114: error: for each function it appears in.)
In file included from /usr/include/linux/spinlock.h:16,
from /usr/include/linux/blockgroup_lock.h:8,
from /usr/include/linux/ext2_fs_sb.h:19,
from /usr/include/linux/ext2_fs.h:20,
from src/ext2fs.h:25,
from src/showattr.c:32:
/usr/include/asm/processor.h: In function `__monitor':
/usr/include/asm/processor.h:274: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:274: error: parse error before "volatile"
/usr/include/asm/processor.h: In function `__mwait':
/usr/include/asm/processor.h:282: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:282: error: parse error before "volatile"
/usr/include/asm/processor.h: In function `prefetch':
/usr/include/asm/processor.h:616: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:616: error: parse error before "volatile"
/usr/include/asm/processor.h: In function `prefetchw':
/usr/include/asm/processor.h:630: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:630: error: parse error before "volatile"
In file included from /usr/include/linux/blockgroup_lock.h:8,
from /usr/include/linux/ext2_fs_sb.h:19,
from /usr/include/linux/ext2_fs.h:20,
from src/ext2fs.h:25,
from src/showattr.c:32:
/usr/include/linux/spinlock.h: In function `bit_spin_lock':
/usr/include/linux/spinlock.h:413: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_trylock':
/usr/include/linux/spinlock.h:436: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_unlock':
/usr/include/linux/spinlock.h:451: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:451: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/spinlock.h: In function `bit_spin_is_locked':
/usr/include/linux/spinlock.h:462: error: invalid type argument of `->'
In file included from /usr/include/linux/ext2_fs_sb.h:20,
from /usr/include/linux/ext2_fs.h:20,
from src/ext2fs.h:25,
from src/showattr.c:32:
/usr/include/linux/percpu_counter.h: In function `percpu_counter_mod':
/usr/include/linux/percpu_counter.h:75: error: invalid type argument of `->'
/usr/include/linux/percpu_counter.h:77: error: invalid type argument of `->'
/usr/include/linux/percpu_counter.h:77: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
In file included from /usr/include/linux/ext2_fs.h:20,
from src/ext2fs.h:25,
from src/showattr.c:32:
/usr/include/linux/ext2_fs_sb.h: At top level:
/usr/include/linux/ext2_fs_sb.h:48: error: parse error before "u32"
/usr/include/linux/ext2_fs_sb.h:50: error: parse error before '*' token
/usr/include/linux/ext2_fs_sb.h:50: error: ISO C forbids data definition with no type or storage class
/usr/include/linux/ext2_fs_sb.h:55: error: parse error before '}' token
src/showattr.c: In function `getext2flags':
src/showattr.c:52: Warnung: signed and unsigned type in conditional expression
src/showattr.c: In function `setext2flags':
src/showattr.c:72: Warnung: signed and unsigned type in conditional expression
make[2]: *** [src/showattr.o] Fehler 1
make[2]: Leaving directory `/usr/src/util-vserver-0.25'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/usr/src/util-vserver-0.25'
make: *** [build-stamp] Fehler 2




============================================================================
util-vserver compiles fine if I use the linux-2.4.22 kernel headers.
System: Debian sarge, glibc-2.3.2, gcc-3.3

--
lg, Chris

_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to