problem compiling new kernel
From: takashi (twakeshi_at_telus.net)
Date: 09/01/03
- Next message: SD: "Re: Newbie questions (a few topics) for HP Omnibook 6100"
- Previous message: Kizzle: "Re: Which is better?"
- Next in thread: half_pint: "Re: problem compiling new kernel"
- Reply: half_pint: "Re: problem compiling new kernel"
- Reply: Gustavo Garcia Rondina: "Re: problem compiling new kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
scripts/mkdep.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or
directory
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
called 'oprofile'.
Thank you very much, and have a good day.
- Next message: SD: "Re: Newbie questions (a few topics) for HP Omnibook 6100"
- Previous message: Kizzle: "Re: Which is better?"
- Next in thread: half_pint: "Re: problem compiling new kernel"
- Reply: half_pint: "Re: problem compiling new kernel"
- Reply: Gustavo Garcia Rondina: "Re: problem compiling new kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|