RTL8192EU
RTL8192EU copied to clipboard
Make error for kernel 5.8.0 - redefinition of ‘struct sha256_state’
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-1-amd64/build M=/home/ipaleka/opt/repos/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-1-amd64'
CC [M] /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.o
In file included from /home/ipaleka/opt/repos/RTL8192EU/include/drv_types.h:78,
from /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.c:17:
/home/ipaleka/opt/repos/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.8.0-1-common/include/linux/filter.h:23,
from /usr/src/linux-headers-5.8.0-1-common/include/net/sock.h:59,
from /usr/src/linux-headers-5.8.0-1-common/include/linux/tcp.h:19,
from /usr/src/linux-headers-5.8.0-1-common/include/linux/ipv6.h:88,
from /usr/src/linux-headers-5.8.0-1-common/include/net/addrconf.h:50,
from /home/ipaleka/opt/repos/RTL8192EU/include/osdep_service_linux.h:48,
from /home/ipaleka/opt/repos/RTL8192EU/include/osdep_service.h:47,
from /home/ipaleka/opt/repos/RTL8192EU/include/drv_types.h:27,
from /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.8.0-1-common/include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-5.8.0-1-common/scripts/Makefile.build:286: /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:1768: /home/ipaleka/opt/repos/RTL8192EU] Error 2
make[1]: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-1-amd64'
make: *** [Makefile:1829: modules] Error 2
Please try to build my fork: https://github.com/drygdryg/RTL8192EU
Thank you so much, @drygdryg! Works for me on Fedora 33:
Linux 5.10.22-200.fc33.x86_64 #1 SMP Tue Mar 9 22:05:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
(linking #25)