whitebatman2 / rtl8821CU

Realtek 802.11ac USB WLAN driver
GNU General Public License v2.0
310 stars 177 forks source link

Compile failed on kali 5.2.0-kali3-amd64 #37

Open Archerkong opened 4 years ago

Archerkong commented 4 years ago

make /bin/sh: 1: bc: not found make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.2.0-kali3-amd64/build M=/opt/rtl8821CU modules make[1]: 进入目录“/usr/src/linux-headers-5.2.0-kali3-amd64” /bin/sh: 1: bc: not found CC [M] /opt/rtl8821CU/core/rtw_debug.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_debug.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_debug.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

/opt/rtl8821CU/core/rtw_debug.c: In function ‘dump_drv_version’: /opt/rtl8821CU/core/rtw_debug.c:50:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time] RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME); ^ /opt/rtl8821CU/core/rtw_debug.c:50:62: error: macro "TIME" might prevent reproducible builds [-Werror=date-time] cc1: some warnings being treated as errors make[4]: [/usr/src/linux-headers-5.2.0-kali3-common/scripts/Makefile.build:284:/opt/rtl8821CU/core/rtw_debug.o] 错误 1 make[3]: [/usr/src/linux-headers-5.2.0-kali3-common/Makefile:1610:module/opt/rtl8821CU] 错误 2 make[2]: [Makefile:179:sub-make] 错误 2 make[1]: [Makefile:8:all] 错误 2 make[1]: 离开目录“/usr/src/linux-headers-5.2.0-kali3-amd64” make: *** [Makefile:1923:modules] 错误 2

Archerkong commented 4 years ago

that problem i had solve ,but i fine another problem make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.2.0-kali3-amd64/build M=/opt/rtl8821CU modules make[1]: 进入目录“/usr/src/linux-headers-5.2.0-kali3-amd64” CC [M] /opt/rtl8821CU/core/rtw_cmd.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_cmd.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_cmd.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_security.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_security.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_security.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_debug.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_debug.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_debug.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_io.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_io.c:52: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_io.c:52: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_ioctl_query.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_ioctl_query.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_ioctl_query.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_ioctl_set.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_ioctl_set.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_ioctl_set.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_ieee80211.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_ieee80211.c:25: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_ieee80211.c:25: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_mlme.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/include/../hal/phydm/phydm_types.h:191, from /opt/rtl8821CU/include/../hal/phydm/phydm_precomp.h:24, from /opt/rtl8821CU/include/hal_data.h:25, from /opt/rtl8821CU/core/rtw_mlme.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/include/../hal/phydm/phydm_types.h:191, from /opt/rtl8821CU/include/../hal/phydm/phydm_precomp.h:24, from /opt/rtl8821CU/include/hal_data.h:25, from /opt/rtl8821CU/core/rtw_mlme.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_mlme_ext.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_mlme_ext.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_mlme_ext.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_mi.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_mi.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_mi.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_wlan_util.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_wlan_util.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_wlan_util.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_vht.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_vht.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_vht.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_pwrctrl.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_pwrctrl.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_pwrctrl.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_rf.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_rf.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_rf.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_recv.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_recv.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_recv.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_sta_mgt.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_sta_mgt.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_sta_mgt.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_ap.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_ap.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_ap.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_xmit.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_xmit.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_xmit.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_p2p.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_p2p.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_p2p.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_tdls.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_tdls.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_tdls.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_br_ext.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_br_ext.c:32: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_br_ext.c:32: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_iol.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_iol.c:21: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_iol.c:21: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_sreset.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_sreset.c:21: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_sreset.c:21: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_btcoex_wifionly.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_btcoex_wifionly.c:20: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_btcoex_wifionly.c:20: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_btcoex.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_btcoex.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_btcoex.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_beamforming.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/rtw_beamforming.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/rtw_beamforming.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/rtw_odm.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/include/rtw_odm.h:23, from /opt/rtl8821CU/core/rtw_odm.c:21: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/include/rtw_odm.h:23, from /opt/rtl8821CU/core/rtw_odm.c:21: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/core/efuse/rtw_efuse.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/core/efuse/rtw_efuse.c:22: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/core/efuse/rtw_efuse.c:22: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /opt/rtl8821CU/os_dep/osdep_service.o In file included from /opt/rtl8821CU/include/drv_types.h:35, from /opt/rtl8821CU/os_dep/osdep_service.c:24: /opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined

