tomaspinho / rtl8821ce

Other
1.6k stars 408 forks source link

Drive does not install #318

Closed jvvasquesn closed 1 year ago

jvvasquesn commented 1 year ago

Is there any solution? tks

DKMS make.log for rtl8821CU-5.4.1 for kernel 5.19.0-32-generic (x86_64) qui 23 fev 2023 13:52:42 -03 make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.0-32-generic/build M=/var/lib/dkms/rtl8821CU/5.4.1/build modules make[1]: Entering directory '/usr/src/linux-headers-5.19.0-32-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_cmd.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_security.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_io.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_ioctl_query.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_ioctl_set.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_ieee80211.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_mlme.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_mlme_ext.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_mi.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_wlan_util.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_vht.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_pwrctrl.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_rf.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_recv.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_sta_mgt.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_ap.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/mesh/rtw_mesh.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/mesh/rtw_mesh_pathtbl.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/mesh/rtw_mesh_hwmp.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_xmit.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_p2p.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_rson.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_tdls.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_br_ext.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_iol.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_sreset.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_btcoex_wifionly.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_btcoex.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_beamforming.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_odm.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_rm.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_rm_fsm.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/efuse/rtw_efuse.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/osdep_service.o /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/osdep_service.c: In function ‘rtw_change_ifname’: /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/osdep_service.c:2494:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2494 | _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN); | ~^~~~ /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/osdep_service.c:925:24: note: expected ‘void ’ but argument is of type ‘const unsigned char ’ 925 | void _rtw_memcpy(void dst, const void src, u32 sz) | ~~^~~ CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/os_intfs.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/usb_intf.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/usb_ops_linux.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_linux.o /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_linux.c: In function ‘rtw_mp_efuse_set’: /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_linux.c:9781:46: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 9781 | _rtw_memcpy(padapter->pnetdev->dev_addr, get_hal_mac_addr(padapter), ETH_ALEN); / set mac addr to net_device / | ~~~^~~~ In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:27, from /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_linux.c:17: /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service.h:296:35: note: expected ‘void ’ but argument is of type ‘const unsigned char ’ 296 | extern void _rtw_memcpy(void dec, const void sour, u32 sz); | ~~^~~ CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/xmit_linux.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/mlme_linux.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/recv_linux.o CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.o /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’: /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c:420:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’ 420 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef); | ^~~~~~~~~ In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service_linux.h:93, from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service.h:50, from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:27, from /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c:17: ./include/net/cfg80211.h:7967:6: note: declared here 7967 | void cfg80211_ch_switch_notify(struct net_device dev, | ^~~~~~~~~ /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c: At top level: /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c:9416:20: error: initialization of ‘int ()(struct wiphy , struct net_device , unsigned int)’ from incompatible pointer type ‘int ()(struct wiphy , struct net_device *)’ [-Werror=incompatible-pointer-types] 9416 | .stop_ap = cfg80211_rtw_stop_ap, | ^~~~~~~~ /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c:9416:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’) /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’: /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.c:9682:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’ 9682 | if (wdev->current_bss) { | ^~ cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:257: /var/lib/dkms/rtl8821CU/5.4.1/build/os_dep/linux/ioctl_cfg80211.o] Error 1 make[1]: [Makefile:1850: /var/lib/dkms/rtl8821CU/5.4.1/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-32-generic' make: *** [Makefile:2217: modules] Error 2

dubhater commented 1 year ago

You did not obtain that driver (rtl8821CU) from this repo (rtl8821ce).

jvvasquesn commented 1 year ago

I'm so sorry guys...