problem compiling new kernel

From: takashi (twakeshi_at_telus.net)
Date: 09/01/03


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.



Relevant Pages

  • Re: problem compiling new kernel
    ... "takashi" wrote in message ... I am having trouble compiling a new kernel that I downloaded from ... and tried to make a new kernel. ... > Now I opened 'menuconfig' in /usr/src/linux-2.4.22 ...
    (alt.linux)
  • Re: Compatible Winmodems?
    ... I suspect my only route is a Winmodem for that price. ... That saves you LOTS of trouble compiling the kernel module for every new kernel and problems as abandoned code which does not compile with a new kernel version. ...
    (Fedora)
  • Re: glibc-2.6 compile problem
    ... alot of trouble compiling glibc-2.6 I am using gcc-346 and glibc-23. ... your kernel supports the system call, ... defining it 'for some reason' is ... The corresponding part from my unistd.h header is ...
    (comp.os.linux.development.apps)
  • 2.4.22 and Athlon64
    ... I am having trouble compiling the 2.4.22 kernel for x86-64 non-smp. ... compile the smp kernel but not the regular kernel. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Contents of redhat-list digest...
    ... limiting CPU access per user ... Old Version of kermit Source Code ... handle kernel NULL pointer ... barcode reader, from TRU-64 to Redhat. ...
    (RedHat)