rtl8192eu-arm-linux-driver icon indicating copy to clipboard operation
rtl8192eu-arm-linux-driver copied to clipboard

error when compiling -> redefinition of ‘struct sha256_state

Open ole1986 opened this issue 3 years ago • 5 comments

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 {

ole1986 avatar Mar 28 '21 08:03 ole1986

Same problem Did you found any solution?

Luismm2311 avatar Apr 06 '21 23:04 Luismm2311

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

thibaut-lemarchand avatar Apr 26 '21 19:04 thibaut-lemarchand

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

lord2y avatar Apr 26 '21 20:04 lord2y

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

EDIT: Managed to install it with the repo PTCybersecurite mentioned

paulo-serrao avatar Apr 30 '21 14:04 paulo-serrao

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

wthie avatar Aug 06 '21 00:08 wthie