tomaspinho / rtl8821ce

Other
1.58k stars 412 forks source link

Fix build for >= 5.18 #275

Closed tomaspinho closed 2 years ago

witchent commented 2 years ago

The fix does not seem to work for me. The last few lines of my error are

ld: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_mp.o: in function `is_zero_mac_addr':
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/include/ieee80211.h:1599: multiple definition of `is_zero_mac_addr'; /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_cmd.o:/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/include/ieee80211.h:1599: first defined here
make[2]: *** [scripts/Makefile.build:308: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/8821ce.prelink.o] Error 1
make[1]: *** [Makefile:1834: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.18.1-arch1-1/build'
make: *** [Makefile:2244: modules] Error 2

Please tell me if you need a full log.

zalokin commented 2 years ago

No working for my with linux-headers-5.18.1.arch-1 :(

core/linux-headers 5.18.1.arch1-1 [installed] Headers and scripts for building modules for the Linux kernel

--- updated ---

https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.18.1/

the debs folder it's created yesterday for header 5.18.1, it only remains to wait and change URL in dockerfile.

tomaspinho commented 2 years ago

@witchent pushed a fix for those multiple definitions

@zalokin seems like the mainline kernel is failing to build for them as no .debs are available yet

witchent commented 2 years ago

That did the trick

tomaspinho commented 2 years ago

Merging