Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kernel compiling woes 1

Status
Not open for further replies.

verland

MIS
Apr 24, 2002
138
US
Hi all, I have a super-minimal install of Debian Woody (stable) and am recompiling the kernel. When I do a make dep, I get this (hope it pastes legibly):

:~/linux$ make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c:33: ctype.h: No such file or directory
scripts/mkdep.c:34: fcntl.h: No such file or directory
In file included from /usr/lib/gcc-lib/i386-linux/2.95.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:117: limits.h: No such file or directory
scripts/mkdep.c:36: stdio.h: No such file or directory
scripts/mkdep.c:37: stdlib.h: No such file or directory
scripts/mkdep.c:38: string.h: No such file or directory
scripts/mkdep.c:39: unistd.h: No such file or directory
scripts/mkdep.c:41: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42: sys/mman.h: No such file or directory
scripts/mkdep.c:43: sys/stat.h: No such file or directory
scripts/mkdep.c:44: sys/types.h: No such file or directory
make: *** [scripts/mkdep] Error 1
jeffm@pyro:~/linux$

I'm missing some piece of software somewhere, just not sure what. I haven't gone through the script yet to see what it's refering. Tried this on two very different (hardware-wise) machines and get the same error. any ideas? Thanks
 
It looks as if you are missing the ANSI C headers. Do you have a /usr/include directory with those file in it? Can you find those files anywhere on your system? If not, I think you would have to re-install gcc or download the headers. //Daniel
 
/usr/include has 1 file and some dirs, nothing like the files seen in the make dep error. I ran locate for those filenames, some couldn't be found anywhere but a lot could be found in the source of the kernel I'm trying to compile (in my home dir, not installed on the system as they should be).

I tried apt-get remove gcc, then installed it again. The same error happened. I'm looking now but where's a good place to get the headers?
 
You need the dev packages to get the header files.

Try
apt-get install libc6-dev

You might need some more besides that one, but it should get you a little further if not all the way.

jaa
 
I apt-got libc6-dev and it worked like a charm. Thanks to all. Not 100% sure it sees both processors but that's for another thread.

Oh, one more kernel thing, I tried to do make menuconfig and it says I'm missing curses. I tried to apt-get curses but it says i've got it. is there another library i need?
'make config' worked fine but man what bore :/

thanks again,
vern
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top