Hi! Please find attached r8168-8.036.00.ebuild and a patch so that it will compile with linux-3.10.x r8168 is a NIC driver of Realtek. In the mother board for AMD, NIC which operates with this driver is adopted in many cases. net-misc/r8168/r8186-8.035.00.ebuild is failed to build with linux-3.10.x. And I found new version for driver in https://code.google.com/p/r8168/ I suggest net-misc/r8168 Also, this ebuild is based on r8168-8.035.00.ebuild.
Created attachment 354502 [details] r8168-8.036.00.ebuild
Created attachment 354504 [details, diff] r8168-8.036.00-build-3.10.patch
Comment on attachment 354502 [details] r8168-8.036.00.ebuild --- r8168-8.035.00-r1.ebuild 2013-03-06 22:37:48.000000000 +0100 +++ - 2013-07-29 17:13:13.968208512 +0200 @@ -22,7 +22,7 @@ ERROR_R8169="${P} requires Realtek 8169 PCI Gigabit Ethernet adapter (CONFIG_R8169) to be DISABLED" src_prepare() { - epatch "${FILESDIR}/${P}-build-3.8.patch" + epatch "${FILESDIR}/${P}-build-3.10.patch" } pkg_setup() {
*** Bug 478652 has been marked as a duplicate of this bug. ***
Hi, This ebuild (given in topic bellow) works for me and solved the problem: https://forums.gentoo.org/viewtopic-p-7378886.html#7378886
ping
net-misc/r8168-8.035.00-r1 Still fail with kernel 3.11.0 ... make[1]: Entering directory `/usr/src/linux-3.11.0-gentoo' CC [M] /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.o CC [M] /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_asf.o CC [M] /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/rtl_eeprom.o CC [M] /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/rtltool.o /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c: In function ‘rtl8168_rx_vlan_skb’: /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c:2077:3: error: too few arguments to function ‘__vlan_hwaccel_put_tag’ In file included from /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c:47:0: include/linux/if_vlan.h:236:71: note: declared here /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c: In function ‘rtl8168_set_features’: /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c:2136:22: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function) /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c:2136:22: note: each undeclared identifier is reported only once for each function it appears in /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c: In function ‘rtl8168_init_one’: /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c:15057:20: error: ‘NETIF_F_HW_VLAN_TX’ undeclared (first use in this function) /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.c:15057:41: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function) make[2]: *** [/var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.o] Error 1 make[1]: *** [_module_/var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src] Error 2 make[1]: Leaving directory `/usr/src/linux-3.11.0-gentoo' make: *** [modules] Error 2
> net-misc/r8168-8.035.00-r1 Still fail with kernel 3.11.0 If you need r8168-8.035.00 , see #478652.
Do you guy's think this patch will get published anytime soon?
r8168-8.038.00 is in the tree and it builds against kernel 3.13