cilynx / rtl88x2bu

rtl88x2bu driver updated for current kernels.
http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
GNU General Public License v2.0
1.66k stars 320 forks source link

dkms compile error on debian sid kernel 6.1.0-5 #241

Closed forrcaho closed 1 year ago

forrcaho commented 1 year ago

I apologize for not having all the information you may require; I set up my debian to automatially compile this code using dkms whenever I install a new kernel version using apt. It has worked fine many times and I haven't needed to worry about it.

The latest install didn't compile, though. Here is the last bit of the log file which contains the errors:

  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/os_dep/linux/os_intfs.o
/usr/src/rtl88x2bu-5.8.7.1/os_dep/osdep_service.c: In function ‘rtw_random32’:
/usr/src/rtl88x2bu-5.8.7.1/os_dep/osdep_service.c:2703:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
 2703 |         return prandom_u32();
      |                ^~~~~~~~~~~
      |                prandom_u32_max
  CC [M]  /var/lib/dkms/rtl88x2bu/5.8.7.1/build/os_dep/linux/usb_intf.o
/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/os_intfs.c: In function ‘rtw_os_ndev_register’:
/usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/os_intfs.c:1906:9: error: too many arguments to function ‘netif_napi_add’
 1906 |         netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
      |         ^~~~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.8.7.1/include/osdep_service_linux.h:31,
                 from /usr/src/rtl88x2bu-5.8.7.1/include/osdep_service.h:53,
                 from /usr/src/rtl88x2bu-5.8.7.1/include/drv_types.h:27,
                 from /usr/src/rtl88x2bu-5.8.7.1/os_dep/linux/os_intfs.c:17:
/usr/src/linux-headers-6.1.0-5-common/include/linux/netdevice.h:2569:1: note: declared here
 2569 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
      | ^~~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.1.0-5-common/scripts/Makefile.build:255: /var/lib/dkms/rtl88x2bu/5.8.7.1/build/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-5-common/scripts/Makefile.build:255: /var/lib/dkms/rtl88x2bu/5.8.7.1/build/os_dep/osdep_service.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-5-common/Makefile:2030: /var/lib/dkms/rtl88x2bu/5.8.7.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-5-amd64'
make: *** [Makefile:2392: modules] Error 2

I did make sure I was updated to use the latest code in the default branch of this repo.

Please let me know what more information I can provide to help resolve this.

forrcaho commented 1 year ago

I'm not sure what I did differently, but on a subsequent attempt this built successfully. Closing this ticket.