From: Milos M. <mu...@ci...> - 2004-09-29 09:56:16
|
Hi, I tried to compile thinkpad modules (version 5.7) under 2.6.9-rc2-bk10 kernel, but with no success. The first way (via make-kpkg modules_image) do not produce .deb file. (output at the end of this mail). The second way (via make all) gives folloving errors: make all make -C 2.6/drivers make[1]: Entering directory `/usr/src/modules/thinkpad-5.7/2.6/drivers' make -C /lib/modules/2.6.8.1/build SUBDIRS=/usr/src/modules/thinkpad-5.7/2.6/drivers modules make[2]: Entering directory `/usr/src/linux-2.6.9-rc2-bk10' CC [M] /usr/src/modules/thinkpad-5.7/2.6/drivers/thinkpad.o CC [M] /usr/src/modules/thinkpad-5.7/2.6/drivers/smapi_core.o as -o /usr/src/modules/thinkpad-5.7/2.6/drivers/smapi_call.o /usr/src/modules/thinkpad-5.7/2.6/drivers/smapi_call.s /usr/src/modules/thinkpad-5.7/2.6/drivers/smapi_call.s: Assembler messages: /usr/src/modules/thinkpad-5.7/2.6/drivers/smapi_call.s:50: Warning: indirect lcall without `*' LD [M] /usr/src/modules/thinkpad-5.7/2.6/drivers/smapi.o CC [M] /usr/src/modules/thinkpad-5.7/2.6/drivers/superio.o CC [M] /usr/src/modules/thinkpad-5.7/2.6/drivers/rtcmosram.o CC [M] /usr/src/modules/thinkpad-5.7/2.6/drivers/thinkpadpm.o /usr/src/modules/thinkpad-5.7/2.6/drivers/thinkpadpm.c: In function `apm_bios_call': /usr/src/modules/thinkpad-5.7/2.6/drivers/thinkpadpm.c:216: error: invalid operands to binary + /usr/src/modules/thinkpad-5.7/2.6/drivers/thinkpadpm.c: In function `apm_bios_call_simple': /usr/src/modules/thinkpad-5.7/2.6/drivers/thinkpadpm.c:272: error: invalid operands to binary + make[3]: *** [/usr/src/modules/thinkpad-5.7/2.6/drivers/thinkpadpm.o] Error 1 make[2]: *** [_module_/usr/src/modules/thinkpad-5.7/2.6/drivers] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.9-rc2-bk10' make[1]: *** [default] Error 2 make[1]: Leaving directory `/usr/src/modules/thinkpad-5.7/2.6/drivers' make: *** [all] Error 2 If you have any ideas how to solve this problem, please let me know. Cheers, Milos. PS: In th contrast to documentation - I do not have include/linux/modversions.h, and I am not able to generate it with 'make dep' (*** Warning: make dep is unnecessary now.) PPS: make-kpkg modules_image for module in ; do \ if test -d $module; then \ (cd $module; \ if ./debian/rules KVERS="2.6.8.1" KSRC="/usr/src/linux" \ KMAINT="Unknown Kernel Package Maintainer" KEMAIL="un...@un...nf" \ KPKG_DEST_DIR="/usr/src/linux/.." \ KPKG_MAINTAINER="Unknown Kernel Package Maintainer" \ KPKG_EXTRAV_ARG="" \ KDREV="10.00.Custom" kdist_image; then \ echo "Module $module processed fine"; \ else \ echo "Module $module failed."; \ if [ "X" != "X" ]; then \ echo "Perhaps $module does not understand --rootcmd?"; \ echo "If you see messages that indicate that it is not"; \ echo "in fact being built as root, please file a bug "; \ echo "against $module."; \ fi; \ echo "Hit return to Continue"; \ read ans; \ fi; \ ); \ fi; \ done (I do have thinkpad-5.7 under /usr/src/modules directory) |