When I run "dkms autoinstall", I get "(bad exit status: 2)" error.
Error! Bad return status for module build on kernel: 4.18.0-338.el8.x86_64 (x86_64)
Below is the make.log output. Please advise the root cause and how can I fix the issue. Thanks.
cat /var/lib/dkms/rtl88x2bu/make.log
DKMS make.log for rtl88x2bu-git for kernel 4.18.0-338.el8.x86_64 (x86_64)
Wed Sep 15 00:43:00 HKT 2021
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-338.el8.x86_64/build M=/var/lib/dkms/rtl88x2bu/git/build modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-338.el8.x86_64'
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_chplan.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_hwmp.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_fsm.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_util.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_intf.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_ops_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_linux.o
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:1715:22: error: initialization of ‘u16 ()(struct net_device , struct sk_buff , struct net_device , u16 ()(struct net_device , struct sk_buff , struct net_device ))’ {aka ‘short unsigned int ()(struct net_device , struct sk_buff , struct net_device , short unsigned int ()(struct net_device , struct sk_buff , struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device , struct sk_buff , void , u16 ()(struct net_device , struct sk_buff , struct net_device ))’ {aka ‘short unsigned int ()(struct net_device , struct sk_buff , void , short unsigned int ()(struct net_device , struct sk_buff , struct net_device ))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:1715:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/xmit_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/mlme_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/recv_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.o
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_linux.c:12353:30: warning: ‘rtw_get_wireless_stats’ defined but not used [-Wunused-function]
static struct iw_statistics rtw_get_wireless_stats(struct net_device dev)
^~~~~~
cc1: some warnings being treated as errors
make[2]: [scripts/Makefile.build:315: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.o] Error 1
make[2]: Waiting for unfinished jobs....
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:448:3: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0);
^~~~~~~~~
In file included from /var/lib/dkms/rtl88x2bu/git/build/include/osdep_service_linux.h:98,
from /var/lib/dkms/rtl88x2bu/git/build/include/osdep_service.h:53,
from /var/lib/dkms/rtl88x2bu/git/build/include/drv_types.h:27,
from /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7673:6: note: declared here
void cfg80211_ch_switch_started_notify(struct net_device dev,
^~~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: At top level:
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10258:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
^~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10258:25: error: initialization of ‘int ()(struct wiphy , struct wireless_dev , u64)’ {aka ‘int ()(struct wiphy , struct wireless_dev , long long unsigned int)’} from incompatible pointer type ‘void ()(struct wiphy , struct wireless_dev , u16, bool)’ {aka ‘void ()(struct wiphy , struct wireless_dev *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types]
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
^~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10258:25: note: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx_cancel_wait’)
cc1: some warnings being treated as errors
make[2]: [scripts/Makefile.build:315: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: [Makefile:1571: module/var/lib/dkms/rtl88x2bu/git/build] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-338.el8.x86_64'
make: *** [Makefile:2378: modules] Error 2
When I run "dkms autoinstall", I get "(bad exit status: 2)" error. Error! Bad return status for module build on kernel: 4.18.0-338.el8.x86_64 (x86_64)
Below is the make.log output. Please advise the root cause and how can I fix the issue. Thanks.
cat /var/lib/dkms/rtl88x2bu/make.log
DKMS make.log for rtl88x2bu-git for kernel 4.18.0-338.el8.x86_64 (x86_64) Wed Sep 15 00:43:00 HKT 2021 make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-338.el8.x86_64/build M=/var/lib/dkms/rtl88x2bu/git/build modules make[1]: Entering directory '/usr/src/kernels/4.18.0-338.el8.x86_64' CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_cmd.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_security.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_debug.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_io.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_query.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_set.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ieee80211.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mi.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_wlan_util.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_vht.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_pwrctrl.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rf.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_chplan.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_recv.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ap.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_pathtbl.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_hwmp.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_xmit.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_p2p.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rson.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_tdls.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_br_ext.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_iol.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sreset.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex_wifionly.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_beamforming.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_odm.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_fsm.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_util.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/efuse/rtw_efuse.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/osdep_service.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_intf.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_ops_linux.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_linux.o /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:1715:22: error: initialization of ‘u16 ()(struct net_device , struct sk_buff , struct net_device , u16 ()(struct net_device , struct sk_buff , struct net_device ))’ {aka ‘short unsigned int ()(struct net_device , struct sk_buff , struct net_device , short unsigned int ()(struct net_device , struct sk_buff , struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device , struct sk_buff , void , u16 ()(struct net_device , struct sk_buff , struct net_device ))’ {aka ‘short unsigned int ()(struct net_device , struct sk_buff , void , short unsigned int ()(struct net_device , struct sk_buff , struct net_device ))’} [-Werror=incompatible-pointer-types] .ndo_select_queue = rtw_select_queue, ^
~~~/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.c:1715:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/xmit_linux.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/mlme_linux.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/recv_linux.o CC [M] /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.o /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_linux.c:12353:30: warning: ‘rtw_get_wireless_stats’ defined but not used [-Wunused-function] static struct iw_statistics rtw_get_wireless_stats(struct net_device dev) ^~~~~~ cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:315: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.o] Error 1 make[2]: Waiting for unfinished jobs.... /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:448:3: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’ cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0); ^~~~~~~~~ In file included from /var/lib/dkms/rtl88x2bu/git/build/include/osdep_service_linux.h:98, from /var/lib/dkms/rtl88x2bu/git/build/include/osdep_service.h:53, from /var/lib/dkms/rtl88x2bu/git/build/include/drv_types.h:27, from /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:17: ./include/net/cfg80211.h:7673:6: note: declared here void cfg80211_ch_switch_started_notify(struct net_device dev, ^~~~~~~~~ /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: At top level: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10258:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’ .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register, ^~~~~~~ /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10258:25: error: initialization of ‘int ()(struct wiphy , struct wireless_dev , u64)’ {aka ‘int ()(struct wiphy , struct wireless_dev , long long unsigned int)’} from incompatible pointer type ‘void ()(struct wiphy , struct wireless_dev , u16, bool)’ {aka ‘void ()(struct wiphy , struct wireless_dev *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types] .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register, ^~~~~~~~ /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10258:25: note: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx_cancel_wait’) cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:315: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.o] Error 1 make[1]: [Makefile:1571: module/var/lib/dkms/rtl88x2bu/git/build] Error 2 make[1]: Leaving directory '/usr/src/kernels/4.18.0-338.el8.x86_64' make: *** [Makefile:2378: modules] Error 2