[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mosix patched kernel not compiling



okay, i am now trying to compile a patched kernel (patched with mosix).  i
am going to put complete history of what i've done from first installing
debian 2.20 from disk.
i am using the mosix patch from apt-get which is for a 2.4.17 kernel, so i
am using a 2.4.17 kernel.  i am following the HOWTO located at
http://howto.ipng.be/openMosix-HOWTO/x364.htm
i installed from disk, using 3.0 disks - then use http to install base
system.  all necessary parts are installed, such as network card.  not
running tasksel or dselect.  very basic system.  Now the following
instructions i can follow word for word on my machines and they will all
successfully run:
#apt-get install kernel-patch-mosix
#apt-get install kernel-source-2.4.17
#bunzip2 /usr/src/kernel-source-2.4.17.tar.bz2
#tar -xf /usr/src/kernel-source-2.4.17.tar
#gunzip /usr/src/kernel-patches/i386/mosix/patches.2.4.17
#cp /usr/src/kernel-patches/i386/mosix/patches.2.4.17
/usr/src/kernel-source-2.4.17
#cd /usr/src/kernel-source-2.4.17
#patch -p0 < patches.2.4.17
#apt-get install gcc
#apt-get install make
#cd /usr/src
#ln -s kernel-source-2.4.17 linux
#make oldconfig     --> (this configs almost everything, asks maybe 2
questions, which i select as default)
now - here's where things go bad, i try the make dep
---------------------
ASS001:/usr/src/linux# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep
scripts/mkdep.c
scripts/mkdep.c:33: ctype.h: No such file or directory
scripts/mkdep.c:34: fcntl.h: No such file or directory
In file included from
/usr/lib/gcc-lib/i386-linux/2.95.4/include/syslimits.h:7,
                 from
/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:11,
                 from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:117: limits.h: No such
file or directory
scripts/mkdep.c:36: stdio.h: No such file or directory
scripts/mkdep.c:37: stdlib.h: No such file or directory
scripts/mkdep.c:38: string.h: No such file or directory
scripts/mkdep.c:39: unistd.h: No such file or directory
scripts/mkdep.c:41: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42: sys/mman.h: No such file or directory
scripts/mkdep.c:43: sys/stat.h: No such file or directory
scripts/mkdep.c:44: sys/types.h: No such file or directory
----------------------------
why are those files not there, and why are they asking for them?  and as a
note, i also tried #make config and spent an hour going through the whole
list, answering default to almost all of them (since they were either
correct, or i didn't know what it was) and ended up getting the same missing
files.

is there anything wrong with this process?  is there some small detail which
most people assume, but i happen to not know from this HOWTO.  I also looked
at the README in /usr.src.kernel-source-2.4.17 and it follows pretty much
the same path.  get the sources, unzip, copy to patch to kernel source
folder, patch, make config, make dep...

-rp



Reply to: