Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37612 - openafs kernel module does not compile with openmosix-r3 kernel
Summary: openafs kernel module does not compile with openmosix-r3 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-08 07:56 UTC by M Grundman
Modified: 2004-01-08 10:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
detailed compilation output (in,1.93 KB, text/plain)
2004-01-08 07:58 UTC, M Grundman
Details
openafs-1.2.10-r1.ebuild (openafs-1.2.10-r1.ebuild,2.43 KB, text/plain)
2004-01-08 10:24 UTC, M Grundman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M Grundman 2004-01-08 07:56:41 UTC
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"
Comment 1 M Grundman 2004-01-08 07:58:27 UTC
Created attachment 23385 [details]
detailed compilation output
Comment 2 M Grundman 2004-01-08 10:07:51 UTC
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.
Comment 3 M Grundman 2004-01-08 10:21:43 UTC
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.
Comment 4 M Grundman 2004-01-08 10:24:12 UTC
Created attachment 23401 [details]
openafs-1.2.10-r1.ebuild

fixed ebuild file