Package: r8168-dkms Version: 8.048.03-3
I installed SpiralLinux, which installs the current Debian stable at the time the image was released, in this case, bullseye and it also enables Backports by default. During the upgrade process after the initial installation, dkms reported it was having issues with the r8168-dkms package, presumably compiling/adding (?) it to the kernel, which is a backported kernel. The kernel version is 6.1.0-0.deb11.7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.20-2~bpo11+1 (2023-04-23) x86_64 GNU/Linux My network card has the Realtek r8169 chip on it, so this package was unnecessary. Once I purged the package and rebooted, network connectivity was restored. Although I do not require this package, I felt that it should be reported to Debian as a bug, in hopes that a fix is found for those who require the package. Below is information that was displayed during the time dkms was having the issue, plus the log file from the stated filename. dkms: running auto installation service for kernel 6.1.0-0.deb11.7-amd64: Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j2 KERNELRELEASE=6.1.0-0.deb11.7-amd64 -C /lib/modules/6.1.0-0.deb11.7-amd64/build M=/var/lib/dkms/r8168/8.050.03/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.1.0-0.deb11.7-amd64 (x86_64) Consult /var/lib/dkms/r8168/8.050.03/build/make.log for more information. DKMS make.log for r8168-8.050.03 for kernel 6.1.0-0.deb11.7-amd64 (x86_64) Sun 04 Jun 2023 02:50:39 PM EDT make: Entering directory '/usr/src/linux-headers-6.1.0-0.deb11.7-amd64' CC [M] /var/lib/dkms/r8168/8.050.03/build/r8168_n.o CC [M] /var/lib/dkms/r8168/8.050.03/build/r8168_asf.o In file included from /var/lib/dkms/r8168/8.050.03/build/r8168_n.c:87: /var/lib/dkms/r8168/8.050.03/build/r8168_n.c: In function ‘rtl8168_init_one’: /var/lib/dkms/r8168/8.050.03/build/r8168.h:564:57: error: too many arguments to function ‘netif_napi_add’ 564 | #define RTL_NAPI_CONFIG(ndev, priv, function, weight) netif_napi_add(ndev, &priv->napi, function, weight) | ^~~~~~~~~~~~~~ /var/lib/dkms/r8168/8.050.03/build/r8168_n.c:26866:9: note: in expansion of macro ‘RTL_NAPI_CONFIG’ 26866 | RTL_NAPI_CONFIG(dev, tp, rtl8168_poll, R8168_NAPI_WEIGHT); | ^~~~~~~~~~~~~~~ In file included from /var/lib/dkms/r8168/8.050.03/build/r8168_n.c:46: /usr/src/linux-headers-6.1.0-0.deb11.7-common/include/linux/netdevice.h:2569:1: note: declared here 2569 | netif_napi_add(struct net_device *dev, struct napi_struct *napi, | ^~~~~~~~~~~~~~ /var/lib/dkms/r8168/8.050.03/build/r8168_n.c:26907:25: error: implicit declaration of function ‘netif_set_gso_max_size’; did you mean ‘netif_set_tso_max_size’? [-Werror=implicit-function-declaration] 26907 | netif_set_gso_max_size(dev, LSO_32K); | ^~~~~~~~~~~~~~~~~~~~~~ | netif_set_tso_max_size cc1: some warnings being treated as errors make[1]: *** [/usr/src/linux-headers-6.1.0-0.deb11.7-common/scripts/Makefile.build:255: /var/lib/dkms/r8168/8.050.03/build/r8168_n.o] Error 1