Fail to build Linux kernel module with kernel upper than 4.8

Bug #1656094 reported by Jakub Pavlik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Won't Fix
High
Raja Sivaramakrishnan
R3.2
Won't Fix
High
Raja Sivaramakrishnan
Trunk
Fix Committed
High
Raja Sivaramakrishnan

Bug Description

On updated Ubuntu Xenial, the kernel module fails to build:

DKMS make.log for vrouter-3.0.2+0~1478703730.29~1.3bf0f9d for kernel 4.8.0-34-generic (x86_64)
Thu Jan 12 20:12:43 UTC 2017
make: Entering directory '/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build'
make -C /lib/modules/4.8.0-34-generic/build M=/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-34-generic'
  CC [M] /var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build/linux/vr_host_interface.o
/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build/linux/vr_host_interface.c: In function ‘linux_if_get_settings’:
/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build/linux/vr_host_interface.c:1567:21: error: implicit declaration of function ‘__ethtool_get_settings’ [-Werror=implicit-function-declaration]
         if (!(ret = __ethtool_get_settings(dev, &cmd))) {
                     ^
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build/linux/vr_host_interface.o' failed
make[2]: *** [/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build/linux/vr_host_interface.o] Error 1
Makefile:1491: recipe for target '_module_/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build' failed
make[1]: *** [_module_/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-34-generic'
Makefile:87: recipe for target 'default' failed
make: *** [default] Error 2
make: Leaving directory '/var/lib/dkms/vrouter/3.0.2+0~1478703730.29~1.3bf0f9d/build'

It must be something related to:
https://github.com/Juniper/contrail-vrouter/blob/master/linux/vr_host_interface.c#L1596

description: updated
information type: Proprietary → Public
Revision history for this message
Sergey Matov (smatov) wrote :

Hello Raja.

We've got same bug before with kernel 4.6 https://bugs.launchpad.net/juniperopenstack/trunk/+bug/1633387
Does this bug reproduced even with https://review.opencontrail.org/#/c/24969 in master branch code?

Revision history for this message
Jakub Pavlik (pavlk-jakub) wrote :

Yes, you are right. This is duplication of bug #1633387

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.