I get lots of errors: >>> Source unpacked. gcc -g -Wall -I- -I. -I../shfs/Linux-2.4/ -DSHFS_VERSION=\"unknown\" -c shfsmount.c -o shfsmount.o sed -e '/^[ ]*#/d;/^$/d;s/\\/\\\\/g;s/\"/\\\"/g;s/^\(.*\)$/\"\1\\n\"/' <shell-test.in | sed -e "s/'/'\\\\\\\\''/g" >shell-test.h sed -e '/^[ ]*#/d;/^$/d;s/\\/\\\\/g;s/\"/\\\"/g;s/^\(.*\)$/\"\1\\n\"/' <shell-code.in | sed -e "s/'/'\\\\\\\\''/g" >shell-code.h sed -e '/^[ ]*#/d;/^$/d;s/\\/\\\\/g;s/\"/\\\"/g;s/^\(.*\)$/\"\1\\n\"/' <perl-test.in | sed -e "s/'/'\\\\\\\\''/g" >perl-test.h sed -e '/^[ ]*#/d;/^$/d;s/\\/\\\\/g;s/\"/\\\"/g;s/^\(.*\)$/\"\1\\n\"/' <perl-code.in | sed -e "s/'/'\\\\\\\\''/g" >perl-code.h gcc -g -Wall -I- -I. -I../shfs/Linux-2.4/ -DSHFS_VERSION=\"unknown\" -c shfsumount.c -o shfsumount.o gcc -g -Wall -I- -I. -I../shfs/Linux-2.4/ -DSHFS_VERSION=\"unknown\" -c proto.c -o proto.o gcc -o shfsumount shfsumount.o gcc -o shfsmount shfsmount.o proto.o gcc -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -Wall -I- -I. -I/usr/src/linux/include -DMODULE -D__KERNEL__ -DLINUX -c dcache.c -o dcache.o gcc -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -Wall -I- -I. -I/usr/src/linux/include -DMODULE -D__KERNEL__ -DLINUX -c dir.c -o dir.o In file included from /usr/include/linux/percpu.h:5, from /usr/include/linux/sched.h:31, from /usr/include/linux/module.h:10, from dir.c:12: /usr/include/linux/slab.h:86:27: kmalloc_sizes.h: No such file or directory In file included from /usr/include/linux/percpu.h:5, from /usr/include/linux/sched.h:31, from dcache.c:16: /usr/include/linux/slab.h:86:27: kmalloc_sizes.h: No such file or directory In file included from ./shfs_fs.h:4, from dir.c:17: ./shfs.h:33: error: parse error before "kdev_t" ./shfs.h:33: warning: no semicolon at end of struct or union ./shfs.h:40: error: parse error before '}' token In file included from ./shfs_fs.h:4, from dcache.c:24: ./shfs.h:33: error: parse error before "kdev_t" ./shfs.h:33: warning: no semicolon at end of struct or union ./shfs.h:40: error: parse error before '}' token In file included from dir.c:17: ./shfs_fs.h:102: warning: "struct statfs" declared inside parameter list ./shfs_fs.h:102: warning: its scope is only this definition or declaration, which is probably not what you want In file included from ./proc.h:4, from dir.c:20: ./shfs_fs_sb.h:29: warning: "struct statfs" declared inside parameter list dir.c: In function `shfs_readdir': dir.c:48: error: structure has no member named `u' dir.c:91: warning: implicit declaration of function `Page_Uptodate' dir.c:139: warning: implicit declaration of function `UnlockPage' dir.c: In function `shfs_lookup': dir.c:197: error: structure has no member named `u' dir.c:199: error: storage size of 'fattr' isn't known dir.c:199: warning: unused variable `fattr' dir.c: In function `shfs_instantiate': dir.c:232: error: structure has no member named `u' dir.c:233: error: storage size of 'fattr' isn't known dir.c:233: warning: unused variable `fattr' dir.c: In function `shfs_mkdir': dir.c:264: error: structure has no member named `u' dir.c: In function `shfs_create': dir.c:284: error: structure has no member named `u' dir.c: In function `shfs_rmdir': dir.c:311: error: structure has no member named `u' dir.c: In function `shfs_rename': dir.c:332: error: structure has no member named `u' dir.c: In function `shfs_unlink': dir.c:359: error: structure has no member named `u' dir.c: In function `shfs_link': dir.c:378: error: structure has no member named `u' dir.c: In function `shfs_symlink': dir.c:400: error: structure has no member named `u' dir.c: In function `shfs_d_revalidate': dir.c:456: error: structure has no member named `u' dir.c: At top level: dir.c:492: warning: initialization from incompatible pointer type dir.c:504: warning: initialization from incompatible pointer type dir.c:505: warning: initialization from incompatible pointer type dir.c:513: error: unknown field `revalidate' specified in initializer dir.c:513: warning: initialization from incompatible pointer type In file included from dcache.c:24: ./shfs_fs.h:102: warning: "struct statfs" declared inside parameter list ./shfs_fs.h:102: warning: its scope is only this definition or declaration, which is probably not what you want In file included from dcache.c:25: ./shfs_fs_sb.h:29: warning: "struct statfs" declared inside parameter list dcache.c: In function `shfs_invalid_dir_cache': dcache.c:35: error: structure has no member named `u' dcache.c:43: warning: implicit declaration of function `Page_Uptodate' dcache.c:52: warning: implicit declaration of function `UnlockPage' dcache.c: In function `shfs_invalidate_dircache_entries': dcache.c:64: error: structure has no member named `u' dcache.c: In function `shfs_fill_cache': dcache.c:155: error: dereferencing pointer to incomplete type make: *** [dir.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [dcache.o] Error 1 Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51-r8 (gcc34-amd64-2004.1, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64) ================================================================= System uname: 2.6.9-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 1 2004, 15:08:54)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 apache2 arts artswrappersuid avi bcmath berkdb bitmap-fonts bootspla bzlib cdparanoia cdr codecs crypt cups dba dga divx4linux dvd encode esd ex exif f77 fftw foomaticdb fortran freetype ftp gd gdbm gif gimp gimpprint gnuplot gphoto2 gpm gsl gtk gtk2 imagemagick imap imlib java jpeg kde libg++ libwww mikmod mmx2 motif moznoirc moznomail moznoxft mpeg multilib mupad-noscilab mysql nas ncurses nls nptl oggvorbis opengl oss pam pcmcia pcre pdf pdflib pear-db perl php png ppds python qt quicktime readline rtc scanner sdl session simplexml slang soap spell sqlite ssl tcltk tcpd tetex truetype usb xine xml2 xmms xosd xv zlib"
I found out, that this failure is because the variable ${KV} is empty on my amd64 system, so the 2.4 kernel module is being build which obviously doesn't work with a 2.6 kernel. Unfortunately I don't know why this variable is empty, it works on x86
whatever it was, it works now, closing this bug