TL-WN725N-TP-Link-Debian
TL-WN725N-TP-Link-Debian copied to clipboard
Build error
I am building on Lubutu 16.04 and get the following error...
In file included from /home/bill/TL-WN725N-TP-Link-Debian/core/rtw_ap.c:22:0: /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h: In function ‘_init_timer’: /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h:94:8: error: ‘struct timer_list’ has no member named ‘data’ ptimer->data = (unsigned long)cntx; ^ /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h:95:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration] init_timer(ptimer); ^ /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h: In function ‘thread_enter’: /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h:287:2: error: implicit declaration of function ‘allow_signal’ [-Werror=implicit-function-declaration] allow_signal(SIGTERM); ^ /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h: In function ‘flush_signals_thread’: /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h:292:6: error: implicit declaration of function ‘signal_pending’ [-Werror=implicit-function-declaration] if (signal_pending (current)) ^ /home/bill/TL-WN725N-TP-Link-Debian/include/osdep_service.h:293:3: error: implicit declaration of function ‘flush_signals’ [-Werror=implicit-function-declaration] flush_signals(current); ^ cc1: some warnings being treated as errors scripts/Makefile.build:330: recipe for target '/home/bill/TL-WN725N-TP-Link-Debian/core/rtw_ap.o' failed make[2]: *** [/home/bill/TL-WN725N-TP-Link-Debian/core/rtw_ap.o] Error 1 Makefile:1582: recipe for target 'module/home/bill/TL-WN725N-TP-Link-Debian' failed make[1]: *** [module/home/bill/TL-WN725N-TP-Link-Debian] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-107-generic' Makefile:147: recipe for target 'modules' failed make: *** [modules] Error 2
Hello mate,
I was obtaining the same issue.
My environment:
- OS Name: Ubuntu 20.04.1 LTS x64 bits
$ cat /proc/version
Linux version 5.4.0-42-generic (buildd@lgw01-amd64-038)
(gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2))
#46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
To solve the issue that you are reporting try the following:
https://askubuntu.com/questions/1047832/tp-link-tl-wn725n-driver-for-18-04-version
# Check if the driver is installed
$ lsmod | grep 8188
DISCLAIMER This solution use another github's repository.
Try to edit code in "include/osdep_service.h" with the help of this answer https://qna.habr.com/q/517043.
1)Add at 22nd line
#include <linux/timer.h>
2)After 293rd line add timer_setup(ptimer, pfunc, (u32)cntx);
3)And remove this: ptimer->function = pfunc; ptimer->data = (unsigned long)cntx; init_timer(ptimer);