awesometic / realtek-r8126-dkms

A DKMS package for easy use of Realtek r8126 driver, which supports 5 GbE.
GNU General Public License v2.0
1 stars 0 forks source link

Building on kernel 6.10 #1

Open wolfallein opened 1 week ago

wolfallein commented 1 week ago

Hi,

thanks for the repo. I'm trying to compile it on kernel 6.10 and I'm getting the following error:

jp@debian:~/src/realtek-r8126-dkms$ sudo ./autorun.sh 

Check old driver and unload it.
Build the module and install
/bin/sh: 1: VER: not found
/home/jpereira/src/realtek-r8126-dkms/src/r8126_n.c:7120:20: error: initialization of ‘int (*)(struct net_device *, struct ethtool_keee *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_eee *)’ [-Werror=incompatible-pointer-types]
 7120 |         .get_eee = rtl_ethtool_get_eee,
      |                    ^~~~~~~~~~~~~~~~~~~
/home/jpereira/src/realtek-r8126-dkms/src/r8126_n.c:7120:20: note: (near initialization for ‘rtl8126_ethtool_ops.get_eee’)
/home/jpereira/src/realtek-r8126-dkms/src/r8126_n.c:7121:20: error: initialization of ‘int (*)(struct net_device *, struct ethtool_keee *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_eee *)’ [-Werror=incompatible-pointer-types]
 7121 |         .set_eee = rtl_ethtool_set_eee,
      |                    ^~~~~~~~~~~~~~~~~~~
/home/jpereira/src/realtek-r8126-dkms/src/r8126_n.c:7121:20: note: (near initialization for ‘rtl8126_ethtool_ops.set_eee’)
/home/jpereira/src/realtek-r8126-dkms/src/r8126_n.c:13358:1: warning: no previous prototype for ‘rtl8126_enable_msix’ [-Wmissing-prototypes]
13358 | rtl8126_enable_msix(struct rtl8126_private *tp)
      | ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-6.10.12-common/scripts/Makefile.build:249: /home/jpereira/src/realtek-r8126-dkms/src/r8126_n.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.10.12-common/Makefile:1959: /home/jpereira/src/realtek-r8126-dkms/src] Error 2
make[2]: *** [/usr/src/linux-headers-6.10.12-common/Makefile:252: __sub-make] Error 2
make[1]: *** [Makefile:188: modules] Error 2
make: *** [Makefile:44: modules] Error 2

Do you know what is missing? The Debian packages also do not install on my machine.

awesometic commented 1 week ago

Hello,

This r8126 module supports up to kernel 6.8. You can check it on the official download page.

But we've looked into this issue and this is the discussion page. Please check this issue page.