[ovs-discuss] 2.3.2 kernel module build error on rhel7

Tashi Lu dotslash.lu at gmail.com
Sat Oct 10 10:32:20 UTC 2015


Hi all,

When building LTS version of ovs kernel module from tarball on CentOS 7,
kernel version 3.10.0-229.el7.x86_64, I encountered following errors. What
I did wrong here?

...
/usr/bin/make -C /usr/src/kernels/3.10.0-229.14.1.el7.x86_64
M=/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-229.14.1.el7.x86_64'
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/actions.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/datapath.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dp_notify.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_netlink.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_table.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-gre.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-internal_dev.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-lisp.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-netdev.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-vxlan.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dev-openvswitch.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/exthdrs_core.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flex_array.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_dissector.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gre.o
  CC [M]
 /root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gso.o
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow.c:42:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow.c:42:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow.c:42:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow.c:42:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/actions.c:31:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/actions.c:31:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/actions.c:31:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/actions.c:31:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-lisp.c:31:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-lisp.c:31:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-lisp.c:31:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-lisp.c:31:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dp_notify.c:24:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dp_notify.c:24:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dp_notify.c:24:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dp_notify.c:24:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-internal_dev.c:30:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-internal_dev.c:30:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-internal_dev.c:30:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-internal_dev.c:30:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/datapath.c:57:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/datapath.c:57:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/datapath.c:57:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/datapath.c:57:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_table.c:19:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_table.c:19:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_table.c:19:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_table.c:19:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dp_notify.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gre.c:37:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gre.c:37:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gre.c:37:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gre.c:37:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-internal_dev.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-lisp.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/actions.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gre.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/datapath.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_table.o]
Error 1
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport.c:34:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport.c:34:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport.c:34:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport.c:34:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_netlink.c:21:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_netlink.c:21:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_netlink.c:21:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../flow.h:36,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_netlink.c:21:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-vxlan.c:31:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-vxlan.c:31:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-vxlan.c:31:0:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-vxlan.c:31:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-gre.c:39:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-gre.c:39:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-gre.c:39:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-gre.c:39:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-netdev.c:32:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-netdev.c:32:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/xfrm.h:19:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-netdev.c:32:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/xfrm.h:19,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../compat.h:26,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/../datapath.h:29,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-netdev.c:32:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport.o]
Error 1
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gso.c:34:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:
In function 'rpl_inet_get_local_port_range':
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
warning: passing argument 1 of 'inet_get_local_port_range' from
incompatible pointer type [enabled by default]
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gso.c:34:
include/net/ip.h:223:13: note: expected 'struct net *' but argument is of
type 'int *'
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
In file included from include/net/ip_tunnels.h:12:0,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gso.c:34:
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:19:2:
error: too few arguments to function 'inet_get_local_port_range'
  inet_get_local_port_range(low, high);
  ^
In file included from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip.h:4:0,
                 from include/net/ip_tunnels.h:12,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/ip_tunnels.h:15,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/compat/include/net/gre.h:5,
                 from
/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gso.c:34:
include/net/ip.h:223:13: note: declared here
 extern void inet_get_local_port_range(struct net *net, int *low, int
*high);
             ^
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-gre.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-netdev.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/flow_netlink.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/gso.o]
Error 1
make[2]: ***
[/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/vport-vxlan.o]
Error 1
make[1]: ***
[_module_/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux]
Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-229.14.1.el7.x86_64'
make: *** [default] Error 2
make: Leaving directory
`/root/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux'
error: Bad exit status from /var/tmp/rpm-tmp.91upLK (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.91upLK (%build)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151010/f4ab7e98/attachment-0002.html>


More information about the discuss mailing list