juliagoda / CH341SER

CH341SER driver with fixed bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not compile on Linux Mint 19

mrdevis opened this issue · comments

Hi,
This does not compile on Linux mint 19 giving the following messages:
make -C /lib/modules/5.4.0-87-generic/build M=/home/jeroen/CH341SER make[1]: Entering directory '/usr/src/linux-headers-5.4.0-87-generic' CC [M] /home/jeroen/CH341SER/ch34x.o /home/jeroen/CH341SER/ch34x.c:1292:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .write_room = ch34x_write_room, ^~~~~~~~~~~~~~~~ /home/jeroen/CH341SER/ch34x.c:1292:20: note: (near initialization for ‘ch34x_device.write_room’) /home/jeroen/CH341SER/ch34x.c:1293:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .chars_in_buffer = ch34x_chars_in_buffer, ^~~~~~~~~~~~~~~~~~~~~ /home/jeroen/CH341SER/ch34x.c:1293:21: note: (near initialization for ‘ch34x_device.chars_in_buffer’) cc1: some warnings being treated as errors scripts/Makefile.build:270: recipe for target '/home/jeroen/CH341SER/ch34x.o' failed make[2]: *** [/home/jeroen/CH341SER/ch34x.o] Error 1 Makefile:1762: recipe for target '/home/jeroen/CH341SER' failed make[1]: *** [/home/jeroen/CH341SER] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-87-generic' Makefile:7: recipe for target 'default' failed make: *** [default] Error 2
gcc 7.5.0

Any ideas??

Thanks! Jeroen

Sorry, but I've been so absorbed in work that I only now noticed the issue. Is it now building and working as it should?