[ovs-discuss] OVS 1.7.0 on CentOS 6.3 build errors

Jesse Gross jesse at nicira.com
Tue Aug 28 19:41:48 UTC 2012


On Tue, Aug 28, 2012 at 7:13 AM, rh ev <watchlist at deltavm.com> wrote:
> Hello Everyone,
>
> I am trying to install OVS on CentOS 6.3. I am using the rhel install
> instructions but am getting the following error when I try to run "rpmbuild
> -bb rhel/openvswitch-kmod-rhel6.spec". I am able to successfully build the
> openvswitch-1.4.2-1.x86_64.rpm and openvswitch-debuginfo-1.4.2-1.x86_64.rpm
> files. This is for 1.7.0 and I have also tried with 1.4.2 and get the same
> error. I think I must be missing a package or something but I'm not sure
> which.
>
> I have also tried the generic Linux install and I get the same error when I
> run ./configure --with-linux....
>
> Error:
>
> In file included from
> /root/rpmbuild/BUILD/openvswitch-1.4.2/_default/../datapath/linux/compat/include/linux/if.h:4,
>                  from include/linux/netfilter.h:8,
>                  from include/net/netns/x_tables.h:5,
>                  from include/net/net_namespace.h:18,
>                  from
> /root/rpmbuild/BUILD/openvswitch-1.4.2/_default/../datapath/linux/compat/include/net/net_namespace.h:6,
>                  from
> /root/rpmbuild/BUILD/openvswitch-1.4.2/_default/../datapath/linux/compat/include/net/genetlink.h:6,
>                  from
> /root/rpmbuild/BUILD/openvswitch-1.4.2/_default/../datapath/linux/compat/genetlink.inc:3,
>                  from
> /root/rpmbuild/BUILD/openvswitch-1.4.2/_default/datapath/linux/genetlink-brcompat.c:10:
> include/linux/if.h:77:1: warning: this is the location of the previous
> definition
> make[2]: ***
> [/root/rpmbuild/BUILD/openvswitch-1.4.2/_default/datapath/linux/genetlink-brcompat.o]
> Error 1
> make[1]: ***
> [_module_/root/rpmbuild/BUILD/openvswitch-1.4.2/_default/datapath/linux]
> Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.5.2.el6.x86_64'
> make: *** [default] Error 2
> make: Leaving directory
> `/root/rpmbuild/BUILD/openvswitch-1.4.2/_default/datapath/linux'
> error: Bad exit status from /var/tmp/rpm-tmp.4kYBLq (%build)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.4kYBLq (%build)

You cut off the real error message but most likely you need this patch:
http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commit;h=6c4ea27c48b30eaec8e37e642d5072f53c5b2670

It resulted from an additional backport in Centos 6.3.  Alternately,
you can use the version from the 1.8 release branch in git.



More information about the discuss mailing list