Closed kkleinw closed 3 years ago
What is the device model, PC or Raspberry Pi?
It's the x86_64 kernel, I'm on PC. This issue should not depend on the specific operating system, however note that I am on an Arch-based Distro.
@kkleinw having the same issue, have you found a solution?
Same issue here.
Here's the log:
DKMS make.log for rtl88x2bu-5.6.1 for kernel 5.8.0-43-generic (x86_64)
Wed 10 Feb 2021 11:56:33 AM MST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-43-generic/build M=/var/lib/dkms/rtl88x2bu/5.6.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-43-generic'
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_conf.h:17,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:25,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_cmd.c:17:
/usr/src/rtl88x2bu-5.6.1/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_conf.h:17,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:25,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_security.c:17:
/usr/src/rtl88x2bu-5.6.1/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_conf.h:17,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:25,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:17:
/usr/src/rtl88x2bu-5.6.1/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_conf.h:17,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:25,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_io.c:47:
/usr/src/rtl88x2bu-5.6.1/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_security.c:17:
/usr/src/rtl88x2bu-5.6.1/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
257 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_security.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_cmd.c:17:
/usr/src/rtl88x2bu-5.6.1/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
257 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:17:
/usr/src/rtl88x2bu-5.6.1/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
257 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_io.c:47:
/usr/src/rtl88x2bu-5.6.1/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
257 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_io.c:47:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o] Error 1
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o] Error 1
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o] Error 1
make[1]: *** [Makefile:1780: /var/lib/dkms/rtl88x2bu/5.6.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-43-generic'
make: *** [Makefile:2288: modules] Error 2
Aha, looks like this version of the driver has been deprecated for more recent kernels. Check out: https://github.com/cilynx/rtl88x2bu
Building of the module fails due to a redefinition of the sha256_state structure. Kernel 5.8.18-1-MANJARO make 4.3-3 gcc 10.2.0-3 See attached logs.
build.log make.log