Vrouter build issue on Centos 6 with kernel 2.6.32-504.1.3.el6

Bug #1444953 reported by Oleksandr Martsyniuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Released
Medium
Unassigned
R2.0
Fix Committed
Medium
Anand H. Krishnan
OpenContrail
Fix Released
Medium
Unassigned

Bug Description

Details:

 Unable to build vrouter kernel module

Build log:

Building module:
cleaning build area...(bad exit status: 2)
'make' -C . KERNELDIR=/lib/modules/2.6.32-504.1.3.el6.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.32-504.1.3.el6.x86_64 (x86_64)
Consult /var/lib/dkms/vrouter/2.01/build/make.log for more information.
[root@node-5 ~]# cat /var/lib/dkms/vrouter/2.01/build/make.log
DKMS make.log for vrouter-2.01 for kernel 2.6.32-504.1.3.el6.x86_64 (x86_64)
четвер, 16 квітня 2015 09:18:04 +0000
make: Entering directory `/var/lib/dkms/vrouter/2.01/build'
make -C /lib/modules/2.6.32-504.1.3.el6.x86_64/build M=/var/lib/dkms/vrouter/2.01/build modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-504.1.3.el6.x86_64'
  CC [M] /var/lib/dkms/vrouter/2.01/build/linux/vrouter_mod.o
In file included from /var/lib/dkms/vrouter/2.01/build/linux/vrouter_mod.c:26:
/var/lib/dkms/vrouter/2.01/build/include/vr_compat.h:13: error: redefinition of typedef ‘netdev_features_t’
include/linux/netdevice.h:940: note: previous declaration of ‘netdev_features_t’ was here
/var/lib/dkms/vrouter/2.01/build/include/vr_compat.h:142: error: conflicting types for ‘can_checksum_protocol’
include/linux/netdevice.h:2570: note: previous definition of ‘can_checksum_protocol’ was here
/var/lib/dkms/vrouter/2.01/build/include/vr_compat.h:166: error: conflicting types for ‘netif_skb_features’
include/linux/netdevice.h:2620: note: previous declaration of ‘netif_skb_features’ was here
make[2]: *** [/var/lib/dkms/vrouter/2.01/build/linux/vrouter_mod.o] Error 1
make[1]: *** [_module_/var/lib/dkms/vrouter/2.01/build] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-504.1.3.el6.x86_64'
make: *** [default] Error 2
make: Leaving directory `/var/lib/dkms/vrouter/2.01/build'

Action:

Apply the attached patch to restore build on latest Centos kernels

Tags: build vrouter
Revision history for this message
Oleksandr Martsyniuk (omartsyniuk) wrote :
Changed in opencontrail:
importance: Undecided → Medium
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.0

Review in progress for https://review.opencontrail.org/9265
Submitter: Anand H. Krishnan (<email address hidden>)

Revision history for this message
Anand H. Krishnan (anandhk) wrote :

Fix is needed only for R2.0 branch (and if needed for releases prior to that).

Changed in opencontrail:
status: New → Fix Released
Changed in juniperopenstack:
status: New → Fix Released
importance: Undecided → Medium
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/9265
Committed: http://github.org/Juniper/contrail-vrouter/commit/0fc4a0bdbab4cd55df02b12a18cc9681606d4a5e
Submitter: Zuul
Branch: R2.0

commit 0fc4a0bdbab4cd55df02b12a18cc9681606d4a5e
Author: Flavio Fernandes <email address hidden>
Date: Wed Nov 26 13:56:39 2014 -0500

modify vr_compat.h to compile on centos 6.5 and later

Closes-BUG: #1444953

Change-Id: Ibf124cf46cf4b07b073494707ee4d0c63da2bed3

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.