Fail to build linux kernel module with kernel upper than 4.4.0

Bug #1572124 reported by Jakub Pavlik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Jakub Pavlik
R3.1
Fix Committed
High
Jakub Pavlik
Trunk
Fix Committed
High
Jakub Pavlik

Bug Description

On updated Ubuntu trusty to kernel 4.4 (xenial-lts), the kernel module fails to build:

root@openstack-stg-cmp01:/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build# make --debug=v -C /lib/modules/4.4.0-18-generic/build M=/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build modules
.........
     Prerequisite `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build//sandesh/library/c/transport/thrift_fake_transport.h' is older than target `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/sandesh/library/c/transport/thrift_fake_transport.o'.
     Prerequisite `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build//sandesh/library/c/protocol/thrift_protocol.h' is older than target `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/sandesh/library/c/transport/thrift_fake_transport.o'.
     Prerequisite `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build//sandesh/library/c/protocol/thrift_binary_protocol.h' is older than target `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/sandesh/library/c/transport/thrift_fake_transport.o'.
    Must remake target `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/sandesh/library/c/transport/thrift_fake_transport.o'.
    Successfully remade target file `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/sandesh/library/c/transport/thrift_fake_transport.o'.
    Considering target file `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.o'.
     File `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.o' does not exist.
      Considering target file `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.c'.
       Finished prerequisites of target file `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.c'.
      No need to remake target `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.c'.
      Pruning file `scripts/recordmcount.c'.
      Pruning file `scripts/recordmcount.h'.
      Pruning file `FORCE'.
     Finished prerequisites of target file `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.o'.
    Must remake target `/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.o'.
  CC [M] /var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.o
/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.c: In function ‘lh_palloc_head’:
/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.c:227:5: error: implicit declaration of function ‘skb_frag_add_head’ [-Werror=implicit-function-declaration]
     skb_frag_add_head(skb_head, skb);
     ^
cc1: some warnings being treated as errors
make[1]: *** [/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build/linux/vrouter_mod.o] Error 1
make: *** [_module_/var/lib/dkms/vrouter/3.0+0~1461060985.10~1.194ccf5/build] Error 2
make: Leaving directory `/usr/src/linux-headers-4.4.0-18-generic'

Tags: vrouter
information type: Proprietary → Private
information type: Private → Public
Changed in juniperopenstack:
importance: Undecided → High
assignee: nobody → Anand H. Krishnan (anandhk)
tags: added: vrouter
tags: added: packaging
tags: removed: packaging
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22071
Submitter: Jakub Pavlik (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22071
Committed: http://github.org/Juniper/contrail-vrouter/commit/b9a9e768e5297169ea9b6feb484f55b5a37229fd
Submitter: Zuul
Branch: master

commit b9a9e768e5297169ea9b6feb484f55b5a37229fd
Author: Jakub Pavlik <email address hidden>
Date: Sun Jul 17 16:30:07 2016 +0200

Inline skb_frag_add_head in 4.3 later kernels.

skb_frag_add_head has been removed from 4.3

Closes-Bug: #1572124
Change-Id: I77c182364841331d47357e3fe32b375b07821e24

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/22179
Submitter: Jakub Pavlik (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22180
Submitter: Jakub Pavlik (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22179
Committed: http://github.org/Juniper/contrail-vrouter/commit/353c9c525e768269b8d7ae580dec6a47bc795bc3
Submitter: Zuul
Branch: R3.0

commit 353c9c525e768269b8d7ae580dec6a47bc795bc3
Author: Jakub Pavlik <email address hidden>
Date: Sun Jul 17 16:30:07 2016 +0200

Inline skb_frag_add_head in 4.3 later kernels.

skb_frag_add_head has been removed from 4.3

Closes-Bug: #1572124
Change-Id: I77c182364841331d47357e3fe32b375b07821e24

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/22180
Committed: http://github.org/Juniper/contrail-vrouter/commit/97e923fa144b042c770cb55af097eb01158dcc82
Submitter: Zuul
Branch: R3.1

commit 97e923fa144b042c770cb55af097eb01158dcc82
Author: Jakub Pavlik <email address hidden>
Date: Sun Jul 17 16:30:07 2016 +0200

Inline skb_frag_add_head in 4.3 later kernels.

skb_frag_add_head has been removed from 4.3

Closes-Bug: #1572124
Change-Id: I77c182364841331d47357e3fe32b375b07821e24

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.