About this list Date view Thread view Subject view Author view Attachment view

From: Christian Mayrhuber (christian.mayrhuber_at_gmx.net)
Date: Wed 19 Nov 2003 - 19:57:30 GMT


Enrico Scholz wrote:
> christian.mayrhuber_at_gmx.net (Christian Mayrhuber) writes:
>
>
>>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.
>
>
> No, the kernel headers are buggy (no __u64 type with '--std=c99').
> Therefore, I try to use the headers from 'e2fsprogs' which are
> providing the needed functionality (two ioctl-macros) also.
>
> Can you try to install the e2fsprogs{-devel} and compile util-vserver
> with them?

Result with e2fslibs-dev and linux-kernel-headers-2.6.999:
checking ext2fs/ext2fs.h usability... yes
checking ext2fs/ext2fs.h presence... yes
checking for ext2fs/ext2fs.h... yes
checking for sys_virtual_context... no
checking whether MS_MOVE is declared... yes
checking for ctx_t... no
configure: creating ./config.status
config.status: creating util-vserver.spec
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
dh_testdir
# Add here commands to compile the package.
/usr/bin/make
make[1]: Entering directory `/usr/src/util-vserver-0.25'
echo '#include <stdint.h>' >linuxcaps.h.tmp
sed -e 's!^#include .*!!g;s!\<__u32\>!uint32_t!g;s!\<__user\>!!g;'
/lib/modules/2.4.22-c17h-xfs/build/include/linux/capability.h
>>linuxcaps.h.tmp
mv -f linuxcaps.h.tmp linuxcaps.h
ln -sf '/lib/modules/2.4.22-c17h-xfs/build/include/linux/virtual.h'
'linuxvirtual.h' && test -e 'linuxvirtual.h' || \
         ln -sf './lib/virtual.h' 'linuxvirtual.h'
/usr/bin/make all-am
make[2]: Entering directory `/usr/src/util-vserver-0.25'
if i386-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/lib/modules/2.4.22-c17h-xfs/build/include -D_GNU_SOURCE -Wall
-pedantic -g -O2 -std=c99 -Wall -pedantic -W -Wno-unused-parameter -MT
lib/lib_libvserver_a-syscall.o -MD -MP -MF
"lib/.deps/lib_libvserver_a-syscall.Tpo" \
   -c -o lib/lib_libvserver_a-syscall.o `test -f 'lib/syscall.c' || echo
'./'`lib/syscall.c; \
then mv -f "lib/.deps/lib_libvserver_a-syscall.Tpo"
"lib/.deps/lib_libvserver_a-syscall.Po"; \
else rm -f "lib/.deps/lib_libvserver_a-syscall.Tpo"; exit 1; \
fi
if i386-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/lib/modules/2.4.22-c17h-xfs/build/include -D_GNU_SOURCE -Wall
-pedantic -g -O2 -std=c99 -Wall -pedantic -W -Wno-unused-parameter -MT
lib/lib_libvserver_a-syscall_rlimit.o -MD -MP -MF
"lib/.deps/lib_libvserver_a-syscall_rlimit.Tpo" \
   -c -o lib/lib_libvserver_a-syscall_rlimit.o `test -f
'lib/syscall_rlimit.c' || echo './'`lib/syscall_rlimit.c; \
then mv -f "lib/.deps/lib_libvserver_a-syscall_rlimit.Tpo"
"lib/.deps/lib_libvserver_a-syscall_rlimit.Po"; \
else rm -f "lib/.deps/lib_libvserver_a-syscall_rlimit.Tpo"; exit 1; \
fi
In file included from lib/syscall_rlimit.c:29:
lib/syscall_rlimit-v11.hc: In function `vc_get_rlimit_v11':
lib/syscall_rlimit-v11.hc:34: error: storage size of `vc_lim' isn't known
lib/syscall_rlimit-v11.hc:38: error: `VC_CAT_RLIMIT' undeclared (first
use in this function)
lib/syscall_rlimit-v11.hc:38: error: (Each undeclared identifier is
reported only once
lib/syscall_rlimit-v11.hc:38: error: for each function it appears in.)
lib/syscall_rlimit-v11.hc:39: error: `CRLIM_INFINITY' undeclared (first
use in this function)
lib/syscall_rlimit-v11.hc:39: error: `CRLIM_KEEP' undeclared (first use
in this function)
lib/syscall_rlimit-v11.hc:34: Warnung: unused variable `vc_lim'
lib/syscall_rlimit-v11.hc: In function `vc_set_rlimit_v11':
lib/syscall_rlimit-v11.hc:49: error: storage size of `vc_lim' isn't known
lib/syscall_rlimit-v11.hc:52: error: `CRLIM_INFINITY' undeclared (first
use in this function)
lib/syscall_rlimit-v11.hc:52: error: `CRLIM_KEEP' undeclared (first use
in this function)
lib/syscall_rlimit-v11.hc:56: error: `VC_CAT_RLIMIT' undeclared (first
use in this function)
lib/syscall_rlimit-v11.hc:49: Warnung: unused variable `vc_lim'
lib/syscall_rlimit-v11.hc: In function `vc_get_rlimit_mask_v11':
lib/syscall_rlimit-v11.hc:62: error: storage size of `vc_lim' isn't known
lib/syscall_rlimit-v11.hc:65: error: `VC_CAT_RLIMIT' undeclared (first
use in this function)
lib/syscall_rlimit-v11.hc:62: Warnung: unused variable `vc_lim'
make[2]: *** [lib/lib_libvserver_a-syscall_rlimit.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

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

Exactly the same compile result with the kernel headers from 2.6.0-test9
and e2fslibs-dev-1.34+1.35-WIP-2003.08.21-3.

-- 
lg, Chris

_______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 19 Nov 2003 - 19:59:15 GMT by hypermail 2.1.3