[ovs-dev] issue on building openvswitch 2.1.2 on RHEL 7.0

Jesse Gross jesse at nicira.com
Fri Jul 18 18:26:02 UTC 2014


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 <jgzhang at 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
>
>



More information about the dev mailing list