You are not logged in.

#1 2020-05-01 17:30:30

disc1plin3
Member
Registered: 2020-05-01
Posts: 6

Error with DKMS module after last linux-headers update

Hey everyone
So I'm not sure where this goes, but the issue starts when updating the kernel, so I guess here...
Anyway, I've been using Arch for months now and since I remember I have an issue when updating the package "linux-headers", it's like my system wakes up with the same kernel but pacman detects there's a new update for the package so it installs it. But ends with an error because it's for the newer kernel. It gets solved when I reboot and reinstall the package, because for some reason after reboot the new kernel is installed.
I've been doing the same for a while every time there's a new update. But since the last one (2 days ago) it's like one of the modules just won't install.

 (3/3) Install DKMS modules
==> dkms install 8192cu/v4.0.2_9000 -k 5.6.8-arch1-1
==> dkms install vmware-workstation/15.5.2_15785246 -k 5.6.8-arch1-1
==> dkms install rtlwifi-new/0.6 -k 5.6.8-arch1-1
Error! Bad return status for module build on kernel: 5.6.8-arch1-1 (x86_64)
Consult /var/lib/dkms/rtlwifi-new/0.6/build/make.log for more information. 

Checking that file:

   CC [M]  /var/lib/dkms/rtlwifi-new/0.6/build/ps.o
  CC [M]  /var/lib/dkms/rtlwifi-new/0.6/build/rc.o
/var/lib/dkms/rtlwifi-new/0.6/build/rc.c:336:11: error: inicialización de ‘void * (*)(struct ieee80211_hw *)’ desde un tipo de puntero ‘void * (*)(struct ieee80211_hw *, struct dentry *)’ incompatible [-Werror=incompatible-pointer-types]
  336 |  .alloc = rtl_rate_alloc,
      |           ^~~~~~~~~~~~~~
/var/lib/dkms/rtlwifi-new/0.6/build/rc.c:336:11: nota: (cerca de la inicialización de ‘rtl_rate_ops.alloc’)
  CC [M]  /var/lib/dkms/rtlwifi-new/0.6/build/regd.o
cc1: algunos avisos se tratan como errores
make[1]: *** [scripts/Makefile.build:268: /var/lib/dkms/rtlwifi-new/0.6/build/rc.o] Error 1
make[1]: *** Se espera a que terminen otras tareas....
make: *** [Makefile:1683: /var/lib/dkms/rtlwifi-new/0.6/build] Error 2
make: se sale del directorio '/usr/lib/modules/5.6.8-arch1-1/build' 

I don't really know what to do to install it, just wait for the next update in hope it'll solve it? I need to use VirtualBox or VMWare and those need the headers package, otherwise they both give me errors:(
Any help will be welcome

Offline

#2 2020-05-03 15:21:01

doumix
Member
Registered: 2020-05-03
Posts: 1

Re: Error with DKMS module after last linux-headers update

same problem; change in line 297 in rtllwifi-new/rc.c

KERNEL_VERSION(5, 6, 8) instead of KERNEL_VERSION(5, 7, 0)

Offline

Board footer

Powered by FluxBB