I'm trying to get r8168-dkms to install on a fresh install of 20.04.1, to my new AMD Ryzen pc, but it's getting a compile error.
uname -a output:
Linux terry-pc 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC
2021 x86_64 x86_64 x86_64 GNU/Linux
dpkg -i r8168-dkms_8.048.00-1_all.deb
make.log:
DKMS make.log for r8168-8.048.00 for kernel 5.8.0-50-generic (x86_64) Fri 23 Apr 2021 12:09:08 PM PDT make: Entering directory '/usr/src/linux-headers-5.8.0-50-generic' AR /var/lib/dkms/r8168/8.048.00/build/built-in.a CC [M] /var/lib/dkms/r8168/8.048.00/build/r8168_n.o CC [M] /var/lib/dkms/r8168/8.048.00/build/r8168_asf.o CC [M] /var/lib/dkms/r8168/8.048.00/build/rtl_eeprom.o CC [M] /var/lib/dkms/r8168/8.048.00/build/rtltool.o /var/lib/dkms/r8168/8.048.00/build/r8168_n.c: In function ‘rtl8168_proc_init’: /var/lib/dkms/r8168/8.048.00/build/r8168_n.c:1670:47: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1670 | &rtl8168_proc_fops, f->show)) { | ^~~~~~~~~~~~~~~~~~ | | | const struct file_operations * In file included from /var/lib/dkms/r8168/8.048.00/build/r8168_n.c:92: ./include/linux/proc_fs.h:103:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 103 | extern struct proc_dir_entry *proc_create_data(const char , umode_t, | ^~~~~~~~~~~~~~~~ /var/lib/dkms/r8168/8.048.00/build/r8168_n.c: At top level: /var/lib/dkms/r8168/8.048.00/build/r8168_n.c:25825:31: error: initialization of ‘void ()(struct net_device , unsigned int)’ from incompatible pointer type ‘void ()(struct net_device *)’ [-Werror=incompatible-pointer-types] 25825 | .ndo_tx_timeout = rtl8168_tx_timeout, | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/r8168/8.048.00/build/r8168_n.c:25825:31: note: (near initialization for ‘rtl8168_netdev_ops.ndo_tx_timeout’) cc1: some warnings being treated as errors make[1]: *** [scripts/Makefile.build:284: /var/lib/dkms/r8168/8.048.00/build/r8168_n.o] Error 1 make: *** [Makefile:1783: /var/lib/dkms/r8168/8.048.00/build] Error 2 make: Leaving directory '/usr/src/linux-headers-5.8.0-50-generic'
Has anyone hit this, and fixed it?
sudo apt install build-essential
– Terrance Apr 24 '21 at 02:52GBE Ethernet LINUX driver r8168 for kernel up to 5.6
. It is not a DKMS driver, but it is possible to convert it over to one after it is installed. – Terrance Apr 25 '21 at 02:51