[ovs-discuss] build upstream ovs kernel module failed on CentOS 6.6

Pravin Shelar pshelar at nicira.com
Wed Nov 12 03:06:08 UTC 2014


Thanks for reporting this issue. I have posted patch to fix it. Can you try it?

http://openvswitch.org/pipermail/dev/2014-November/048577.html


On Thu, Nov 6, 2014 at 10:59 PM, Wang Sheng-Hui <shhuiw at gmail.com> wrote:
> Hi,
>
> I used the following env:
>
> * upstream ovs on CentOS 6.6
> * # uname -a
>   Linux sclab-51 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>
> From https://github.com/openvswitch/ovs/blob/master/FAQ.md, we can see that it claims supporting 2.6.32 kernel
>
> But kernel module failed to be built:
>
> # make
> Making all in linux
> make[1]: Entering directory `/export/rwang/ovs-kernel/datapath/linux'
> make -C /lib/modules/2.6.32-504.el6.x86_64/build M=/export/rwang/ovs-kernel/datapath/linux modules
> make[2]: Entering directory `/usr/src/kernels/2.6.32-504.el6.x86_64'
>   CC [M]  /export/rwang/ovs-kernel/datapath/linux/actions.o
> In file included from /export/rwang/ovs-kernel/datapath/linux/actions.c:21:
> /export/rwang/ovs-kernel/datapath/linux/compat/include/linux/skbuff.h: In function ‘skb_clear_hash’:
> /export/rwang/ovs-kernel/datapath/linux/compat/include/linux/skbuff.h:306: error: ‘struct sk_buff’ has no member named ‘l4_rxhash’
> /export/rwang/ovs-kernel/datapath/linux/actions.c: In function ‘ovs_execute_actions’:
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: error: ‘exec_actions_level’ undeclared (first use in this function)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: error: (Each undeclared identifier is reported only once
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: error: for each function it appears in.)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘ret__’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘ret__’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘ret__’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘ret__’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘ret__’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:963: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:975: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: error: invalid type argument of ‘unary *’ (have ‘int’)
> /export/rwang/ovs-kernel/datapath/linux/actions.c:982: warning: type defaults to ‘int’ in declaration of ‘type name’
> make[3]: *** [/export/rwang/ovs-kernel/datapath/linux/actions.o] Error 1
> make[2]: *** [_module_/export/rwang/ovs-kernel/datapath/linux] Error 2
> make[2]: Leaving directory `/usr/src/kernels/2.6.32-504.el6.x86_64'
> make[1]: *** [default] Error 2
> make[1]: Leaving directory `/export/rwang/ovs-kernel/datapath/linux'
> make: *** [all-recursive] Error 1
>
>
> Please help take a look.
>
> Thanks,
> Sheng-Hui
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss



More information about the discuss mailing list