casastorta / gobiserial

GobiSerial (Gobi 3000 driver) patched for newer Linux kernels
18 stars 16 forks source link

Error compiling GobiSerial in Linux raspberrypi 4.9.59-v7+ #8

Open suarezjm opened 6 years ago

suarezjm commented 6 years ago

I'm trying to compile GobiSerial on a kernel version: Linux raspberrypi 4.9.59-v7+

The system is getting this error.. could you please give me some help to continue? thanks in advance

pi@raspberrypi:~/PiAnywhere_install/gobiserial/GobiSerial $ sudo dkms build -m GobiSerial -v 2011-07-29-1026

Kernel preparation unnecessary for this kernel. Skipping...

Building module: cleaning build area.... make -j4 KERNELRELEASE=4.9.59-v7+ -C /lib/modules/4.9.59-v7+/build M=/var/lib/dkms/GobiSerial/2011-07-29-1026/build.....(bad exit status: 2) Error! Bad return status for module build on kernel: 4.9.59-v7+ (armv7l) Consult /var/lib/dkms/GobiSerial/2011-07-29-1026/build/make.log for more information. pi@raspberrypi:~/PiAnywhere_install/gobiserial/GobiSerial $ more /var/lib/dkms/GobiSerial/2011-07-29-1026/build/make.log DKMS make.log for GobiSerial-2011-07-29-1026 for kernel 4.9.59-v7+ (armv7l) Tue Feb 27 13:57:27 CET 2018 make: Entering directory '/usr/src/linux-headers-4.9.59-v7+' LD /var/lib/dkms/GobiSerial/2011-07-29-1026/build/built-in.o CC [M] /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.o In file included from ./include/linux/printk.h:6:0, from ./include/linux/kernel.h:13, from ./include/linux/list.h:8, from ./include/linux/wait.h:6, from ./include/linux/fs.h:5, from ./include/linux/tty.h:4, from /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial. c:47: /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c: In function ‘GobiOp en’: ./include/linux/kern_levels.h:4:18: warning: format ‘%lu’ expects argument of ty pe ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=]

define KERN_SOH "\001" / ASCII Start Of Header /

              ^

./include/linux/kern_levels.h:13:19: note: in expansion of macro ‘KERN_SOH’

define KERN_INFO KERN_SOH "6" / informational /

               ^~~~~~~~

/var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c:91:15: note: in expa nsion of macro ‘KERN_INFO’ printk( KERN_INFO "GobiSerial::%s " format, FUNCTION, ## arg ); \ ^~~~~ /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c:420:10: note: in exp ansion of macro ‘DBG’ DBG( "invalid write size %d, %lu\n", ^~~ /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c: In function ‘GobiCl ose’: ./include/linux/kern_levels.h:4:18: warning: format ‘%lu’ expects argument of ty pe ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=]

define KERN_SOH "\001" / ASCII Start Of Header /

              ^

./include/linux/kern_levels.h:13:19: note: in expansion of macro ‘KERN_SOH’

define KERN_INFO KERN_SOH "6" / informational /

               ^~~~~~~~

/var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c:91:15: note: in expa nsion of macro ‘KERN_INFO’ printk( KERN_INFO "GobiSerial::%s " format, FUNCTION, ## arg ); \ ^~~~~ /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c:496:10: note: in exp ansion of macro ‘DBG’ DBG( "invalid write size %d, %lu\n", ^~~ In file included from ./include/linux/module.h:18:0, from /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c:53: /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c: In function ‘check_debug’: ./include/linux/moduleparam.h:146:27: error: return from incompatible pointer type [-Werror=incompatible-pointer-types] paramcheck##type(name, &(value)); \ ^ ./include/linux/moduleparam.h:344:68: note: in definition of macro ‘__param_check’ static inline type always_unused *_check##name(void) { return(p); } ^ ./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’ paramcheck##type(name, &(value)); \ ^~~~ ./include/linux/moduleparam.h:126:2: note: in expansion of macro ‘module_param_named’ module_param_named(name, name, type, perm) ^~~~~~ /var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.c:782:1: note: in expansion of macro ‘module_param’ module_param( debug, bool, S_IRUGO | S_IWUSR ); ^~~~ cc1: some warnings being treated as errors scripts/Makefile.build:299: recipe for target '/var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.o' failed make[1]: [/var/lib/dkms/GobiSerial/2011-07-29-1026/build/GobiSerial.o] Error 1 Makefile:1493: recipe for target 'module/var/lib/dkms/GobiSerial/2011-07-29-1026/build' failed make: [module/var/lib/dkms/GobiSerial/2011-07-29-1026/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.9.59-v7+'

ivuk commented 6 years ago

Hi,

sorry for the late response, neither @casastorta nor me have any GobiSerial hardware anymore. I've commited 627ce970640d9fa63f5993801a9f621206dcdefb, which I'm hoping will fix your problem. Give it a go, if you can find the time, and see if it helps.

Hope you're having a nice day! :)