It's not really a workaround - I just updated the kernel to 3.14.13 and used the latest ovs source code from git - I am going to customize it anyways.
JZ > Date: Tue, 22 Jul 2014 19:24:02 -0300 > From: f...@redhat.com > To: jgzh...@hotmail.com > CC: dev@openvswitch.org > Subject: Re: [ovs-dev] issue on building openvswitch 2.1.2 on RHEL 7.0 > > On Tue, Jul 22, 2014 at 02:32:16PM -0700, JIANGANG Zhang wrote: > > Thanks for the reply. I have already found a workaround. > > Could you share the workaround? > > > > Date: Tue, 22 Jul 2014 18:29:33 -0300 > > > From: f...@redhat.com > > > To: jgzh...@hotmail.com > > > CC: dev@openvswitch.org; je...@nicira.com > > > Subject: Re: issue on building openvswitch 2.1.2 on RHEL 7.0 > > > > > > Hi, > > > > > > RHEL-7 kernel package comes with openvswitch module ready, so why are you > > > compiling the external module? > > > > > > I am willing to fix the issue anyway, so feel free to open a bugzilla > > > at http://bugzilla.redhat.com. > > > > > > Thanks, > > > fbl > > > > > > On Fri, Jul 18, 2014 at 11:26:02AM -0700, Jesse Gross wrote: > > > > You will likely have better luck posting this on a mailing list and > > > > also asking Red Hat people. > > > > > > > > On Sun, Jul 13, 2014 at 9:27 PM, JIANGANG Zhang <jgzh...@hotmail.com> > > > > wrote: > > > > > Hey Jesse, > > > > > > > > > > I am trying to build openvswitch 2.1.2 on RHEL/CentOS 7.0, but getting > > > > > similar problem as in > > > > > http://openvswitch.org/pipermail/discuss/2014-January/012573.html. The > > > > > following is the errors: > > > > > > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/genetlink.h:24:31: > > > > > error: static declaration of 'genlmsg_new_unicast' follows non-static > > > > > declaration > > > > > > > > > > static inline struct sk_buff *genlmsg_new_unicast(size_t payload, > > > > > > > > > > ^ > > > > > > > > > > In file included from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/genetlink.h:7:0, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux/datapath.c:52: > > > > > > > > > > include/net/genetlink.h:162:17: note: previous declaration of > > > > > 'genlmsg_new_unicast' was here > > > > > > > > > > struct sk_buff *genlmsg_new_unicast(size_t payload, struct genl_info > > > > > *info, > > > > > > > > > > ^ > > > > > > > > > > In file included from include/net/ndisc.h:52:0, > > > > > > > > > > from include/net/ipv6.h:20, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/ipv6.h:6, > > > > > > > > > > from include/net/inetpeer.h:15, > > > > > > > > > > from include/net/route.h:28, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/../compat.h:25, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/../datapath.h:29, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux/datapath.c:57: > > > > > > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/linux/hash.h:10:8: > > > > > error: redefinition of 'struct fast_hash_ops' > > > > > > > > > > struct fast_hash_ops { > > > > > > > > > > ^ > > > > > > > > > > In file included from include/linux/hash.h:18:0, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/linux/hash.h:4, > > > > > > > > > > from include/net/ndisc.h:52, > > > > > > > > > > from include/net/ipv6.h:20, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/ipv6.h:6, > > > > > > > > > > from include/net/inetpeer.h:15, > > > > > > > > > > from include/net/route.h:28, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/../compat.h:25, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/../datapath.h:29, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux/datapath.c:57: > > > > > > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/asm/hash.h:9:8: > > > > > note: originally defined here > > > > > > > > > > struct fast_hash_ops; > > > > > > > > > > ^ > > > > > > > > > > In file included from include/net/ndisc.h:52:0, > > > > > > > > > > from include/net/ipv6.h:20, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/ipv6.h:6, > > > > > > > > > > from include/net/inetpeer.h:15, > > > > > > > > > > from include/net/route.h:28, > > > > > > > > > > from include/net/ip.h:31, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/ip.h:4, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux/actions.c:31: > > > > > > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/linux/hash.h:10:8: > > > > > error: redefinition of 'struct fast_hash_ops' > > > > > > > > > > struct fast_hash_ops { > > > > > > > > > > ^ > > > > > > > > > > In file included from include/linux/hash.h:18:0, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/linux/hash.h:4, > > > > > > > > > > from include/net/ndisc.h:52, > > > > > > > > > > from include/net/ipv6.h:20, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/ipv6.h:6, > > > > > > > > > > from include/net/inetpeer.h:15, > > > > > > > > > > from include/net/route.h:28, > > > > > > > > > > from include/net/ip.h:31, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/net/ip.h:4, > > > > > > > > > > from > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux/actions.c:31: > > > > > > > > > > /root/rpmbuild/BUILD/openvswitch-2.1.2/_default/../datapath/linux/compat/include/asm/hash.h:9:8: > > > > > note: originally defined here > > > > > > > > > > struct fast_hash_ops; > > > > > > > > > > ^ > > > > > > > > > > make[2]: *** > > > > > [/root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux/actions.o] > > > > > Error 1 > > > > > > > > > > make[2]: *** Waiting for unfinished jobs.... > > > > > > > > > > make[2]: *** > > > > > [/root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux/datapath.o] > > > > > Error 1 > > > > > > > > > > make[1]: *** > > > > > [_module_/root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux] > > > > > Error 2 > > > > > > > > > > make[1]: Leaving directory > > > > > `/usr/src/kernels/3.10.0-123.4.2.el7.x86_64' > > > > > > > > > > make: *** [default] Error 2 > > > > > > > > > > make: Leaving directory > > > > > `/root/rpmbuild/BUILD/openvswitch-2.1.2/_default/datapath/linux' > > > > > > > > > > error: Bad exit status from /var/tmp/rpm-tmp.o9R5Sb (%build) > > > > > > > > > > > > > > > > > > > > RPM build errors: > > > > > > > > > > Bad exit status from /var/tmp/rpm-tmp.o9R5Sb (%build) > > > > > > > > > > > > > > > > > > > > Any insight and help would be greatly appreciated. > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > JZ > > > > > > > > > > > > > > > > > > _______________________________________________ > > dev mailing list > > dev@openvswitch.org > > http://openvswitch.org/mailman/listinfo/dev > > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev