smadaminov / ovs-dpdk-meson-issues

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

clang OVS build #15

Open williamtu opened 3 years ago

williamtu commented 3 years ago
In file included from c:/PTHREADS-BUILT/include\pthread.h:178:
c:/PTHREADS-BUILT/include\sched.h(54,21): error: typedef redefinition with different types ('long long' vs 'int')
    typedef __int64 pid_t;
                    ^
./include/windows/windefs.h(41,13): note: previous definition is here
typedef int pid_t;
            ^
williamtu commented 3 years ago

get_mtime

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);
    ^
williamtu commented 3 years ago
lib/util.c(596,24): error: use of undeclared identifier '_TWO_DIGIT_EXPONENT'
    _set_output_format(_TWO_DIGIT_EXPONENT);
                       ^
williamtu commented 3 years ago
In file included from ./lib/stream.h:25:
./lib/socket-util.h(149,40): warning: unused parameter 'style' [-Wunused-parameter]
static inline int make_unix_socket(int style, bool nonblock,
                                       ^
./lib/socket-util.h(149,52): warning: unused parameter 'nonblock' [-Wunused-parameter]
static inline int make_unix_socket(int style, bool nonblock,
                                                   ^
./lib/socket-util.h(150,48): warning: unused parameter 'bind_path' [-Wunused-parameter]
                                   const char *bind_path,
                                               ^
./lib/socket-util.h(151,48): warning: unused parameter 'connect_path' [-Wunused-parameter]
                                   const char *connect_path)
                                               ^
lib/stream-windows.c(104,22): warning: unused parameter 'dscp' [-Wunused-parameter]
             uint8_t dscp OVS_UNUSED)
                     ^
lib/stream-windows.c(242,45): error: cannot take the address of an rvalue of type 'DWORD' (aka 'unsigned long')
        if (!GetOverlappedResult(s->fd, ov, &(DWORD)retval, FALSE)) {
                                            ^~~~~~~~~~~~~~
lib/stream-windows.c(264,41): error: cannot take the address of an rvalue of type 'DWORD' (aka 'unsigned long')
    result = ReadFile(s->fd, buffer, n, &(DWORD)retval, ov);