fastoe / RTL8812BU_for_Raspbian

RTL8812BU Driver for Raspbian
69 stars 19 forks source link

error: redefinition of ‘struct sha256_state’ #11

Closed someSven closed 2 years ago

someSven commented 2 years ago

$ make make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.63-v7+/build M=/media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian modules make[1]: Entering directory '/usr/src/linux-headers-5.10.63-v7+' CC [M] /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/core/rtw_cmd.o In file included from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/drv_conf.h:17, from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/drv_types.h:25, from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/core/rtw_cmd.c:17: /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined

define CONFIG_RTW_SW_LED

: note: this is the location of the previous definition In file included from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/drv_types.h:79, from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/core/rtw_cmd.c:17: /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’ struct sha256_state { ^~~~~~~~~~~~ In file included from ./include/linux/filter.h:24, from ./include/net/sock.h:59, from ./include/linux/tcp.h:19, from ./include/linux/ipv6.h:87, from ./include/net/addrconf.h:50, from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/osdep_service_linux.h:48, from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/osdep_service.h:50, from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/include/drv_types.h:27, from /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/core/rtw_cmd.c:17: ./include/crypto/sha.h:84:8: note: originally defined here struct sha256_state { ^~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:280: /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1825: /media/pi/Seagate-6TB/Backups/Linux_Drivers/RTL8812BU_for_Raspbian] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.63-v7+' make: *** [Makefile:2290: modules] Error 2
someSven commented 2 years ago

Was already solve, but I overlooked it: https://github.com/fastoe/RTL8812BU_for_Raspbian/issues/9#issuecomment-903841750

For Raspberry Pi OS 5.10 kernel, please clone the v5.6.1 branch: sudo apt update sudo apt install -y bc git dkms build-essential raspberrypi-kernel-headers git clone -b v5.6.1 https://github.com/fastoe/RTL8812BU_for_Raspbian cd RTL8812BU_for_Raspbian make sudo make install sudo reboot