<div dir="ltr"><div>Thanks Joe and Ben, actually the master branch we also got such error.</div><div>The doc we followed is "Fedora, RHEL 7.x Packaging for Open vSwitch" [1].</div><div>The conflicting shown in [2] was basically same. </div><div><br></div><div>[1] <a href="https://github.com/openvswitch/ovs/blob/master/Documentation/intro/install/fedora.rst">https://github.com/openvswitch/ovs/blob/master/Documentation/intro/install/fedora.rst</a></div><div>[2] <a href="http://paste.openstack.org/show/594350/">http://paste.openstack.org/show/594350/</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 12, 2017 at 7:51 AM, Joe Stringer <span dir="ltr"><<a href="mailto:joe@ovn.org" target="_blank">joe@ovn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">On 11 January 2017 at 15:38, Ben Pfaff <<a href="mailto:blp@ovn.org">blp@ovn.org</a>> wrote:<br>
> On Wed, Jan 11, 2017 at 03:03:45PM -0800, Joe Stringer wrote:<br>
>> On 9 January 2017 at 19:01, liu yulong <<a href="mailto:liuyulong.xa@gmail.com">liuyulong.xa@gmail.com</a>> wrote:<br>
>> > Hi experts,<br>
>> ><br>
>> > We have failed to build Open vSwitch Kernel Modules on CentOS 7 (kernel<br>
>> > 3.10.0-514.2.2.el7.x86_64).<br>
>> ><br>
>> > Here are some traces we got:<br>
>> > <a href="http://paste.openstack.org/show/594350/" rel="noreferrer" target="_blank">http://paste.openstack.org/<wbr>show/594350/</a><br>
>> ><br>
>> > Steps:<br>
>> > 1. download the current openvswitch release:<br>
>> > <a href="http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz" rel="noreferrer" target="_blank">http://openvswitch.org/<wbr>releases/openvswitch-2.6.1.<wbr>tar.gz</a><br>
>> ><br>
>> > 2. rpmbuild<br>
>> > (1) prepare the SOURCE<br>
>> > cp openvswitch-2.6.1.tar.gz ~/rpmbuild/SOURCES/<br>
>> > tar -zxvf openvswitch-2.6.1.tar.gz<br>
>> > cp ./openvswitch-2.6.1/rhel/* ~/rpmbuild/SOURCES/<br>
>> > cp ./openvswitch-2.6.1/rhel/*.<wbr>spec ~/rpmbuild/SPECS/<br>
>> ><br>
>> ><br>
>> > (2) edit ~/rpmbuild/SPECS/openvswitch-<wbr>kmod-fedora.spec<br>
>> > change the #%define kernel to:<br>
>> > #%define kernel 3.10.0-514.2.2.el7.x86_64<br>
>> ><br>
>> > (3) start build<br>
>> > rpmbuild -bb --without check ~/rpmbuild/SPECS/openvswitch-<wbr>kmod-fedora.spec<br>
>> ><br>
>> > Then we get that error. So can anyone help to solve such issue?<br>
>> > Thank you.<br>
>><br>
>> If you want to use the kernel module from the OVS tree, you need to<br>
>> use master or wait for the next version of OVS. Alternatively you can<br>
>> skip using the kernel module from OVS tree and only compile the<br>
>> userspace programs, then use the kernel module that is provided with<br>
>> Centos 7.<br>
><br>
> Maybe liu is confused because the FAQ that comes with OVS 2.6.1 says<br>
> that the kernel module should work with Linux 3.10. Maybe it does not<br>
> work because Centos kernels diverge from upstream.<br>
<br>
</div></div>True, it's a bit confusing. The FAQ distributed with 2.6 specifically<br>
states the supported versions, with this caveat:<br>
<br>
"The Linux kernel versions are upstream kernel versions, so Linux<br>
kernels modified from the upstream sources may not build in some cases<br>
even if they are based on a supported version. This is most notably<br>
true of Red Hat Enterprise Linux (RHEL) kernels, which are extensively<br>
modified from upstream."<br>
<br>
<a href="https://github.com/openvswitch/ovs/blob/branch-2.6/FAQ.md#q-what-linux-kernel-versions-does-each-open-vswitch-release-work-with" rel="noreferrer" target="_blank">https://github.com/<wbr>openvswitch/ovs/blob/branch-2.<wbr>6/FAQ.md#q-what-linux-kernel-<wbr>versions-does-each-open-<wbr>vswitch-release-work-with</a><br>
</blockquote></div><br></div></div>