页次: 1
按照https://github.com/brektrou/rtl8821CU的文档安装,但是到make的时候就会出错出错信息如下:
DKMS make.log for rtl8821cu-5.4.175a41e0cd for kernel 5.6.12-arch1-1 (x86_64)
Fri 15 May 2020 12:25:17 AM CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.6.12-arch1-1/build M=/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build modules
make[1]: Entering directory '/usr/lib/modules/5.6.12-arch1-1/build'
CC [M] /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_io.o
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:30,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_debug.c:17:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:30,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_io.c:47:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:30,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_security.c:17:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service_linux.h:83,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service.h:50,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:27,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_debug.c:17:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
1460 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service_linux.h:83,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service.h:50,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:27,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_io.c:47:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
1460 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service_linux.h:83,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service.h:50,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:27,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_security.c:17:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
1460 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:30,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_cmd.c:17:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service_linux.h:83,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_service.h:50,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:27,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_cmd.c:17:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
1460 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_intf.h:131,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:105,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_io.c:47:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:372:94: error: missing binary operator before token "("
372 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_intf.h:131,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:105,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_cmd.c:17:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:372:94: error: missing binary operator before token "("
372 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:394:146: error: missing binary operator before token "("
394 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:394:146: error: missing binary operator before token "("
394 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_intf.h:131,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:105,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_security.c:17:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:372:94: error: missing binary operator before token "("
372 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:394:146: error: missing binary operator before token "("
394 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
In file included from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/osdep_intf.h:131,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/drv_types.h:105,
from /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_debug.c:17:
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:372:94: error: missing binary operator before token "("
372 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
/var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/include/../os_dep/linux/ioctl_cfg80211.h:394:146: error: missing binary operator before token "("
394 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
| ^
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_cmd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_security.o] Error 1
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_io.o] Error 1
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build/core/rtw_debug.o] Error 1
make[1]: *** [Makefile:1684: /var/lib/dkms/rtl8821cu/5.4.175a41e0cd/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.6.12-arch1-1/build'
make: *** [Makefile:2213: modules] Error 2
我查了好久都没有找到解决方案,希望大神们帮忙看看,谢谢啦
离线
linux-firmware 包里可能有现成的,就是有点大。
离线
页次: 1