[ovs-discuss] ovs kernel module 2.3.2 build failed
Chris
contact at progbau.de
Tue Jul 7 08:23:37 UTC 2015
Hello,
I tried to build the kernel module rpm for the openvswitch version 2.3.2
with the Centos 6.6 kernel 2.6.32-504.23.4.el6.centos.plus.x86_64.
Please see the output below, I skipped a little bit and copied the piece
when its starts to throw errors:
rpmbuild -bb --without check
~/openvswitch-2.3.2/rhel/openvswitch-kmod-rhel6.spec
[.]
ln -s
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/.
./linux/compat/skbuff-openvswitch.c
ln -s
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/.
./linux/compat/vxlan.c
ln -s
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/.
./linux/compat/utils.c
/usr/bin/make -C /usr/src/kernels/2.6.32-504.23.4.el6.centos.plus.x86_64
M=/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux
modules
make[1]: Entering directory
`/usr/src/kernels/2.6.32-504.23.4.el6.centos.plus.x86_64'
CC [M]
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/acti
ons.o
CC [M]
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/data
path.o
In file included from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/acti
ons.c:21:
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/skbuff.h: In function 'skb_clear_hash':
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/skbuff.h:302: error: 'struct sk_buff' has no member
named 'l4_rxhash'
In file included from include/net/sock.h:50,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/net/sock.h:4,
from include/linux/tcp.h:180,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/tcp.h:4,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/acti
ons.c:26:
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/netdevice.h: At top level:
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/netdevice.h:37: error: conflicting types for
'netdev_rx_handler_register'
include/linux/netdevice.h:2204: note: previous declaration of
'netdev_rx_handler_register' was here
In file included from include/linux/if_ether.h:130,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/if_ether.h:4,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../include/linux/if
_ether.h:26,
from include/linux/netdevice.h:29,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/netdevice.h:4,
from include/linux/if_arp.h:26,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/if_arp.h:4,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/data
path.c:23:
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/skbuff.h: In function 'skb_clear_hash':
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/skbuff.h:302: error: 'struct sk_buff' has no member
named 'l4_rxhash'
make[2]: ***
[/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/act
ions.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from include/linux/if_arp.h:26,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/if_arp.h:4,
from
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/data
path.c:23:
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/netdevice.h: At top level:
/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/../datapath/linux/c
ompat/include/linux/netdevice.h:37: error: conflicting types for
'netdev_rx_handler_register'
include/linux/netdevice.h:2204: note: previous declaration of
'netdev_rx_handler_register' was here
make[2]: ***
[/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux/dat
apath.o] Error 1
make[1]: ***
[_module_/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/l
inux] Error 2
make[1]: Leaving directory
`/usr/src/kernels/2.6.32-504.23.4.el6.centos.plus.x86_64'
make: *** [default] Error 2
make: Leaving directory
`/home/ovswitch/rpmbuild/BUILD/openvswitch-2.3.2/_default/datapath/linux'
error: Bad exit status from /var/tmp/rpm-tmp.J1Os80 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.J1Os80 (%build)
Any help appreciated!
Thanks,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150707/f9824596/attachment-0002.html>
More information about the discuss
mailing list