Open williamtu opened 3 years ago
after fixing the offsetof.
./lib/tun-metadata.h(40,6): warning: forward references to 'enum' types are a Microsoft extension
[-Wmicrosoft-enum-forward-reference]
enum ofperr tun_metadata_table_mod(struct ofputil_tlv_table_mod *,
^
In file included from lib/smap.c:22:
./lib/packets.h(189,49): warning: unused parameter 'md' [-Wunused-parameter]
pkt_metadata_prefetch_init(struct pkt_metadata *md)
^
2 warnings generated.
libtool: compile: clang-cl -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/include -Ic:/PTHREADS-BUILT/include -O2
-I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-securit
y -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
-Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument
-Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-pointer-arithmetic -DHAVE_AVX512F -c
-showIncludes lib/smap.c -o lib/smap.obj
source='lib/sort.c' object='lib/sort.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./build-aux/depcomp \
/bin/sh ./libtool --tag=CC --mode=compile clang-cl -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/include -Ic:
/PTHREADS-BUILT/include -O2 -I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -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 -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-paren
theses -Wsizeof-array-argument -Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-point
er-arithmetic -DHAVE_AVX512F -c -o lib/sort.lo lib/sort.c
In file included from lib/socket-util.c:18:
./lib/socket-util.h(68,45): warning: declaration of 'struct timespec' will not be visible outside of this function [-Wvisibility]
int get_mtime(const char *file_name, struct timespec *mtime);
^
./lib/socket-util.h(148,40): warning: unused parameter 'style' [-Wunused-parameter]
static inline int make_unix_socket(int style, bool nonblock,
^
./lib/socket-util.h(148,52): warning: unused parameter 'nonblock' [-Wunused-parameter]
static inline int make_unix_socket(int style, bool nonblock,
^
./lib/socket-util.h(149,48): warning: unused parameter 'bind_path' [-Wunused-parameter]
const char *bind_path,
^
./lib/socket-util.h(150,48): warning: unused parameter 'connect_path' [-Wunused-parameter]
const char *connect_path)
^
In file included from lib/socket-util.c:37:
./include/windows\unistd.h(97,25): warning: cast from function call of type 'intptr_t' (aka 'long long') to non-matching type
'HANDLE' (aka 'void *') [-Wbad-function-cast]
HANDLE h = (HANDLE) _get_osfhandle(fd);
^~~~~~~~~~~~~~~~~~
In file included from lib/socket-util.c:39:
In file included from ./lib/ovs-thread.h:20:
In file included from c:/PTHREADS-BUILT/include\pthread.h:72:
c:/PTHREADS-BUILT/include\_ptw32.h(120,15): warning: 'HAVE_STRUCT_TIMESPEC' macro redefined [-Wmacro-redefined]
# define HAVE_STRUCT_TIMESPEC
^
.\config.h(202,9): note: previous definition is here
#define HAVE_STRUCT_TIMESPEC 1
^
In file included from lib/socket-util.c:40:
In file included from ./lib/packets.h:32:
./lib/tun-metadata.h(40,6): warning: forward references to 'enum' types are a Microsoft extension
[-Wmicrosoft-enum-forward-reference]
enum ofperr tun_metadata_table_mod(struct ofputil_tlv_table_mod *,
^
In file included from lib/socket-util.c:40:
./lib/packets.h(189,49): warning: unused parameter 'md' [-Wunused-parameter]
pkt_metadata_prefetch_init(struct pkt_metadata *md)
^
lib/socket-util.c(167,30): warning: incompatible pointer types passing 'ULONG *' (aka 'unsigned long *') to parameter of type
'ovs_be32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
if (!ip_parse(host_name, &addr->s_addr)) {
^~~~~~~~~~~~~
./lib/packets.h(678,40): note: passing argument to parameter 'ip' here
bool ip_parse(const char *s, ovs_be32 *ip);
^
lib/socket-util.c(204,29): warning: incompatible pointer types passing 'ULONG *' (aka 'unsigned long *') to parameter of type
'ovs_be32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
if (ip_parse(host_name, &addr->s_addr)) {
^~~~~~~~~~~~~
./lib/packets.h(678,40): note: passing argument to parameter 'ip' here
bool ip_parse(const char *s, ovs_be32 *ip);
^
lib/socket-util.c(330,13): warning: 'read' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and
C++ conformant name: _read. See online help for details. [-Wdeprecated-declarations]
if (read(fd, buffer, sizeof buffer) <= 0) {
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(522,9): note: 'read' has been explicitly marked
deprecated here
_CRT_NONSTDC_DEPRECATE(_read)
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(335,50): note: expanded from macro
'_CRT_NONSTDC_DEPRECATE'
#define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \
^
c:\BuildTools\VC\Tools\MSVC\14.29.30037\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
lib/socket-util.c(496,41): warning: incompatible pointer types passing 'ULONG *' (aka 'unsigned long *') to parameter of type
'ovs_be32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
if (host_s && !ip_parse(host_s, &sin->sin_addr.s_addr)) {
^~~~~~~~~~~~~~~~~~~~~
./lib/packets.h(678,40): note: passing argument to parameter 'ip' here
bool ip_parse(const char *s, ovs_be32 *ip);
^
lib/socket-util.c(801,26): warning: 'read' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and
C++ conformant name: _read. See online help for details. [-Wdeprecated-declarations]
ssize_t retval = read(fd, p, size);
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(522,9): note: 'read' has been explicitly marked
deprecated here
_CRT_NONSTDC_DEPRECATE(_read)
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(335,50): note: expanded from macro
'_CRT_NONSTDC_DEPRECATE'
#define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \
^
c:\BuildTools\VC\Tools\MSVC\14.29.30037\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
lib/socket-util.c(822,26): warning: 'write' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and
C++ conformant name: _write. See online help for details. [-Wdeprecated-declarations]
ssize_t retval = write(fd, p, size);
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(557,24): note: 'write' has been explicitly marked
deprecated here
_Check_return_ _CRT_NONSTDC_DEPRECATE(_write)
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(335,50): note: expanded from macro
'_CRT_NONSTDC_DEPRECATE'
#define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \
^
c:\BuildTools\VC\Tools\MSVC\14.29.30037\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
lib/socket-util.c(840,30): warning: unused parameter 'file_name' [-Wunused-parameter]
fsync_parent_dir(const char *file_name)
^
lib/socket-util.c(875,1): error: conflicting types for 'get_mtime'
get_mtime(const char *file_name, struct timespec *mtime)
^
./lib/socket-util.h(68,5): note: previous declaration is here
int get_mtime(const char *file_name, struct timespec *mtime);
^
lib/socket-util.c(1028,17): warning: unused parameter 'fd' [-Wunused-parameter]
describe_fd(int fd)
^
17 warnings and 1 error generated.
libtool: compile: clang-cl -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/include -Ic:/PTHREADS-BUILT/include -O2
-I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-securit
y -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
-Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument
-Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-pointer-arithmetic -DHAVE_AVX512F -c
-showIncludes lib/socket-util.c -o lib/socket-util.obj
make[2]: *** [Makefile:4599: lib/socket-util.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile: clang-cl -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/include -Ic:/PTHREADS-BUILT/include -O2
-I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-securit
y -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
-Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument
-Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-pointer-arithmetic -DHAVE_AVX512F -c
-showIncludes lib/sort.c -o lib/sort.obj
make[2]: Leaving directory '/c/ovs'
make[1]: *** [Makefile:5360: all-recursive] Error 1
make[1]: Leaving directory '/c/ovs'
make: *** [Makefile:3048: all] Error 2
error message below