2.4.22-openmosix-r3 and openafs-1.2.10-r1 cannot compile MODLOAD-2.4.22-openmosix-r3-SP directory ( client kernel module ). afs_analyze.c : In file included from ../asm/uaccess.h:8, from ../afs/sysincludes.h:65, from ../afs/afs_analyze.c:19: ../linux/sched.h:33:25: hpc/hpctask.h: No such file or directory In file included from ../asm/uaccess.h:8, from ../afs/sysincludes.h:65, from ../afs/afs_analyze.c:19: ../linux/sched.h:463: field `mosix' has incomplete type Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-openmosix-r3) ================================================================= System uname: 2.4.22-openmosix-r3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.10 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X afs apm arts avi berkdb crypt cups derectfb emacs encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Created attachment 23385 [details] detailed compilation output
I think I have found a solution, you must create a symbolic link in the src/libafs directory of openafs distribution. "ln -s /usr/src/linux/include/hpc hpc" This is a bug that exists for a long time with openmosix and mosix kernels. I'm not sure that the link will solve problems for both kernels but it works with openmosix.
Adding a line "ln -s /usr/src/linux/include/hpc src/libafs/hpc" at the end of src_unpack() in ebild file solves the problem.
Created attachment 23401 [details] openafs-1.2.10-r1.ebuild fixed ebuild file