[ovs-discuss] Error in "Make" after patching OVS

Mark Michelson mmichels at redhat.com
Mon Apr 2 14:21:34 UTC 2018


ovs_be16 is defined in a userspace header file and shouldn't be used in 
the Linux datapath code. You probably should be using __be16 instead.

On 04/02/2018 01:46 AM, Taimur Hafeez wrote:
> Dear all,
> I patched OVS successfully but when I issue "make" command it gives 
> following error:
> 
> 
> taimur at ubuntuibm:~/openvswitch-2.6.0$ make
> make  all-recursive
> make[1]: Entering directory `/home/taimur/openvswitch-2.6.0'
> Making all in datapath
> make[2]: Entering directory `/home/taimur/openvswitch-2.6.0/datapath'
> Making all in linux
> make[3]: Entering directory `/home/taimur/openvswitch-2.6.0/datapath/linux'
> make -C /lib/modules/4.4.0-31-generic/build 
> M=/home/taimur/openvswitch-2.6.0/datapath/linux modules
> make[4]: Entering directory `/usr/src/linux-headers-4.4.0-31-generic'
>    CC [M]  /home/taimur/openvswitch-2.6.0/datapath/linux/actions.o
> In file included from 
> /home/taimur/openvswitch-2.6.0/datapath/linux/actions.c:24:0:
> /home/taimur/openvswitch-2.6.0/datapath/linux/compat/include/linux/openvswitch.h:443:2: 
> error: unknown type name ‘ovs_be16’
>    ovs_be16 rwnd;
>    ^
> make[5]: *** [/home/taimur/openvswitch-2.6.0/datapath/linux/actions.o] 
> Error 1
> make[4]: *** [_module_/home/taimur/openvswitch-2.6.0/datapath/linux] Error 2
> make[4]: Leaving directory `/usr/src/linux-headers-4.4.0-31-generic'
> make[3]: *** [default] Error 2
> make[3]: Leaving directory `/home/taimur/openvswitch-2.6.0/datapath/linux'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/taimur/openvswitch-2.6.0/datapath'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/taimur/openvswitch-2.6.0'
> make: *** [all] Error 2
> 
> Could any body help on this? Thanks!
> 
> 
> Best regards,
> --------------------
> Taimur Hafeez
> 
> 
> 
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
> 



More information about the discuss mailing list