Sat 08 Jul 2006 02:43:11 PM UTC, original submission:
Compilation of gku2 module fails with gnokii-0.6.13 and kernel 2.6.16(-gentoo-r7).
Error reported is:
> gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.c:62: error: syntax > error before numeric constant
It seems to me, that the bug is in nokia_dku2.h:
> ...
> #define NOKIA7600_PRODUCT_ID 0x0400 7600
> #define NOKIA6650_PRODUCT_ID 0x0401 6650
> #define NOKIA6255_PRODUCT_ID 0x0402 6255
> #define NOKIA6651_PRODUCT_ID 0x040E 6651
> #define NOKIA6230_PRODUCT_ID 0x040F 6230
> #define NOKIA6170_PRODUCT_ID 0x0416 6170
> #define NOKIA7270_PRODUCT_ID 0x0417 7270
> #define NOKIA7710_PRODUCT_ID 0x041C 7710
> #define NOKIA3230_PRODUCT_ID 0x0421 3230
> #define NOKIA6230i_PRODUCT_ID 0x0428 6230i
> ...
the last field (7600 6650 ...) makes no sense! Removing it allows me to compile the module. However several warning appear on compilation:
> make[1]: Entering directory `/usr/src/linux-2.6.16-gentoo-r7'
> CC [M] /var/tmp/gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.o
> Building modules, stage 2.
> MODPOST
> *** Warning: "usb_serial_deregister" [/var/tmp/gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.ko] undefined!
>*** Warning: "usb_serial_register" [/var/tmp/gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.ko] undefined!
>*** Warning: "usb_serial_disconnect" [/var/tmp/gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.ko] undefined!
>*** Warning: "usb_serial_probe" [/var/tmp/gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.ko] undefined!
> CC >/var/tmp/gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.mod.o
LD [M] >/var/tmp/gnokii-0.6.13/patches/kernel_2.6/nokia_dku2.ko
>make[1]: Leaving directory `/usr/src/linux-2.6.16-gentoo-r7'
And indeed the loading of the module fails with:
>FATAL: Error inserting nokia_dku2 >(/lib/modules/2.6.16-gentoo-r7/kernel/drivers/usb/serial/nokia_dku2.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Dmesg tells me:
> ...
> nokia_dku2: Unknown symbol usb_serial_disconnect
> nokia_dku2: Unknown symbol usb_serial_probe
> nokia_dku2: Unknown symbol usb_serial_register
> nokia_dku2: Unknown symbol usb_serial_deregister
> ...
|