Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59073 - Unable to compile openmosix-sources
Summary: Unable to compile openmosix-sources
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-01 07:55 UTC by gentoolinux
Modified: 2010-09-10 18:59 UTC (History)
0 users

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


Attachments
My kernel config for the openmosix-sources (openmosix-kernel-config,17.16 KB, application/octet-stream)
2004-08-01 07:56 UTC, gentoolinux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoolinux 2004-08-01 07:55:03 UTC
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.
Comment 1 gentoolinux 2004-08-01 07:56:05 UTC
Created attachment 36585 [details]
My kernel config for the openmosix-sources
Comment 2 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-01 23:47:29 UTC
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

Comment 3 gentoolinux 2004-08-02 08:49:38 UTC
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.
Comment 4 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-02 09:58:40 UTC
hmm. i can't reproduce it on my nodes.

can you please post your `emerge info` output?
Comment 5 gentoolinux 2004-08-02 10:05:09 UTC
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"
Comment 6 gentoolinux 2004-08-02 11:25:32 UTC
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.
Comment 7 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-02 23:48:46 UTC
where is your /usr/src/linux symlink points to?
Comment 8 gentoolinux 2004-08-03 01:50:59 UTC
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
Comment 9 gentoolinux 2004-08-03 02:40:52 UTC
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
Comment 10 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-04 04:37:16 UTC
can you please show me 762-764 lines from ipc/shm.c ?
Comment 11 gentoolinux 2004-08-04 05:16:50 UTC
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.
Comment 12 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-04 05:42:38 UTC
yep, great. thank you, this issues will be fixed in upcoming -r6 (to be released this week).

:-)
Comment 13 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-09 05:52:03 UTC
fixed in commited openmosix-sources-2.4.27
Comment 14 gentoolinux 2004-08-10 05:54:07 UTC
With the release of the openmosix-sources-2.4.27 ebuild everything is working fine. No more errors. Thanks for fixing it. Great work!