[ovs-discuss] can't build rpm : rhel/openvswitch-kmod-rhel6.spec
Alexandre Callet
alexandre.callet at outlook.com
Wed Feb 3 15:28:52 UTC 2016
Hi,
I am actualy trying to rpmbuild the ovs kmod rhel6 but can't do it .
did someone already had this problem ?
/usr/bin/make -C /usr/src/kernels/3.10.0-327.4.5.el7.x86_64 M=/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-327.4.5.el7.x86_64'
CC [M] /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.o
CC [M] /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.o
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:4:0,
from include/linux/netdevice.h:43,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
include/net/net_namespace.h:246:24: error: expected ';', identifier or '(' before 'struct'
#define possible_net_t struct net *
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:62:3: note: in expansion of macro 'possible_net_t'
} possible_net_t;
^
In file included from include/linux/netdevice.h:43:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:62:17: error: expected identifier or '(' before ';' token
} possible_net_t;
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h: In function 'rpl_write_pnet':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:67:6: error: request for member 'net' in something not a structure or union
pnet->net = net;
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h: In function 'rpl_read_pnet':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:74:13: error: request for member 'net' in something not a structure or union
return pnet->net;
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:4:0,
from include/linux/netdevice.h:43,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
include/net/net_namespace.h:246:24: error: expected ';', identifier or '(' before 'struct'
#define possible_net_t struct net *
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:62:3: note: in expansion of macro 'possible_net_t'
} possible_net_t;
^
In file included from include/linux/netdevice.h:43:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:62:17: error: expected identifier or '(' before ';' token
} possible_net_t;
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h: In function 'rpl_write_pnet':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:67:6: error: request for member 'net' in something not a structure or union
pnet->net = net;
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h: In function 'rpl_read_pnet':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:74:13: error: request for member 'net' in something not a structure or union
return pnet->net;
^
In file included from include/net/inet_sock.h:24:0,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h: At top level:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:211:8: error: redefinition of 'struct gro_remcsum'
struct gro_remcsum {
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4:0,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
include/linux/netdevice.h:2212:8: note: originally defined here
struct gro_remcsum {
^
In file included from include/net/inet_sock.h:24:0,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h: At top level:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:211:8: error: redefinition of 'struct gro_remcsum'
struct gro_remcsum {
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4:0,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
include/linux/netdevice.h:2212:8: note: originally defined here
struct gro_remcsum {
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
include/net/ip.h: In function 'ip_select_ident':
include/net/ip.h:323:44: error: 'struct sk_buff' has no member named 'local_df'
if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) {
^
include/net/ip.h: In function 'ip_select_ident_more':
include/net/ip.h:339:44: error: 'struct sk_buff' has no member named 'local_df'
if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) {
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/compiler.h:4:0,
from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/stddef.h:4,
from /usr/src/kernels/3.10.0-327.4.5.el7.x86_64/include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/types.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/skbuff.h:5,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:21:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h: In function 'rpl_ip_do_fragment':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:95:54: error: 'struct sk_buff' has no member named 'local_df'
if (unlikely(((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) ||
^
include/linux/compiler.h:153:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
include/net/ip.h: In function 'ip_select_ident':
include/net/ip.h:323:44: error: 'struct sk_buff' has no member named 'local_df'
if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) {
^
include/net/ip.h: In function 'ip_select_ident_more':
include/net/ip.h:339:44: error: 'struct sk_buff' has no member named 'local_df'
if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) {
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:106:2: warning: passing argument 1 of 'ip_fragment' from incompatible pointer type [enabled by default]
return ip_fragment(skb, output);
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
include/net/ip.h:110:5: note: expected 'struct sock *' but argument is of type 'struct sk_buff *'
int ip_fragment(struct sock *sk, struct sk_buff *skb,
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:106:2: warning: passing argument 2 of 'ip_fragment' from incompatible pointer type [enabled by default]
return ip_fragment(skb, output);
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
include/net/ip.h:110:5: note: expected 'struct sk_buff *' but argument is of type 'int (*)(struct sk_buff *)'
int ip_fragment(struct sock *sk, struct sk_buff *skb,
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/compiler.h:4:0,
from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/stddef.h:4,
from /usr/src/kernels/3.10.0-327.4.5.el7.x86_64/include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/types.h:4,
from include/linux/list.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/list.h:4,
from include/linux/module.h:9,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:20:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h: In function 'rpl_ip_do_fragment':
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:106:2: error: too few arguments to function 'ip_fragment'
return ip_fragment(skb, output);
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:95:54: error: 'struct sk_buff' has no member named 'local_df'
if (unlikely(((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) ||
^
include/linux/compiler.h:153:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
include/net/ip.h:110:5: note: declared here
int ip_fragment(struct sock *sk, struct sk_buff *skb,
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:0:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:106:2: warning: passing argument 1 of 'ip_fragment' from incompatible pointer type [enabled by default]
return ip_fragment(skb, output);
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
include/net/ip.h:110:5: note: expected 'struct sock *' but argument is of type 'struct sk_buff *'
int ip_fragment(struct sock *sk, struct sk_buff *skb,
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:0:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:106:2: warning: passing argument 2 of 'ip_fragment' from incompatible pointer type [enabled by default]
return ip_fragment(skb, output);
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
include/net/ip.h:110:5: note: expected 'struct sk_buff *' but argument is of type 'int (*)(struct sk_buff *)'
int ip_fragment(struct sock *sk, struct sk_buff *skb,
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:0:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:106:2: error: too few arguments to function 'ip_fragment'
return ip_fragment(skb, output);
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
include/net/ip.h:110:5: note: declared here
int ip_fragment(struct sock *sk, struct sk_buff *skb,
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:29:0:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/../datapath.h: In function 'ovs_dp_get_net':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/../datapath.h:162:2: warning: passing argument 1 of 'rpl_read_pnet' from incompatible pointer type [enabled by default]
return rpl_read_pnet(&dp->net);
^
In file included from include/linux/netdevice.h:43:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:22:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:71:27: note: expected 'const struct net **' but argument is of type 'struct net * const*'
static inline struct net *rpl_read_pnet(const possible_net_t *pnet)
^
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c: In function 'handle_fragments':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.c:359:5: error: 'struct sk_buff' has no member named 'local_df'
skb->ignore_df = 1;
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:41:0:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/../datapath.h: In function 'ovs_dp_get_net':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/../datapath.h:162:2: warning: passing argument 1 of 'rpl_read_pnet' from incompatible pointer type [enabled by default]
return rpl_read_pnet(&dp->net);
^
In file included from include/linux/netdevice.h:43:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netdevice.h:4,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:4,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:71:27: note: expected 'const struct net **' but argument is of type 'struct net * const*'
static inline struct net *rpl_read_pnet(const possible_net_t *pnet)
^
make[2]: *** [/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/conntrack.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h: In function 'rpl_read_pnet':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/net_namespace.h:78:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/linux/netfilter_ipv6.h:7:0,
from /root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.c:25:
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h: In function 'rpl_ip_do_fragment':
/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/../datapath/linux/compat/include/net/ip.h:110:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux/actions.o] Error 1
make[1]: *** [_module_/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.4.5.el7.x86_64'
make: *** [default] Error 2
make: Leaving directory `/root/rpmbuild/BUILD/openvswitch-2.4.90/_default/datapath/linux'
error: Bad exit status from /var/tmp/rpm-tmp.LtlGJp (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.LtlGJp (%build)
Br,
Alex,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160203/ad75f7f2/attachment-0002.html>
More information about the discuss
mailing list