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

Build failed in Linux kernel 5.8 #72

Closed
SuzukiHonoka opened this issue Aug 6, 2020 · 7 comments
Closed

Build failed in Linux kernel 5.8 #72

SuzukiHonoka opened this issue Aug 6, 2020 · 7 comments

Comments

@SuzukiHonoka
Copy link

SuzukiHonoka commented Aug 6, 2020

logs

In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_io.c:47:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_io.c:47:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_security.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_security.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_ieee80211.c:20:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_ieee80211.c:20:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_debug.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_debug.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_ioctl_query.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_ioctl_query.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_ioctl_set.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_ioctl_set.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_cmd.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_mi.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_mi.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_mlme_ext.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_mlme_ext.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_pwrctrl.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_pwrctrl.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_rf.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_rf.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_wlan_util.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_wlan_util.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/include/../hal/phydm/phydm_types.h:215,
                 from /mnt/ramdisk/rtl88x2bu/include/../hal/phydm/phydm_precomp.h:29,
                 from /mnt/ramdisk/rtl88x2bu/include/hal_data.h:20,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_mlme.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/include/../hal/phydm/phydm_types.h:215,
                 from /mnt/ramdisk/rtl88x2bu/include/../hal/phydm/phydm_precomp.h:29,
                 from /mnt/ramdisk/rtl88x2bu/include/hal_data.h:20,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_mlme.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_vht.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_vht.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_recv.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_recv.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:79:0,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_chplan.c:17:
/mnt/ramdisk/rtl88x2bu/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
 struct sha256_state {
        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23:0,
                 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 /mnt/ramdisk/rtl88x2bu/include/osdep_service_linux.h:48,
                 from /mnt/ramdisk/rtl88x2bu/include/osdep_service.h:50,
                 from /mnt/ramdisk/rtl88x2bu/include/drv_types.h:27,
                 from /mnt/ramdisk/rtl88x2bu/core/rtw_chplan.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
 struct sha256_state {
        ^~~~~~~~~~~~

plz take a look, thx~

@SuzukiHonoka
Copy link
Author

#58 This patch works for me.

@TheJags
Copy link

TheJags commented Aug 6, 2020

@SuzukiHonoka

Could you please tell me how to apply this patch / pull request #58 https://github.com/cilynx/rtl88x2bu/pull/58 to the master branch (that I have downloaded already through "git clone"). I'm using Ubuntu MATE 20.04

By the way, I've reported the same issue too: https://github.com/cilynx/rtl88x2bu/issues/59

@SuzukiHonoka
Copy link
Author

@TheJags
Hi,
You can simply add a surrfix to the pull request URL to get the entire patch file.

wget https://github.com/cilynx/rtl88x2bu/pull/58.patch
git apply 58.patch

@TheJags
Copy link

TheJags commented Aug 7, 2020

@SuzukiHonoka

Thanks alot for the reply. Is this how it should be:

git clone https://github.com/cilynx/rtl88x2bu.git
cd rtl88x2bu
wget https://github.com/cilynx/rtl88x2bu/pull/58.patch
git apply 58.patch

I just like to make sure as there was no message after, git apply 58.patch (prompt just went to the next line).

@SuzukiHonoka
Copy link
Author

Yep, that's right~

@TheJags
Copy link

TheJags commented Aug 7, 2020

Yep, that's right~
Thank you :)

@StaticallyTypedRice
Copy link
Contributor

StaticallyTypedRice commented Sep 1, 2020

I'm having an issue with kernel 5.8.4-200-fc32-x86_64 on Fedora 32 where the DKMS module (with patch 58 applied) installs but the Wi-Fi adapter is still not detected.

sudo dkms status outputs the following: rtl88x2bu, 5.6.1, 5.8.4-200-fc32.x86_64, x86_64: installed

Update: Apparently it works fine now that I've plugged the Wi-Fi adapter directly into the USB 2.0 ports back of the machine instead of the USB 3.0 card (my computer doesn't have native USB 3.0). And upon further testing, the USB 3.0 card suddenly doesn't work anymore. So I guess it wasn't a problem with the Wi-Fi driver after all.

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