Link to home
Start Free TrialLog in
Avatar of freemo20
freemo20

asked on

Kernel build errors

Just been compiling new kernel in Redhat 6
Current kernel 2.2.5
Trying 2.3.29, mainly for the USB development stuff.

I've followed the normal procedure for compiling new kernels & get through the config ok.
then when i go to "make dep" I get the following error:

         gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
         scripts/mkdep.c:23: ctype.h: No such file or directory
         scripts/mkdep.c:24: stdio.h: No such file or directory
         scripts/mkdep.c:25: stdlib.h: No such file or directory
         scripts/mkdep.c:26: string.h: No such file or directory
         scripts/mkdep.c:27: unistd.h: No such file or directory
         scripts/mkdep.c:29: sys/fcntl.h: No such file or directory
         scripts/mkdep.c:30: sys/mman.h: No such file or directory
         scripts/mkdep.c:31: sys/stat.h: No such file or directory
         scripts/mkdep.c:32: sys/types.h: No such file or directory
         make: *** [scripts/mkdep] Error 1

Funny part is, these files do exist in the path that it is looking for.  The script actually points there!  All the symlinks etc are ok, have checked all that.
And yes, I do have the latest versions of required packages :o)
Any ideas??
TIA

(this is the first time I've compiled a new kernel on this installation of RH 6.  Previously I was running RH 5.2 & compiled at least 3 kernels with good success)
Avatar of freesource
freesource

By required packages, do you mean the latest glibc-devel package?
Avatar of freemo20

ASKER

just an update on this one, i d/l 2.3.37 to see if it would make any diff. but no, same error on make dep

i have d/l & installed the glibc-2.1.2-11
thats the one needed by kernel 2.3.37, but not the devel package of same.  Will try that & let u know.

Thanks
Worked perfectly after installing glibc-devel.
Thanks again.
(can now see my USB modem, so will have some fun tonight trying to get it to work.  Bring on kernel 2.4, so i can make Linux my primary OS!)
ASKER CERTIFIED SOLUTION
Avatar of freesource
freesource

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial