<div dir="ltr">Hello Team,<div><br><div>I just got the compilation problem while building OVS-2.5.3 on RHEL-7.3 with kernel version <span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6667px">3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux</span></div><div><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6667px"><br></span></font></div><div><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6667px">Below is the error:</span></font></div><div><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6667px"> </span></font><span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:11pt">make -C /lib/modules/3.10.0-514.el7.x86_64/build M=/home/neeraj/Downloads/openvswitch-2.5.3/</span><span class="gmail-spelle" style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:11pt">datapath</span><span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:11pt">/</span><span class="gmail-spelle" style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:11pt">linux</span><span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:11pt"> </span><span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:11pt">modules</span><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[4]: Entering directory `/<span class="gmail-spelle">usr</span>/<span class="gmail-spelle">src</span>/kernels/3.10.0-514.el7.x86_64&#39;</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">  CC [M]  /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/actions.o</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">In file included from include/net/inet_sock.h:24:0,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from include/net/ip.h:30,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/net/ip.h:4,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/linux/netfilter_ipv6.h:7,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/actions.c:25:</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">/home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/linux/netdevice.h:162:34: error: conflicting types for <span class="gmail-spelle">ânetdev_notifier_info_to_devâ</span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">static inline <span class="gmail-spelle">struct</span> <span class="gmail-spelle">net_device</span> *<span class="gmail-spelle">netdev_notifier_info_to_dev</span>(void *info)</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                                  ^</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">In file included from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/linux/netdevice.h:4:0,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from include/net/inet_sock.h:24,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from include/net/ip.h:30,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/net/ip.h:4,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/linux/netfilter_ipv6.h:7,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/actions.c:25:</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">include/<span class="gmail-spelle">linux</span>/netdevice.h:2248:1: note: previous definition of <span class="gmail-spelle">ânetdev_notifier_info_to_devâ</span> was here</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)"><span class="gmail-spelle">netdev_notifier_info_to_dev</span>(<span class="gmail-spelle">const</span> <span class="gmail-spelle">struct</span> <span class="gmail-spelle">netdev_notifier_info</span> *info)</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">^</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">In file included from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/../flow.h:36:0,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/../datapath.h:32,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/actions.c:41:</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">/home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/net/dst_metadata.h: In function <span class="gmail-spelle">âovs_ip_tun_rx_dstâ</span>:</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">/home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/net/dst_metadata.h:38:7: error: too few arguments to function <span class="gmail-spelle">âip_tunnel_key_initâ</span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">       0, 0, <span class="gmail-spelle">tunnel_id</span>, flags);</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">       ^</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">In file included from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/compat/include/net/ip_tunnels.h:10:0,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/../datapath.h:29,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                 from /home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/actions.c:41:</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">include/net/ip_tunnels.h:194:20: note: declared here</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">static inline void <span class="gmail-spelle">ip_tunnel_key_init</span>(<span class="gmail-spelle">struct</span> <span class="gmail-spelle">ip_tunnel_key</span> *key,</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">                    ^</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[5]: *** [/home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux/actions.o] Error 1</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[4]: *** [_module_/home/neeraj/Downloads/openvswitch-2.5.3/datapath/linux] Error 2</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[4]: Leaving directory `/<span class="gmail-spelle">usr</span>/<span class="gmail-spelle">src</span>/kernels/3.10.0-514.el7.x86_64&#39;</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[3]: *** [default] Error 2</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[3]: Leaving directory `/home/neeraj/Downloads/openvswitch-2.5.3/<span class="gmail-spelle">datapath</span>/<span class="gmail-spelle">linux</span>&#39;</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[2]: *** [all-recursive] Error 1</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[2]: Leaving directory `/home/neeraj/Downloads/openvswitch-2.5.3/<span class="gmail-spelle">datapath</span>&#39;</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[1]: *** [all-recursive] Error 1</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make[1]: Leaving directory `/home/neeraj/Downloads/openvswitch-2.5.3&#39;</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)">make: *** [all] Error 2</p><div><br></div><div>=============================================================================</div><div>Same is the issue with OVS-2.6.0. Whereas I am able to compile the OVS versions above 2.6.0.</div></div><div><br></div><div>Please help me out.</div><div><br></div><div>Regards</div><div>Neeraj</div></div></div>