Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

error when compiling -> redefinition of ‘struct sha256_state #8

Open
ole1986 opened this issue Mar 28, 2021 · 5 comments
Open

error when compiling -> redefinition of ‘struct sha256_state #8

ole1986 opened this issue Mar 28, 2021 · 5 comments

Comments

@ole1986
Copy link

ole1986 commented Mar 28, 2021

I get an error when compiling using Linux raspberrypi 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux

/home/pi/rtl8192eu-arm-linux-driver/include/rtw_security.h:255: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:88,
                 from ./include/net/addrconf.h:50,
                 from /home/pi/rtl8192eu-arm-linux-driver/include/osdep_service_linux.h:48,
                 from /home/pi/rtl8192eu-arm-linux-driver/include/osdep_service.h:50,
                 from /home/pi/rtl8192eu-arm-linux-driver/include/drv_types.h:27,
                 from /home/pi/rtl8192eu-arm-linux-driver/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
@Luismm2311
Copy link

Same problem
Did you found any solution?

@thibaut-lemarchand
Copy link

Got the same issue.

Used the driver this one was forked from, making the simple modification in the read me :
https://github.com/Mange/rtl8192eu-linux-driver

@lord2y
Copy link
Owner

lord2y commented Apr 26, 2021

I acknowledge the problem. I'll try to arrange some time to fix the issue and create packages for the latest kernel(s)
Thanks for your patience

@paulo-serrao
Copy link

paulo-serrao commented Apr 30, 2021

same issue here, I decided to do a apt upgrade today :(

EDIT: Managed to install it with the repo PTCybersecurite mentioned

@wthie
Copy link

wthie commented Aug 6, 2021

Same here, stuck with a non working driver after updating RPi4 to the latest.
The BFBI approach of commenting out

//struct sha256_state {
//      u64 length;
//      u32 state[8], curlen;
//      u8 buf[64];
//};

leads to the stuff compiling up until

rtl8192eu-arm-linux-driver/os_dep/linux/ioctl_cfg80211.c:9906:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
  .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,

Maybe this subsequent error triggers something.
This is not a deep analysis, I just did the obvious according to if it's stuck force it, if it breaks it needed fixing anyway

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants