rtl8812au-driver-5.2.9 icon indicating copy to clipboard operation
rtl8812au-driver-5.2.9 copied to clipboard

Doesn't compile with DKMS on Fedora 27

Open millerthegorilla opened this issue 6 years ago • 2 comments

Error when compiling with DKMS on Fedora 27 Error is as follows from dkms log

/var/lib/dkms/rtl8812au/5.2.9/build/include/osdep_service_linux.h: In function ‘_init_timer’: /var/lib/dkms/rtl8812au/5.2.9/build/include/osdep_service_linux.h:301:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’ ptimer->data = (unsigned long)cntx; ^~ /var/lib/dkms/rtl8812au/5.2.9/build/include/osdep_service_linux.h:302:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration] init_timer(ptimer);

Attached is make.log

make.log

millerthegorilla avatar May 22 '18 20:05 millerthegorilla

init_timer function (and setup_timer) has been replaced in 4.15 https://lwn.net/Articles/735887/

millerthegorilla avatar May 22 '18 21:05 millerthegorilla

I made the necessary changes, uncommenting the setup_timer, and changing it to timer_setup, and using a macro to switch between the original code and the new, depending on kernel version, and then I compiled with DKMS, but it wasn't working. Also, the module that is created by this code base is huge and bloated. I would recommend a different one, or investigating the config options etc.

millerthegorilla avatar May 24 '18 08:05 millerthegorilla