Skip to content

compilation error redefinition for struct sha256_state  #1

@tim-oe

Description

@tim-oe

pi 3b+ rev v1.3
Raspbian 10 (5.10.17-v7+)

make error:

In file included from /home/pi/usbwifi/rtl8821CU/include/drv_types.h:82,
from /home/pi/usbwifi/rtl8821CU/core/rtw_br_ext.c:32:
/home/pi/usbwifi/rtl8821CU/include/rtw_security.h:248: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/net/inet_sock.h:22,
from ./include/net/ip.h:28,
from /home/pi/usbwifi/rtl8821CU/core/rtw_br_ext.c:24:
./include/crypto/sha.h:84:8: note: originally defined here
struct sha256_state {
^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:279: /home/pi/usbwifi/rtl8821CU/core/rtw_br_ext.o] Error 1
make[1]: *** [Makefile:1804: /home/pi/usbwifi/rtl8821CU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.17-v7+'
make: *** [Makefile:1927: modules] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions