Summary: | net-misc/r8168 with gentoo-sources-4.15.0 - .../work/r8168-8.044.02/src/r8168_n.c:21350:9: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ivan Iraci <ivanhoe> |
Component: | Current packages | Assignee: | James Le Cuirot <chewi> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Bug #646106 seems related to me, as well as the issues with nvidia drivers and other third party kernel modules reported upstream. Arch Linux has a patch. I'll bump this tomorrow. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=111b4f5bee7a6ac6538c8df1ae1f427c3cf5ddcb commit 111b4f5bee7a6ac6538c8df1ae1f427c3cf5ddcb Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2018-02-01 22:26:32 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2018-02-01 22:26:32 +0000 net-misc/r8168: Version bump to 8.045.08 Includes patch for 4.15. Thanks to Alois Nespor from Arch Linux. Bug: https://bugs.gentoo.org/646114 Package-Manager: Portage-2.3.21, Repoman-2.3.6 net-misc/r8168/Manifest | 1 + net-misc/r8168/files/linux-4.15-2.patch | 85 +++++++++++++++++++++++++++++++++ net-misc/r8168/r8168-8.045.08.ebuild | 33 +++++++++++++ 3 files changed, 119 insertions(+)} Bumped. I'll close this when stable. Please let me know if it works as I don't have the hardware any more. (In reply to James Le Cuirot from comment #4) > Bumped. I'll close this when stable. Please let me know if it works as I > don't have the hardware any more. It works fine, thank you! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee232457ed7bad1c3d62c4c509419086b6ea3a65 commit ee232457ed7bad1c3d62c4c509419086b6ea3a65 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2018-04-27 21:09:01 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2018-04-27 21:09:41 +0000 net-misc/r8168: Drop old 8.044.02 Closes: https://bugs.gentoo.org/646114 Package-Manager: Portage-2.3.31, Repoman-2.3.9 net-misc/r8168/Manifest | 1 - .../r8168/files/r8168-8.044.02-linux-4.11.patch | 27 ------------------ net-misc/r8168/r8168-8.044.02.ebuild | 33 ---------------------- 3 files changed, 61 deletions(-) |
net-misc/r8168 does not build with gentoo-sources-4.15.0. >>> Compiling source in /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02 ... * Preparing r8168 module make -s -j8 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr/src/linux modules /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.c: In function ‘rtl8168_request_esd_timer’: /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.c:21350:9: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration] init_timer(timer); ^ /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.c:21352:14: error: ‘struct timer_list’ has no member named ‘data’ timer->data = (unsigned long)(dev); ^ /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.c:21353:25: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] timer->function = rtl8168_esd_timer; ^ /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.c: In function ‘rtl8168_request_link_timer’: /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.c:21369:14: error: ‘struct timer_list’ has no member named ‘data’ timer->data = (unsigned long)(dev); ^ /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.c:21370:25: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] timer->function = rtl8168_link_timer; ^ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:316: /var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src/r8168_n.o] Error 1 make[1]: *** [Makefile:1508: _module_/var/tmp/portage/net-misc/r8168-8.044.02/work/r8168-8.044.02/src] Error 2 make: *** [Makefile:95: modules] Error 2