Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error for kernel 5.8.0 - redefinition of ‘struct sha256_state’ #20

Open
ipaleka opened this issue Sep 14, 2020 · 2 comments
Open

Comments

@ipaleka
Copy link

ipaleka commented Sep 14, 2020

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

Related

@drygdryg
Copy link

drygdryg commented Feb 9, 2021

Please try to build my fork: https://github.com/drygdryg/RTL8192EU

@dAnjou
Copy link

dAnjou commented Mar 14, 2021

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)

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

No branches or pull requests

3 participants