[ovs-discuss] OVS 2.7.0 build error with kernel 4.4.0
Andrei Andone
andrei.andone at cplanenetworks.com
Fri Nov 29 12:21:59 UTC 2019
Hello,
Has anyone tried to build ovs-kmod for ovs 2.7.0 on a 4.4.0 kernel series?
I am running into some errors.
Configuring ovs works, but make fails.
Here is my configure command:
"./configure --with-linux=/lib/modules/4.4.0-169-generic/build --prefix=/"
This is what seems odd to me from the configure output:
"checking whether rtnl_create_link.*src_net matches in /lib/modules/4.4.0-169-generic/build/include/net/rtnetlink.h... no
ch"
These are some of the errors I am getting from make:
make[4]: Entering directory '/usr/src/linux-headers-4.4.0-169-generic'
CC [M] /root/ovs/datapath/linux/nf_conntrack_reasm.o
In file included from include/linux/random.h:10:0,
from /root/ovs/datapath/linux/compat/include/linux/random.h:4,
from include/linux/net.h:22,
from /root/ovs/datapath/linux/compat/include/linux/net.h:4,
from /root/ovs/datapath/linux/nf_conntrack_reasm.c:30:
/root/ovs/datapath/linux/nf_conntrack_reasm.c: In function ‘nf_hash_frag’:
/root/ovs/datapath/linux/nf_conntrack_reasm.c:79:31: error: ‘struct inet_frags’ has no member named ‘rnd’
net_get_random_once(&nf_frags.rnd, sizeof(nf_frags.rnd));
...
/root/ovs/datapath/linux/nf_conntrack_reasm.c: In function ‘rpl_nf_ct_frag6_init’:
/root/ovs/datapath/linux/nf_conntrack_reasm.c:574:10: error: ‘struct inet_frags’ has no member named ‘hashfn’
nf_frags.hashfn = nf_hashfn;
^
/root/ovs/datapath/linux/nf_conntrack_reasm.c:578:10: error: ‘struct inet_frags’ has no member named ‘match’
nf_frags.match = ip6_frag_match;
^
/root/ovs/datapath/linux/nf_conntrack_reasm.c:578:19: error: ‘ip6_frag_match’ undeclared (first use in this function)
nf_frags.match = ip6_frag_match;
^
/root/ovs/datapath/linux/nf_conntrack_reasm.c:578:19: note: each undeclared identifier is reported only once for each function it appears in
/root/ovs/datapath/linux/nf_conntrack_reasm.c: In function ‘nf_hash_frag’:
/root/ovs/datapath/linux/nf_conntrack_reasm.c:82:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:285: recipe for target '/root/ovs/datapath/linux/nf_conntrack_reasm.o' failed
make[5]: *** [/root/ovs/datapath/linux/nf_conntrack_reasm.o] Error 1
Makefile:1454: recipe for target '_module_/root/ovs/datapath/linux' failed
make[4]: *** [_module_/root/ovs/datapath/linux] Error 2
make[4]: Leaving directory '/usr/src/linux-headers-4.4.0-169-generic'
Makefile.main:71: recipe for target 'default' failed
Any opinions about compatibility?
Regards,
Andrei Andone
Software Developer
CPLANE NETWORKS
Mobile: +40 746 353 047
Skype: andrei.andone.1123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20191129/bc080d03/attachment.html>
More information about the discuss
mailing list