problem compiling new kernel
From: takashi (twakeshi_at_telus.net)
Date: Mon, 01 Sep 2003 02:27:55 GMT
Hi, I am having trouble compiling a new kernel that I downloaded from
the internet. I'm using Redhat 9. I downloaded the file called
'linux-2.4.22.tar.bz2', and tried to make a new kernel. Here is what I did.
1) cd /usr/src
2) tar xjvf linux-2.4.22.tar.bz2
Now, this is what I think I might have done wrong.
3) rm -rf /usr/include/asm
4) rm -rf /usr/include/linux
5) rm -rf /usr/include/scsi
5) ln -s /usr/src/linux-2.4.22 /usr/include/linux
6) ln -s /usr/src/linux-2.4.22/include/asm-i386 /usr/include/asm
7) ln -s /usr/src/linux-2.4.22/include/scsi /usr/include/scsi
Now I opened 'menuconfig' in /usr/src/linux-2.4.22
8) make menuconfig
Then, I configured the kernel
9) make dep
Now at this point, I have got the error message that
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep
In file included from /usr/include/bits/posix1_lim.h:126,
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: (Each undeclared identifier is reported only once
scripts/mkdep.c:221: for each function it appears in.)
scripts/mkdep.c:221: warning: unused variable `resolved_path'
make: *** [scripts/mkdep] Error 1
I did not know what I should do. Could anybody help me?
I just wanted to compile a new kernel that supports the software
Thank you very much, and have a good day.