[ovs-discuss] OVS 2.7.0 build error with kernel 4.4.0

Gregory Rose gvrose8192 at gmail.com
Mon Dec 2 17:12:58 UTC 2019


On 11/29/2019 4:21 AM, Andrei Andone wrote:
> 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.

If you must use the 2.7.x branch then please get the latest 2.7.9 
release and try that.  It's here:

https://www.openvswitch.org/releases/openvswitch-2.7.9.tar.gz

Thanks,

- Greg

>
> 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
>
>
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20191202/c2aada28/attachment.html>


More information about the discuss mailing list