aircrack-ng / rtl8188eus

RealTek RTL8188eus WiFi driver with monitor mode & frame injection support
925 stars 397 forks source link

make error #252

Open Kubbi1 opened 1 year ago

DuckSound0 commented 1 year ago

Make error on my side as well:

└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-kali7-amd64/build M=/home/kali/Downloads/rtl8188eus modules make[1]: Entering directory '/usr/src/linux-headers-6.1.0-kali7-amd64' CC [M] /home/kali/Downloads/rtl8188eus/os_dep/osdep_service.o /home/kali/Downloads/rtl8188eus/os_dep/osdep_service.c: In function ‘rtw_change_ifname’: /home/kali/Downloads/rtl8188eus/os_dep/osdep_service.c:2454:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2454 | _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN); | ~^~~~ /home/kali/Downloads/rtl8188eus/os_dep/osdep_service.c:899:24: note: expected ‘void ’ but argument is of type ‘const unsigned char ’ 899 | void _rtw_memcpy(void dst, const void src, u32 sz) | ~~^~~ /home/kali/Downloads/rtl8188eus/os_dep/osdep_service.c: In function ‘rtw_random32’: /home/kali/Downloads/rtl8188eus/os_dep/osdep_service.c:2578:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration] 2578 | return prandom_u32(); | ^~~ | prandom_u32_max At top level: cc1: note: unrecognized command-line option ‘-Wno-sometimes-uninitialized’ may have been intended to silence earlier diagnostics cc1: some warnings being treated as errors make[2]: [/usr/src/linux-headers-6.1.0-kali7-common/scripts/Makefile.build:255: /home/kali/Downloads/rtl8188eus/os_dep/osdep_service.o] Error 1 make[1]: [/usr/src/linux-headers-6.1.0-kali7-common/Makefile:2037: /home/kali/Downloads/rtl8188eus] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-kali7-amd64' make: *** [Makefile:2065: modules] Error 2

zhenhehehehe commented 1 year ago

same problem here

gglluukk commented 1 year ago

try this for newer kernel (still in pull requests, not merged yet): https://github.com/gglluukk/rtl8188eus

DuckSound0 commented 1 year ago

try this for newer kernel (still in pull requests, not merged yet): https://github.com/gglluukk/rtl8188eus

Gglluukk's link works as a charm, thank you!