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

Error compiling - Raspberry pi OS #4

Open
Murturtle opened this issue Nov 14, 2023 · 2 comments
Open

Error compiling - Raspberry pi OS #4

Murturtle opened this issue Nov 14, 2023 · 2 comments

Comments

@Murturtle
Copy link

Murturtle commented Nov 14, 2023

I have compiled this multiple times on different computers and raspberry pis. It seems that on the latest raspberry pi os it breaks. I believe that @Aidne46 was having the same issue on raspberry pi os.

Any help or patches would be great!

Command that I ran
./install.sh -i

Log

#make -C /lib/modules/6.1.0-rpi6-rpi-v8/build M=/home/pi/rtl8821au clean
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/6.1.0-rpi6-rpi-v8/build M=/home/pi/rtl8821au  modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-rpi6-rpi-v8'
  CC [M]  /home/pi/rtl8821au/core/rtw_cmd.o
  CC [M]  /home/pi/rtl8821au/core/rtw_security.o
  CC [M]  /home/pi/rtl8821au/core/rtw_debug.o
  CC [M]  /home/pi/rtl8821au/core/rtw_io.o
  CC [M]  /home/pi/rtl8821au/core/rtw_ioctl_query.o
  CC [M]  /home/pi/rtl8821au/core/rtw_ioctl_set.o
  CC [M]  /home/pi/rtl8821au/core/rtw_ieee80211.o
  CC [M]  /home/pi/rtl8821au/core/rtw_mlme.o
  CC [M]  /home/pi/rtl8821au/core/rtw_mlme_ext.o
  CC [M]  /home/pi/rtl8821au/core/rtw_mi.o
  CC [M]  /home/pi/rtl8821au/core/rtw_wlan_util.o
  CC [M]  /home/pi/rtl8821au/core/rtw_vht.o
  CC [M]  /home/pi/rtl8821au/core/rtw_pwrctrl.o
  CC [M]  /home/pi/rtl8821au/core/rtw_rf.o
  CC [M]  /home/pi/rtl8821au/core/rtw_chplan.o
  CC [M]  /home/pi/rtl8821au/core/monitor/rtw_radiotap.o
  CC [M]  /home/pi/rtl8821au/core/rtw_recv.o
  CC [M]  /home/pi/rtl8821au/core/rtw_sta_mgt.o
  CC [M]  /home/pi/rtl8821au/core/rtw_ap.o
  CC [M]  /home/pi/rtl8821au/core/wds/rtw_wds.o
  CC [M]  /home/pi/rtl8821au/core/mesh/rtw_mesh.o
  CC [M]  /home/pi/rtl8821au/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /home/pi/rtl8821au/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /home/pi/rtl8821au/core/rtw_xmit.o
  CC [M]  /home/pi/rtl8821au/core/rtw_p2p.o
  CC [M]  /home/pi/rtl8821au/core/rtw_rson.o
  CC [M]  /home/pi/rtl8821au/core/rtw_tdls.o
  CC [M]  /home/pi/rtl8821au/core/rtw_br_ext.o
In function ‘__nat25_add_pppoe_tag’,
    inlined from ‘nat25_db_handle’ at /home/pi/rtl8821au/core/rtw_br_ext.c:1172:11:
/home/pi/rtl8821au/core/rtw_br_ext.c:120:9: warning: ‘memcpy’ reading between 2052 and 9220 bytes from a region of size 40 [-Wstringop-overread]
  120 |         memcpy((unsigned char *)ph->tag, tag, data_len);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/rtl8821au/core/rtw_br_ext.c: In function ‘nat25_db_handle’:
/home/pi/rtl8821au/core/rtw_br_ext.c:1141:63: note: source object ‘tag_buf’ of size 40
 1141 |                                                 unsigned char tag_buf[40];
      |                                                               ^~~~~~~
  CC [M]  /home/pi/rtl8821au/core/rtw_iol.o
  CC [M]  /home/pi/rtl8821au/core/rtw_sreset.o
  CC [M]  /home/pi/rtl8821au/core/rtw_btcoex_wifionly.o
  CC [M]  /home/pi/rtl8821au/core/rtw_btcoex.o
  CC [M]  /home/pi/rtl8821au/core/rtw_beamforming.o
  CC [M]  /home/pi/rtl8821au/core/rtw_odm.o
  CC [M]  /home/pi/rtl8821au/core/rtw_rm.o
  CC [M]  /home/pi/rtl8821au/core/rtw_rm_fsm.o
  CC [M]  /home/pi/rtl8821au/core/rtw_ft.o
  CC [M]  /home/pi/rtl8821au/core/rtw_wnm.o
  CC [M]  /home/pi/rtl8821au/core/rtw_mbo.o
  CC [M]  /home/pi/rtl8821au/core/rtw_rm_util.o
  CC [M]  /home/pi/rtl8821au/core/efuse/rtw_efuse.o
  CC [M]  /home/pi/rtl8821au/core/rtw_roch.o
  CC [M]  /home/pi/rtl8821au/core/crypto/aes-internal.o
  CC [M]  /home/pi/rtl8821au/core/crypto/aes-internal-enc.o
  CC [M]  /home/pi/rtl8821au/core/crypto/aes-gcm.o
  CC [M]  /home/pi/rtl8821au/core/crypto/aes-ccm.o
  CC [M]  /home/pi/rtl8821au/core/crypto/aes-omac1.o
  CC [M]  /home/pi/rtl8821au/core/crypto/ccmp.o
  CC [M]  /home/pi/rtl8821au/core/crypto/gcmp.o
  CC [M]  /home/pi/rtl8821au/core/crypto/aes-siv.o
  CC [M]  /home/pi/rtl8821au/core/crypto/aes-ctr.o
  CC [M]  /home/pi/rtl8821au/core/crypto/sha256-internal.o
  CC [M]  /home/pi/rtl8821au/core/crypto/sha256.o
  CC [M]  /home/pi/rtl8821au/core/crypto/sha256-prf.o
  CC [M]  /home/pi/rtl8821au/core/crypto/rtw_crypto_wrap.o
  CC [M]  /home/pi/rtl8821au/core/rtw_swcrypto.o
  CC [M]  /home/pi/rtl8821au/os_dep/osdep_service.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/os_intfs.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/usb_intf.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/ioctl_linux.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/xmit_linux.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/mlme_linux.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/recv_linux.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /home/pi/rtl8821au/os_dep/linux/wifi_regd.o
/home/pi/rtl8821au/os_dep/linux/wifi_regd.c: In function ‘rtw_regd_init’:
/home/pi/rtl8821au/os_dep/linux/wifi_regd.c:409:36: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in this function)
  409 |         wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/rtl8821au/os_dep/linux/wifi_regd.c:409:36: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/usr/src/linux-headers-6.1.0-rpi6-common-rpi/scripts/Makefile.build:255: /home/pi/rtl8821au/os_dep/linux/wifi_regd.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-rpi6-common-rpi/Makefile:2039: /home/pi/rtl8821au] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-rpi6-rpi-v8'
make: *** [Makefile:2479: modules] Error 2
Install error: 2```
@Elfara77
Copy link

Same on new kali linux

@GolovkoStepan
Copy link

GolovkoStepan commented May 13, 2024

wifi_regd.c

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && defined(REGULATORY_IGNORE_STALE_KICKOFF)
      wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
#endif

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

No branches or pull requests

3 participants