TL-WN881ND_2.0_LinuxDriverSetup Does not build with newer Linux version
Instructions are for
OSUbuntu 16.04
LTSKernel version 4.13.0-36-generic
Gcc version5.4.0
Even for Debian Stretch, which is a few versions behind newest release, the gcc version refuses to build the source files. This is advertised as a linux compatible device. However it really doesn't seem to be.
I'm running:
Linux version 4.9.0-14-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.240-2 (2020-10-30)
Here is the output from make.
"******************************************"
"NO KSRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-14-amd64/build M=/home/chris/Downloads/driver modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-14-amd64'
"******************************************"
"NO KSRC,we will use default KSRC"
"******************************************"
CC [M] /home/chris/Downloads/driver/core/rtw_cmd.o
In file included from /home/chris/Downloads/driver/include/drv_types.h:95:0,
from /home/chris/Downloads/driver/core/rtw_cmd.c:22:
/home/chris/Downloads/driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
extern char file_path[PATH_LENGTH_MAX];
^~~~~~~~~
In file included from /usr/src/linux-headers-4.9.0-14-common/include/linux/seq_file.h:10:0,
from /usr/src/linux-headers-4.9.0-14-common/include/linux/pinctrl/consumer.h:17,
from /usr/src/linux-headers-4.9.0-14-common/include/linux/pinctrl/devinfo.h:21,
from /usr/src/linux-headers-4.9.0-14-common/include/linux/device.h:24,
from /usr/src/linux-headers-4.9.0-14-common/include/linux/dmaengine.h:20,
from /usr/src/linux-headers-4.9.0-14-common/include/linux/netdevice.h:38,
from /home/chris/Downloads/driver/include/osdep_service_linux.h:35,
from /home/chris/Downloads/driver/include/osdep_service.h:41,
from /home/chris/Downloads/driver/include/drv_types.h:32,
from /home/chris/Downloads/driver/core/rtw_cmd.c:22:
/usr/src/linux-headers-4.9.0-14-common/include/linux/fs.h:2741:14: note: previous declaration of ‘file_path’ was here
extern char *file_path(struct file *, char *, int);
^~~~~~~~~
/usr/src/linux-headers-4.9.0-14-common/scripts/Makefile.build:309: recipe for target '/home/chris/Downloads/driver/core/rtw_cmd.o' failed
make[4]: *** [/home/chris/Downloads/driver/core/rtw_cmd.o] Error 1
/usr/src/linux-headers-4.9.0-14-common/Makefile:1560: recipe for target '_module_/home/chris/Downloads/driver' failed
make[3]: *** [_module_/home/chris/Downloads/driver] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-14-amd64'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2