Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildfix for Linux 5.18 #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kelebek333
Copy link
Contributor

Buildfix for Linux 5.18

Buildfix for Linux 5.18
@birdofprey
Copy link

os:Debian Gnu/Linux
kernel:5.18.0-0.bpo.1-amd64 (x86_64)
error:
/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1533: multiple definition of is_multicast_mac_addr'; /var/lib/dkms/rtl882 1CU/5.4.1/build/core/rtw_cmd.o:/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1533: first defined here ld: /var/lib/dkms/rtl8821CU/5.4.1/build/hal/btc/halbtc8821c2ant.o: in function is_broadcast_mac_addr':
/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1538: multiple definition of is_broadcast_mac_addr'; /var/lib/dkms/rtl882 1CU/5.4.1/build/core/rtw_cmd.o:/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1538: first defined here ld: /var/lib/dkms/rtl8821CU/5.4.1/build/hal/btc/halbtc8821c2ant.o: in function is_zero_mac_addr':
/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1544: multiple definition of is_zero_mac_addr'; /var/lib/dkms/rtl8821CU/5 .4.1/build/core/rtw_cmd.o:/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1544: first defined here ld: /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_mp.o: in function is_multicast_mac_addr':
/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1533: multiple definition of is_multicast_mac_addr'; /var/lib/dkms/rtl882 1CU/5.4.1/build/core/rtw_cmd.o:/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1533: first defined here ld: /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_mp.o: in function is_broadcast_mac_addr':
/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1538: multiple definition of is_broadcast_mac_addr'; /var/lib/dkms/rtl882 1CU/5.4.1/build/core/rtw_cmd.o:/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1538: first defined here ld: /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_mp.o: in function is_zero_mac_addr':
/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1544: multiple definition of `is_zero_mac_addr'; /var/lib/dkms/rtl8821CU/5
.4.1/build/core/rtw_cmd.o:/var/lib/dkms/rtl8821CU/5.4.1/build/include/ieee80211.h:1544: first defined here
make[2]: *** [/usr/src/linux-headers-5.18.0-0.bpo.1-common/scripts/Makefile.build:489:/var/lib/dkms/rtl8821CU/5.4.1/build/8821cu.
o] 错误 1
make[1]: *** [/usr/src/linux-headers-5.18.0-0.bpo.1-common/Makefile:1858:/var/lib/dkms/rtl8821CU/5.4.1/build] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.18.0-0.bpo.1-amd64”
make: *** [Makefile:2217:modules] 错误 2

@MichaIng
Copy link

Works well, many thanks for the patch 👍.

@birdofprey
Copy link

https://github.com/kelebek333/rtl8821CU/tree/buildfix-518
谢谢自由开源带来的软件延续和演进。kernel5.18可以使用了

Copy link

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also fixes the problem #173 with Ubuntu 20.04.

tomoyafujita@~/DVT >uname -a
Linux tomoyafujita-HP-Compaq-Elite-8300-SFF 5.15.0-86-generic #96~20.04.1-Ubuntu SMP Thu Sep 21 13:23:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

thank you very much for the PR. hopefully this would be merged into mainline soon 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants