aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.57k stars 783 forks source link

Impossible to compile due to error on rtl8812au/Module.symvers #1192

Open gizmochefmogwai opened 2 months ago

gizmochefmogwai commented 2 months ago

System : Raspberry 5, with Kali, Kernels 6.1.64-v8+ to 6.6.45-v8+

When make, getting the following error :

  CC [M]  /home/kali/rtl8812au/hal/phydm/halrf/rtl8814a/halrf_iqk_8814a.o
  CC [M]  /home/kali/rtl8812au/hal/phydm/rtl8814a/phydm_regconfig8814a.o
  CC [M]  /home/kali/rtl8812au/hal/phydm/halrf/rtl8814a/halrf_8814a_ce.o
  CC [M]  /home/kali/rtl8812au/hal/phydm/rtl8814a/phydm_rtl8814a.o
  CC [M]  /home/kali/rtl8812au/hal/phydm/txbf/haltxbf8814a.o
  CC [M]  /home/kali/rtl8812au/platform/platform_ops.o
  CC [M]  /home/kali/rtl8812au/core/rtw_mp.o
  LD [M]  /home/kali/rtl8812au/88XXau.o
  MODPOST /home/kali/rtl8812au/Module.symvers
WARNING: Module.symvers is missing.
         Modules may not have dependencies or modversions.
         You may get many unresolved symbol warnings.
WARNING: modpost: "skb_pull" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "rtnl_is_locked" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "usb_free_coherent" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "__arch_copy_to_user" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "cancel_work_sync" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "memcmp" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "cfg80211_sinfo_alloc_tid_stats" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "vfree" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "wiphy_register" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: "cfg80211_remain_on_channel_expired" [/home/kali/rtl8812au/88XXau.ko] undefined!
WARNING: modpost: suppressed 182 unresolved symbol warnings because there were too many)
  CC [M]  /home/kali/rtl8812au/88XXau.mod.o
  LD [M]  /home/kali/rtl8812au/88XXau.ko
make[1]: Leaving directory '/usr/src/kernel'
---------------------------------------------------------------------------
Visit https://github.com/aircrack-ng/rtl8812au for support/reporting issues
or check for newer versions (branches) of these drivers.
---------------------------------------------------------------------------

Commands were :

apt-get install bc mokutil build-essential libelf-dev

# Following replace apt-get install linux-headers-* following this documentation : https://www.kali.org/docs/arm/raspberry-pi-5/
cd /usr/src/kernel
sudo git clean -fdx && sudo make bcm2711_defconfig && sudo make modules_prepare

sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile
export ARCH=arm64
sed -i 's/^MAKE="/MAKE="ARCH=arm64\ /' dkms.conf

Any idea what happens ?

MaxJoseph4 commented 1 month ago

Hi, could you find a solution? I have the same adapter and I can't compile the drivers.