Click to See Complete Forum and Search --> : compiling kernel


Osh
09-30-2001, 11:07 PM
can someone tell me what i missed or what i am doing wrong?? i have RH 7.1 installed and i want compile 2.4.10. i have downloaded the source already and extracted it. then i used make menuconfig to configure it. but then when i try to 'make dep' i get this:

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/2.96/include/limits.h:130,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/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
make: *** [scripts/mkdep] Error 1

then i copy limits.h from /usr/.../include to linux/. then i try 'make dep' again and get:

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
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: size of array `resolved_path' has non-integer type
make: *** [scripts/mkdep] Error 1


can anyone help me?

TIA
-Osh

SkyNet
09-30-2001, 11:13 PM
This looks similar to a problem I had before. Make sure that linux is either the dir with your new kernel source in it or if it's a symlink make sure it points to the dir that your new linux kernel source resides in.

Originally posted by Osh:
can someone tell me what i missed or what i am doing wrong?? i have RH 7.1 installed and i want compile 2.4.10. i have downloaded the source already and extracted it. then i used make menuconfig to configure it. but then when i try to 'make dep' i get this:

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/2.96/include/limits.h:130,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/2.96/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
make: *** [scripts/mkdep] Error 1

then i copy limits.h from /usr/.../include to linux/. then i try 'make dep' again and get:

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
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: size of array `resolved_path' has non-integer type
make: *** [scripts/mkdep] Error 1


can anyone help me?

TIA
-Osh

Osh
10-01-2001, 06:28 PM
ya, that is the dir with the source.
i also renamed the old linux source folder.

-Osh