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??

(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)
Who is Participating?
freesourceConnect With a Mentor Commented:
I asked freemo20 this question in relation to his question:

By required packages, do you mean the latest glibc-devel package?
The problem was solved.   Basically, what happened was that glibc was updated, but glibc-devel wasn't.
glibc-devel has the standard header files and object
files  needed for creating executables, so although the header and object files were still present from the old glibc-devel, the new gcc didn't recognize them because they were in an older format.

Your welcome, and I am glad the problem is resolved.  Have fun!

You can grade my answer now, so I can get my points, and eventually a T-Shirt!
By required packages, do you mean the latest glibc-devel package?
freemo20Author Commented:
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.

freemo20Author Commented:
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!)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.