define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/os_dep/osdep_service.c:24: /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition

define IEEE80211_MAX_AMPDU_BUF 0x100

/opt/rtl8821CU/os_dep/osdep_service.c: In function ‘isFileReadable’: /opt/rtl8821CU/os_dep/osdep_service.c:2098:10: error: implicit declaration of function ‘get_ds’; did you mean ‘get_da’? [-Werror=implicit-function-declaration] set_fs(get_ds()); ^~ get_da /opt/rtl8821CU/os_dep/osdep_service.c:2098:10: error: incompatible type for argument 1 of ‘set_fs’ set_fs(get_ds()); ^~~~ In file included from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/uaccess.h:11, from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/crypto.h:21, from /usr/src/linux-headers-5.2.0-kali3-common/include/crypto/hash.h:11, from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/uio.h:10, from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/socket.h:8, from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/compat.h:15, from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ethtool.h:17, from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/netdevice.h:37, from /opt/rtl8821CU/include/osdep_service_linux.h:35, from /opt/rtl8821CU/include/osdep_service.h:47, from /opt/rtl8821CU/include/drv_types.h:32, from /opt/rtl8821CU/os_dep/osdep_service.c:24: /usr/src/linux-headers-5.2.0-kali3-common/arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct ’} but argument is of type ‘int’ static inline void set_fs(mm_segment_t fs)


/opt/rtl8821CU/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/opt/rtl8821CU/os_dep/osdep_service.c:2136:11: error: incompatible type for argument 1 of ‘set_fs’
    set_fs(get_ds());
           ^~~~~~~~
In file included from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/uaccess.h:11,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/crypto.h:21,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/crypto/hash.h:11,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/uio.h:10,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/socket.h:8,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/compat.h:15,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ethtool.h:17,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/netdevice.h:37,
                 from /opt/rtl8821CU/include/osdep_service_linux.h:35,
                 from /opt/rtl8821CU/include/osdep_service.h:47,
                 from /opt/rtl8821CU/include/drv_types.h:32,
                 from /opt/rtl8821CU/os_dep/osdep_service.c:24:
/usr/src/linux-headers-5.2.0-kali3-common/arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’
 static inline void set_fs(mm_segment_t fs)
                           ~~~~~~~~~~~~~^~
/opt/rtl8821CU/os_dep/osdep_service.c: In function ‘storeToFile’:
/opt/rtl8821CU/os_dep/osdep_service.c:2171:11: error: incompatible type for argument 1 of ‘set_fs’
    set_fs(get_ds());
           ^~~~~~~~
In file included from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/uaccess.h:11,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/crypto.h:21,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/crypto/hash.h:11,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/uio.h:10,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/socket.h:8,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/compat.h:15,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/ethtool.h:17,
                 from /usr/src/linux-headers-5.2.0-kali3-common/include/linux/netdevice.h:37,
                 from /opt/rtl8821CU/include/osdep_service_linux.h:35,
                 from /opt/rtl8821CU/include/osdep_service.h:47,
                 from /opt/rtl8821CU/include/drv_types.h:32,
                 from /opt/rtl8821CU/os_dep/osdep_service.c:24:
/usr/src/linux-headers-5.2.0-kali3-common/arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’
 static inline void set_fs(mm_segment_t fs)
                           ~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-5.2.0-kali3-common/scripts/Makefile.build:284:/opt/rtl8821CU/os_dep/osdep_service.o] 错误 1
make[3]: *** [/usr/src/linux-headers-5.2.0-kali3-common/Makefile:1610:_module_/opt/rtl8821CU] 错误 2
make[2]: *** [Makefile:179:sub-make] 错误 2
make[1]: *** [Makefile:8:all] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.2.0-kali3-amd64”
make: *** [Makefile:1923:modules] 错误 2
stockshuang commented 4 years ago

Archerkong have you fixed the other problem yet?

Archerkong commented 4 years ago

@stockshuang yeah,it can work normally,and i wrote a note,if you need i can send you

Milchdealer commented 3 years ago

I need this too