When I try to compile to openMosix kernel sources, I get the following error: /usr/src/linux-2.4.26-openmosix-r5/arch/i386/lib/lib.a /usr/src/linux-2.4.26-openmosix-r5/lib/lib.a /usr/src/linux-2.4.26-openmosix-r5/arch/i386/lib/lib.a \ --end-group \ -o vmlinux /usr/src/linux-2.4.26-openmosix-r5/hpc/hpc.o(.text+0x26300): In function `remote_sys_ipc': : undefined reference to `ipc_parse_version' make: *** [vmlinux] Error 1 I encountered this error with the "stable" openmosix-sources-2.4.22-r11 and the masked ebuild openmosix-sources-2.4.26-r5. What's wrong? By the way: The 2.4.26-r5 ebuild tries to download the kernel patch from http://dev.gentoo.org/~voxus/patch-2.4.26-om-migshm-20040722.bz2. This file does not exist. It seems as it has moved to http://dev.gentoo.org/~voxus/om/patch-2.4.26-om-migshm-20040722.bz2. I downloaded it manually and placed it in /usr/portage/distfiles. Because I additionally received an checksum error, I changed the MD5Sum from a0d567968372e7d0cb4b0143da8a4eba to ffa49dda254f871f624a90514ac175b8 in the file /usr/portage/sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.26-r5. I assume there is something wrong with the ebuild but don't think it's the reason for the compilation error due to the fact that I had the same error with the 2.4.22-r11 ebuild. I will attach my kernel config. Please check it for errors. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 36585 [details] My kernel config for the openmosix-sources
SRC_URI fixed. to fix compilation problems, please do something like: cd /usr/src/linux && cp .config `hostname` && \ make clean mrproper && cp `hostname` .config && \ make oldconfig dep bzImage modules modules_install
Thanks for fixing the ebuild. However, I still get the compilation error. The described way doesn't work either. I even unmerged the openmosix-sources and emerged them again. Same error.
hmm. i can't reproduce it on my nodes. can you please post your `emerge info` output?
This is my emerge info output: Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26) ================================================================= System uname: 2.4.26 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=pentium3 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=pentium3 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ http://128.213.5.34/gentoo/ http://gentoo.tiscali.nl/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 acl apache2 apm arts berkdb crypt dedicated fbcon foomaticdb gd gdbm gif gpm gtk gtk2 imlib ipv6 jpeg libg++ libwww maildir mbox memlimit mmx motif mysql ncurses nls pam pdflib perl png python qt readline samba sdl slang spell sse ssl svga tcpd truetype unicode vhosts x86 xml xml2 xmms zlib"
I tried to compile the openmosix-sources-2.4.26-r5 on a second computer and got also an error (not the same): shm.c: In function `sys_shmdt': shm.c:787: error: `shmdnext' undeclared (first use in this function) shm.c:787: error: (Each undeclared identifier is reported only once shm.c:787: error: for each function it appears in.) make[2]: *** [shm.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.26-openmosix-r5/ipc' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.26-openmosix-r5/ipc' make: *** [_dir_ipc] Error 2 What am I doing wrong? I configured the kernel using 'make menuconfig' and compiled it with 'make dep && make bzImage modules modules_install'. I have never had any problems with compiling a kernel, but I can't get the openMosix sources work.
where is your /usr/src/linux symlink points to?
The /usr/src/linux symlink points to the openmosix-sources: bash-2.05b$ ls -l /usr/src/linux lrwxrwxrwx 1 root root 25 Aug 2 16:45 /usr/src/linux -> linux-2.4.26-openmosix-r5
Because I was not sure if '/usr/src/linux -> linux-2.4.26-openmosix-r5' is correct or should be '/usr/src/linux -> /usr/src/linux-2.4.26-openmosix-r5', I removed the symlink and created a new one with full path data with 'ln -s /usr/src/linux-2.4.26-openmosix-r5 /usr/src/linux'. Now the symlink looks like this: bash-2.05b$ ls -l /usr/src/linux lrwxrwxrwx 1 root root 34 Aug 3 10:52 /usr/src/linux -> /usr/src/linux-2.4.26-openmosix-r5 Additionally I executed 'make clean mrproper'. Then I compiled the kernel with 'make dep && make bzImage modules modules_install' but the error is still there: /usr/src/linux-2.4.26-openmosix-r5/hpc/hpc.o(.text+0x26300): In function `remote_sys_ipc': : undefined reference to `ipc_parse_version' make: *** [vmlinux] Error 1 or rather on the second computer: shm.c: In function `sys_shmdt': shm.c:787: error: `shmdnext' undeclared (first use in this function) shm.c:787: error: (Each undeclared identifier is reported only once shm.c:787: error: for each function it appears in.) make[2]: *** [shm.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.26-openmosix-r5/ipc' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.26-openmosix-r5/ipc' make: *** [_dir_ipc] Error 2
can you please show me 762-764 lines from ipc/shm.c ?
Well, ll. 762-764 contain: struct mm_struct *mm = current->mm; struct vm_area_struct *shmd; int retval = -EINVAL; I hope that is what you wanted.
yep, great. thank you, this issues will be fixed in upcoming -r6 (to be released this week). :-)
fixed in commited openmosix-sources-2.4.27
With the release of the openmosix-sources-2.4.27 ebuild everything is working fine. No more errors. Thanks for fixing it. Great work!