smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

ovs-dpdk: lib/dpdk.c, unknown type name 'cookie_io_functions_t' #49

Open williamtu opened 3 years ago

williamtu commented 3 years ago
[30/97] Compiling C object lib/libopenvswitch.a.p/dpdk.c.obj
FAILED: lib/libopenvswitch.a.p/dpdk.c.obj
"clang" "-Ilib\libopenvswitch.a.p" "-Ilib" "-I..\lib" "-I." "-I.." "-Iinclude" "-I..\inc
lude" "-I..\include\windows" "-I..\datapath-windows\include" "-Ic:\PTHREADS-BUILT" "-Ic:
\PTHREADS-BUILT\include" "-IC:\dpdk\install\include" "-fcolor-diagnostics" "-D_FILE_OFFS
ET_BITS=64" "-Wall" "-Winvalid-pch" "-O3" "-Wstrict-prototypes" "-Wextra" "-Wno-sign-com
pare" "-Wpointer-arith" "-Wformat" "-Wformat-security" "-Wswitch-enum" "-Wunused-paramet
er" "-Wbad-function-cast" "-Wcast-align" "-Wstrict-prototypes" "-Wold-style-definition"
"-Wmissing-prototypes" "-Wmissing-field-initializers" "-Wthread-safety" "-fno-strict-ali
asing" "-Wswitch-bool" "-Wlogical-not-parentheses" "-Wsizeof-array-argument" "-Wshift-ne
gative-value" "-Wshadow" "-Wno-null-pointer-arithmetic" "-w" "-U_MSC_VER" "-msse3" "-mss
se3" "-std=c11" "-U__AVX512F__" "-D_TIMESPEC_DEFINED" "-D_CRT_NONSTDC_NO_DEPRECATE -D_CR
T_SECURE_NO_WARNINGS" "-D_CRT_SECURE_NO_DEPRECATE" -MD -MQ lib/libopenvswitch.a.p/dpdk.c
.obj -MF "lib\libopenvswitch.a.p\dpdk.c.obj.d" -o lib/libopenvswitch.a.p/dpdk.c.obj "-c"
 ../lib/dpdk.c
../lib/dpdk.c:312:8: error: unknown type name 'cookie_io_functions_t'
static cookie_io_functions_t dpdk_log_func = {
       ^
../lib/dpdk.c:435:29: error: use of undeclared identifier 'NAME_MAX'; did you mean 'XLAT
E_MAX'?
                            NAME_MAX, ovs_other_config,
                            ^~~~~~~~
                            XLATE_MAX
include\odp-netlink.h:456:2: note: 'XLATE_MAX' declared here
        XLATE_MAX,
        ^
2 errors generated.
[35/97] Compiling C object ofproto/libofproto.a.p/ofproto-dpif.c.obj