[ovs-discuss] compilation error during bring up OVS-2.5 with dpdk-2.2.0

Rajesh Althi rajesh.embedding at gmail.com
Fri Nov 10 12:05:00 UTC 2017


Hi All,


I'am trying to install OVS-2.5 with dpdk.

I have downloaded and installed dpdk-2.2.0 version.

Executed the following steps to install OVS-2.5 with dpdk.
    -  export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc/
- ./configure --with-dpdk=$DPDK_BUILD - make
- make install

But during make the below compilation errors i got:


libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition
-Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing
-Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument
-Wbool-compare -mssse3
-I/usr/src/dpdk-2.2.0/x86_64-native-linuxapp-gcc//include
-D_FILE_OFFSET_BITS=64 -g -O2 -MT lib/bfd.lo -MD -MP -MF lib/.deps/bfd.Tpo
-c lib/bfd.c -o lib/bfd.o
In file included from lib/bfd.c:27:0:
lib/dp-packet.h: In function ‘dp_packet_ip_checksum_valid’:
lib/dp-packet.h:643:32: error: ‘PKT_RX_IP_CKSUM_MASK’ undeclared (first use
in this function)
     return (p->mbuf.ol_flags & PKT_RX_IP_CKSUM_MASK) ==
                                ^
lib/dp-packet.h:643:32: note: each undeclared identifier is reported only
once for each function it appears in
lib/dp-packet.h:644:13: error: ‘PKT_RX_IP_CKSUM_GOOD’ undeclared (first use
in this function)
             PKT_RX_IP_CKSUM_GOOD;
             ^
lib/dp-packet.h: In function ‘dp_packet_ip_checksum_bad’:
lib/dp-packet.h:654:32: error: ‘PKT_RX_IP_CKSUM_MASK’ undeclared (first use
in this function)
     return (p->mbuf.ol_flags & PKT_RX_IP_CKSUM_MASK) ==
                                ^
lib/dp-packet.h: In function ‘dp_packet_l4_checksum_valid’:
lib/dp-packet.h:665:32: error: ‘PKT_RX_L4_CKSUM_MASK’ undeclared (first use
in this function)
     return (p->mbuf.ol_flags & PKT_RX_L4_CKSUM_MASK) ==
                                ^
lib/dp-packet.h:666:13: error: ‘PKT_RX_L4_CKSUM_GOOD’ undeclared (first use
in this function)
             PKT_RX_L4_CKSUM_GOOD;
             ^
lib/dp-packet.h: In function ‘dp_packet_l4_checksum_bad’:
lib/dp-packet.h:676:32: error: ‘PKT_RX_L4_CKSUM_MASK’ undeclared (first use
in this function)
     return (p->mbuf.ol_flags & PKT_RX_L4_CKSUM_MASK) ==
                                ^
lib/dp-packet.h: In function ‘reset_dp_packet_checksum_ol_flags’:
lib/dp-packet.h:687:27: error: ‘PKT_RX_L4_CKSUM_GOOD’ undeclared (first use
in this function)
     p->mbuf.ol_flags &= ~(PKT_RX_L4_CKSUM_GOOD | PKT_RX_L4_CKSUM_BAD |
                           ^
lib/dp-packet.h:688:27: error: ‘PKT_RX_IP_CKSUM_GOOD’ undeclared (first use
in this function)
                           PKT_RX_IP_CKSUM_GOOD | PKT_RX_IP_CKSUM_BAD);
                           ^
Makefile:4700: recipe for target 'lib/bfd.lo' failed
make[2]: *** [lib/bfd.lo] Error 1
make[2]: Leaving directory '/home/asfvolt/ovs'
Makefile:5426: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/asfvolt/ovs'
Makefile:3171: recipe for target 'all' failed
make: *** [all] Error 2



Please let me know which version of dpdk is compatible to compile OVS-2.5
with dpdk.


Thanks,
Rajesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171110/c976ce9b/attachment.html>


More information about the discuss mailing list