Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646114 - 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]
Summary: net-misc/r8168 with gentoo-sources-4.15.0 - .../work/r8168-8.044.02/src/r8168...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-30 10:55 UTC by Ivan Iraci
Modified: 2018-04-27 21:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Iraci 2018-01-30 10:55:51 UTC
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
Comment 1 Ivan Iraci 2018-01-30 19:00:54 UTC
Bug #646106 seems related to me, as well as the issues with nvidia drivers and other third party kernel modules reported upstream.
Comment 2 James Le Cuirot gentoo-dev 2018-01-30 23:53:43 UTC
Arch Linux has a patch. I'll bump this tomorrow.
Comment 3 Larry the Git Cow gentoo-dev 2018-02-01 22:27:15 UTC
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(+)}
Comment 4 James Le Cuirot gentoo-dev 2018-02-01 22:28:05 UTC
Bumped. I'll close this when stable. Please let me know if it works as I don't have the hardware any more.
Comment 5 Ivan Iraci 2018-02-02 17:26:55 UTC
(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!
Comment 6 Larry the Git Cow gentoo-dev 2018-04-27 21:09:51 UTC
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(-)