ZeeRooo / RTL8192EU

Linux driver for Realtek RTL8192EU.
MIT License
53 stars 30 forks source link

Error 2 Kali Linux 2021.1 Kernel 5.10 #26

Open scoobadiver opened 3 years ago

scoobadiver commented 3 years ago

when i type make, i get the following error:

┌──(root💀kali)-[~/RTL8192EU] └─# make 2 ⨯ make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali5-amd64/build M=/root/RTL8192EU modules make[1]: Entering directory '/usr/src/linux-headers-5.10.0-kali5-amd64' CC [M] /root/RTL8192EU/core/rtw_cmd.o In file included from /root/RTL8192EU/include/drv_types.h:78, from /root/RTL8192EU/core/rtw_cmd.c:17: /root/RTL8192EU/include/rtw_security.h:243:8: error: redefinition of ‘struct sha256_state’ 243 | struct sha256_state { | ^~~~~~~~~~~~ In file included from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/filter.h:24, from /usr/src/linux-headers-5.10.0-kali5-common/include/net/sock.h:59, from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/tcp.h:19, from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/ipv6.h:87, from /usr/src/linux-headers-5.10.0-kali5-common/include/net/addrconf.h:50, from /root/RTL8192EU/include/osdep_service_linux.h:48, from /root/RTL8192EU/include/osdep_service.h:47, from /root/RTL8192EU/include/drv_types.h:27, from /root/RTL8192EU/core/rtw_cmd.c:17: /usr/src/linux-headers-5.10.0-kali5-common/include/crypto/sha.h:84:8: note: originally defined here 84 | struct sha256_state { | ^~~~~~~~~~~~ make[3]: *** [/usr/src/linux-headers-5.10.0-kali5-common/scripts/Makefile.build:284: /root/RTL8192EU/core/rtw_cmd.o] Error 1 make[2]: *** [/usr/src/linux-headers-5.10.0-kali5-common/Makefile:1819: /root/RTL8192EU] Error 2 make[1]: *** [/usr/src/linux-headers-5.10.0-kali5-common/Makefile:185: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-kali5-amd64' make: *** [Makefile:1829: modules] Error 2

airwawekz commented 3 years ago

Same error at me. Did you solve it?

hoseinnikkhah commented 2 years ago

Same error at me. Did you solve it?

I got the same issue, I will try it on a lower kernel version, hope that fix the issue