<div dir="ltr"><div>Thanks Joe and Ben, actually the master branch we also got such error.</div><div>The doc we followed is &quot;Fedora, RHEL 7.x Packaging for Open vSwitch&quot; [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">&lt;<a href="mailto:joe@ovn.org" target="_blank">joe@ovn.org</a>&gt;</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 &lt;<a href="mailto:blp@ovn.org">blp@ovn.org</a>&gt; wrote:<br>
&gt; On Wed, Jan 11, 2017 at 03:03:45PM -0800, Joe Stringer wrote:<br>
&gt;&gt; On 9 January 2017 at 19:01, liu yulong &lt;<a href="mailto:liuyulong.xa@gmail.com">liuyulong.xa@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi experts,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; We have failed to build Open vSwitch Kernel Modules on CentOS 7 (kernel<br>
&gt;&gt; &gt; 3.10.0-514.2.2.el7.x86_64).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Here are some traces we got:<br>
&gt;&gt; &gt; <a href="http://paste.openstack.org/show/594350/" rel="noreferrer" target="_blank">http://paste.openstack.org/<wbr>show/594350/</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Steps:<br>
&gt;&gt; &gt; 1. download the current openvswitch release:<br>
&gt;&gt; &gt; <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>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2. rpmbuild<br>
&gt;&gt; &gt; (1) prepare the SOURCE<br>
&gt;&gt; &gt; cp openvswitch-2.6.1.tar.gz ~/rpmbuild/SOURCES/<br>
&gt;&gt; &gt; tar -zxvf openvswitch-2.6.1.tar.gz<br>
&gt;&gt; &gt; cp ./openvswitch-2.6.1/rhel/* ~/rpmbuild/SOURCES/<br>
&gt;&gt; &gt; cp ./openvswitch-2.6.1/rhel/*.<wbr>spec ~/rpmbuild/SPECS/<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; (2) edit ~/rpmbuild/SPECS/openvswitch-<wbr>kmod-fedora.spec<br>
&gt;&gt; &gt; change the #%define kernel to:<br>
&gt;&gt; &gt; #%define kernel 3.10.0-514.2.2.el7.x86_64<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; (3) start build<br>
&gt;&gt; &gt; rpmbuild -bb --without check ~/rpmbuild/SPECS/openvswitch-<wbr>kmod-fedora.spec<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Then we get that error. So can anyone help to solve such issue?<br>
&gt;&gt; &gt; Thank you.<br>
&gt;&gt;<br>
&gt;&gt; If you want to use the kernel module from the OVS tree, you need to<br>
&gt;&gt; use master or wait for the next version of OVS. Alternatively you can<br>
&gt;&gt; skip using the kernel module from OVS tree and only compile the<br>
&gt;&gt; userspace programs, then use the kernel module that is provided with<br>
&gt;&gt; Centos 7.<br>
&gt;<br>
&gt; Maybe liu is confused because the FAQ that comes with OVS 2.6.1 says<br>
&gt; that the kernel module should work with Linux 3.10.  Maybe it does not<br>
&gt; work because Centos kernels diverge from upstream.<br>
<br>
</div></div>True, it&#39;s a bit confusing. The FAQ distributed with 2.6 specifically<br>
states the supported versions, with this caveat:<br>
<br>
&quot;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.&quot;<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>