PDA

View Full Version : problem compiling kernel 2.6.0



anhtran81
01-18-2004, 12:36 AM
When I tried to issue command: make menuconfig I get this

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


anyone has any idea?
Thanks

Stephen
01-18-2004, 02:53 AM
When I tried to issue command: make menuconfig I get this

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


anyone has any idea?
Thanks

Check to make sure that you have the package linux-kernel-headers installed.

turbinater
01-18-2004, 03:01 AM
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
It's looking for the file 'socket.h' in the wrong place. You can either make a symbolic link, or edit line 305 of the file '/usr/include/bits/socket.h' (the file it's refering to is "/usr/src/linux/include/asm-i386/socket.h", you may want to check if it's there).

Also, theres now a *.deb of the 2.6.0 kernel image at debian.org (http://www.debian.org/), as well as a *.deb of the kernel source if you would like to try one of them.

Note: While switching kernels you will probably encounter some problems(Mice not working, different module names, modules not being loaded, etc.).

Stephen
01-18-2004, 03:25 AM
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
It's looking for the file 'socket.h' in the wrong place. You can either make a symbolic link, or edit line 305 of the file '/usr/include/bits/socket.h' (the file it's refering to is "/usr/src/linux/include/asm-i386/socket.h", you may want to check if it's there).


http://www.knoppix.net/forum/viewtopic.php?t=6582#31621

turbinater
01-18-2004, 03:33 AM
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
It's looking for the file 'socket.h' in the wrong place. You can either make a symbolic link, or edit line 305 of the file '/usr/include/bits/socket.h' (the file it's refering to is "/usr/src/linux/include/asm-i386/socket.h", you may want to check if it's there).


http://www.knoppix.net/forum/viewtopic.php?t=6582#31621

Thanks for the correction :oops: .

anhtran81
01-18-2004, 06:06 AM
Thanks for the reply, I fix the problem by apt-get kernel-header