Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #11

Open
safield opened this issue Jul 28, 2020 · 2 comments
Open

Build error #11

safield opened this issue Jul 28, 2020 · 2 comments

Comments

@safield
Copy link

safield commented Jul 28, 2020

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

@realFranco
Copy link

realFranco commented Aug 2, 2020

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.

@akim-cmyk
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants