PDA

View Full Version : Note for compiling modules against 2.6.5



kelmo
05-08-2004, 12:51 AM
There is something going on with the cleaning scripts of kernel 2.6.5 which removes components required for the successful compilation of extra kernel modules. There are workarounds.

If compiling against existing 2.6.5 kernel:-
cd /usr/src/linux
make include/linux/version.h

If recompiling kernel with extra modules with make-kpkg kernel_image modules_image:-
add line "do_clean := NO " to /etc/kernel-pkg.conf

Romkillah
05-13-2004, 01:41 AM
Is this why I cannot compile a new kernel?

When I try run "make xconfig" I get these error messages

HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from scripts/basic/fixdep.c:107:
/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

and it exits. Is that why, or is my prob something different? I need to recompile the 2.6.5 kernel to see my grafx card, etc...

user unknown
05-13-2004, 04:00 AM
I tried to configure my kernel with make xconfig too and it didn't work, but it worked perfect with 'make menuconfig'.