PDA

View Full Version : compiling kernel



wwhyer
04-08-2005, 06:26 PM
I installed knoppix 3.6 on hard disk.
I tried to recompile kernel: I unpacked source kernel 2.6.11 in /usr/src/linux. I copied /boot/config-2.6.7 there but this is what happens:

root@haus:/usr/src/linux# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

What do it means? I did the same procedure with debian which worked. What changes in knoppix?

Thank you helping me! I am destroied by this problem...

Markus
04-08-2005, 06:29 PM
Try: apt-get linux-kernel-headers
If it doesn't help try changing line 305 of /usr/include/bits/socket.h from "#include <asm/socket.h>" to "#include </usr/src/linux/include/asm-i386/socket.h>