google / mysql-ripple

Ripple, a server that can serve as a middleman in MySQL replication
Apache License 2.0
373 stars 46 forks source link

[Build]centos build error #34

Open vczyh opened 3 years ago

vczyh commented 3 years ago
external/external_libs/mysql/my_sys.h:1066:53: note: suggested alternative: 'charset_info_st'
 extern size_t escape_string_for_mysql(CHARSET_INFO *charset_info,
                                                     ^~~~~~~~~~~~
                                                     charset_info_st
external/external_libs/mysql/my_sys.h:1067:39: error: expected primary-expression before 'char'
                                       char *to, size_t to_length,
                                       ^~~~
external/external_libs/mysql/my_sys.h:1067:56: error: expected primary-expression before 'to_length'
                                       char *to, size_t to_length,
                                                        ^~~~~~~~~
external/external_libs/mysql/my_sys.h:1068:39: error: expected primary-expression before 'const'
                                       const char *from, size_t length,
                                       ^~~~~
external/external_libs/mysql/my_sys.h:1068:64: error: expected primary-expression before 'length'
                                       const char *from, size_t length,
                                                                ^~~~~~
external/external_libs/mysql/my_sys.h:1069:47: error: expected primary-expression before '*' token
                                       my_bool *overflow);
                                               ^
external/external_libs/mysql/my_sys.h:1069:48: error: 'overflow' was not declared in this scope
                                       my_bool *overflow);
                                                ^~~~~~~~
external/external_libs/mysql/my_sys.h:1069:48: note: suggested alternative: 'erfl'
                                       my_bool *overflow);
                                                ^~~~~~~~
                                                erfl
external/external_libs/mysql/my_sys.h:1069:56: error: expression list treated as compound expression in initializer [-fpermissive]
                                       my_bool *overflow);
                                                        ^
external/external_libs/mysql/my_sys.h:1077:39: error: 'CHARSET_INFO' was not declared in this scope
 extern size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info,
                                       ^~~~~~~~~~~~
external/external_libs/mysql/my_sys.h:1077:39: note: suggested alternative: 'MY_CHARSET_INFO'
 extern size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info,
                                       ^~~~~~~~~~~~
                                       MY_CHARSET_INFO
external/external_libs/mysql/my_sys.h:1077:53: error: 'charset_info' was not declared in this scope
 extern size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info,
                                                     ^~~~~~~~~~~~
external/external_libs/mysql/my_sys.h:1077:53: note: suggested alternative: 'charset_info_st'
 extern size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info,
                                                     ^~~~~~~~~~~~
                                                     charset_info_st
external/external_libs/mysql/my_sys.h:1078:39: error: expected primary-expression before 'char'
                                       char *to, size_t to_length,
                                       ^~~~
external/external_libs/mysql/my_sys.h:1078:56: error: expected primary-expression before 'to_length'
                                       char *to, size_t to_length,
                                                        ^~~~~~~~~
external/external_libs/mysql/my_sys.h:1079:39: error: expected primary-expression before 'const'
                                       const char *from, size_t length,
                                       ^~~~~
external/external_libs/mysql/my_sys.h:1079:64: error: expected primary-expression before 'length'
                                       const char *from, size_t length,
                                                                ^~~~~~
external/external_libs/mysql/my_sys.h:1080:47: error: expected primary-expression before '*' token
                                       my_bool *overflow);
                                               ^
external/external_libs/mysql/my_sys.h:1080:48: error: 'overflow' was not declared in this scope
                                       my_bool *overflow);
                                                ^~~~~~~~
external/external_libs/mysql/my_sys.h:1080:48: note: suggested alternative: 'erfl'
                                       my_bool *overflow);
                                                ^~~~~~~~
                                                erfl
external/external_libs/mysql/my_sys.h:1080:56: error: expression list treated as compound expression in initializer [-fpermissive]
                                       my_bool *overflow);
                                                        ^
external/external_libs/mysql/my_sys.h:1103:1: error: 'C_MODE_END' does not name a type; did you mean 'COM_END'?
 C_MODE_END
 ^~~~~~~~~~
 COM_END
In file included from external/external_libs/mysql/private/violite.h:26,
                 from mysql_server_connection.cc:27:
/usr/include/mysql/psi/mysql_socket.h:115:22: error: return type 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'} is incomplete
 mysql_socket_invalid()
                      ^
/usr/include/mysql/psi/mysql_socket.h: In function 'void mysql_socket_invalid()':
/usr/include/mysql/psi/mysql_socket.h:117:16: error: variable 'MYSQL_SOCKET mysql_socket' has initializer but incomplete type
   MYSQL_SOCKET mysql_socket= {INVALID_SOCKET, 0, 0, 0, NULL};
                ^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:117:31: error: 'INVALID_SOCKET' was not declared in this scope
   MYSQL_SOCKET mysql_socket= {INVALID_SOCKET, 0, 0, 0, NULL};
                               ^~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:117:31: note: suggested alternative: 'MYSQL_SOCKET'
   MYSQL_SOCKET mysql_socket= {INVALID_SOCKET, 0, 0, 0, NULL};
                               ^~~~~~~~~~~~~~
                               MYSQL_SOCKET
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:135:16: error: 'socket' has incomplete type
   MYSQL_SOCKET socket __attribute__ ((unused)),
   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:156:14: error: 'socket' has incomplete type
 MYSQL_SOCKET socket __attribute__ ((unused))
 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:172:33: error: 'mysql_socket' has incomplete type
 mysql_socket_getfd(MYSQL_SOCKET mysql_socket)
                    ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: In function 'void mysql_socket_setfd(MYSQL_SOCKET*, my_socket)':
/usr/include/mysql/psi/mysql_socket.h:186:7: error: 'likely' was not declared in this scope
   if (likely(mysql_socket != NULL))
       ^~~~~~
/usr/include/mysql/psi/mysql_socket.h:187:17: error: invalid use of incomplete type 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
     mysql_socket->fd= fd;
                 ^~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:605:9: error: return type 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'} is incomplete
   int fd)
         ^
/usr/include/mysql/psi/mysql_socket.h: In function 'void inline_mysql_socket_fd(int)':
/usr/include/mysql/psi/mysql_socket.h:607:16: error: variable 'MYSQL_SOCKET mysql_socket' has initializer but incomplete type
   MYSQL_SOCKET mysql_socket= MYSQL_INVALID_SOCKET;
                ^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:610:34: error: 'INVALID_SOCKET' was not declared in this scope
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
                                  ^~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:610:34: note: suggested alternative: 'MYSQL_SOCKET'
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
                                  ^~~~~~~~~~~~~~
                                  MYSQL_SOCKET
/usr/include/mysql/psi/mysql_socket.h:610:3: error: 'DBUG_ASSERT' was not declared in this scope
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
   ^~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:610:3: note: suggested alternative: 'ABSL_ASSERT'
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
   ^~~~~~~~~~~
   ABSL_ASSERT
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:638:37: error: return type 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'} is incomplete
   int domain, int type, int protocol)
                                     ^
/usr/include/mysql/psi/mysql_socket.h: In function 'void inline_mysql_socket_socket(int, int, int)':
/usr/include/mysql/psi/mysql_socket.h:640:16: error: variable 'MYSQL_SOCKET mysql_socket' has initializer but incomplete type
   MYSQL_SOCKET mysql_socket= MYSQL_INVALID_SOCKET;
                ^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:667:16: error: 'mysql_socket' has incomplete type
   MYSQL_SOCKET mysql_socket, const struct sockaddr *addr, size_t len)
   ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:707:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, struct sockaddr *addr, socklen_t *len)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:745:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, const struct sockaddr *addr, socklen_t len)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:783:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, struct sockaddr *addr, socklen_t *len)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:821:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, const SOCKBUF_T *buf, size_t n, int flags)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: In function 'ssize_t inline_mysql_socket_send(MYSQL_SOCKET, const void*, size_t, int)':
/usr/include/mysql/psi/mysql_socket.h:824:34: error: 'INVALID_SOCKET' was not declared in this scope
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
                                  ^~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:824:34: note: suggested alternative: 'MYSQL_SOCKET'
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
                                  ^~~~~~~~~~~~~~
                                  MYSQL_SOCKET
/usr/include/mysql/psi/mysql_socket.h:824:3: error: 'DBUG_ASSERT' was not declared in this scope
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
   ^~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:824:3: note: suggested alternative: 'ABSL_ASSERT'
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
   ^~~~~~~~~~~
   ABSL_ASSERT
/usr/include/mysql/psi/mysql_socket.h:849:46: error: expected primary-expression before 'int'
   result= send(mysql_socket.fd, buf, IF_WIN((int),) n, flags);
                                              ^~~
/usr/include/mysql/psi/mysql_socket.h:849:46: error: expected ')' before 'int'
   result= send(mysql_socket.fd, buf, IF_WIN((int),) n, flags);
                                             ~^~~
                                              )
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:862:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket,  SOCKBUF_T *buf, size_t n, int flags)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: In function 'ssize_t inline_mysql_socket_recv(MYSQL_SOCKET, void*, size_t, int)':
/usr/include/mysql/psi/mysql_socket.h:865:34: error: 'INVALID_SOCKET' was not declared in this scope
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
                                  ^~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:865:34: note: suggested alternative: 'MYSQL_SOCKET'
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
                                  ^~~~~~~~~~~~~~
                                  MYSQL_SOCKET
/usr/include/mysql/psi/mysql_socket.h:865:3: error: 'DBUG_ASSERT' was not declared in this scope
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
   ^~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:865:3: note: suggested alternative: 'ABSL_ASSERT'
   DBUG_ASSERT(mysql_socket.fd != INVALID_SOCKET);
   ^~~~~~~~~~~
   ABSL_ASSERT
/usr/include/mysql/psi/mysql_socket.h:890:46: error: expected primary-expression before 'int'
   result= recv(mysql_socket.fd, buf, IF_WIN((int),) n, flags);
                                              ^~~
/usr/include/mysql/psi/mysql_socket.h:890:46: error: expected ')' before 'int'
   result= recv(mysql_socket.fd, buf, IF_WIN((int),) n, flags);
                                             ~^~~
                                              )
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:903:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, const SOCKBUF_T *buf, size_t n, int flags, const struct sockaddr *addr, socklen_t addr_len)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: In function 'ssize_t inline_mysql_socket_sendto(MYSQL_SOCKET, const void*, size_t, int, const sockaddr*, socklen_t)':
/usr/include/mysql/psi/mysql_socket.h:931:48: error: expected primary-expression before 'int'
   result= sendto(mysql_socket.fd, buf, IF_WIN((int),) n, flags, addr, addr_len);
                                                ^~~
/usr/include/mysql/psi/mysql_socket.h:931:48: error: expected ')' before 'int'
   result= sendto(mysql_socket.fd, buf, IF_WIN((int),) n, flags, addr, addr_len);
                                               ~^~~
                                                )
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:944:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, SOCKBUF_T *buf, size_t n, int flags,
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: In function 'ssize_t inline_mysql_socket_recvfrom(MYSQL_SOCKET, void*, size_t, int, sockaddr*, socklen_t*)':
/usr/include/mysql/psi/mysql_socket.h:973:50: error: expected primary-expression before 'int'
   result= recvfrom(mysql_socket.fd, buf, IF_WIN((int),) n, flags, addr, addr_len);
                                                  ^~~
/usr/include/mysql/psi/mysql_socket.h:973:50: error: expected ')' before 'int'
   result= recvfrom(mysql_socket.fd, buf, IF_WIN((int),) n, flags, addr, addr_len);
                                                 ~^~~
                                                  )
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:986:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, int level, int optname, SOCKBUF_T *optval, socklen_t *optlen)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:1024:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, int level, int optname, const SOCKBUF_T *optval,
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: In function 'int set_socket_nonblock(my_socket)':
/usr/include/mysql/psi/mysql_socket.h:1068:25: error: 'F_GETFL' was not declared in this scope
     fd_flags= fcntl(fd, F_GETFL, 0);
                         ^~~~~~~
/usr/include/mysql/psi/mysql_socket.h:1068:15: error: 'fcntl' was not declared in this scope
     fd_flags= fcntl(fd, F_GETFL, 0);
               ^~~~~
/usr/include/mysql/psi/mysql_socket.h:1068:15: note: suggested alternative: 'fcvt'
     fd_flags= fcntl(fd, F_GETFL, 0);
               ^~~~~
               fcvt
/usr/include/mysql/psi/mysql_socket.h:1080:19: error: 'F_SETFL' was not declared in this scope
     if (fcntl(fd, F_SETFL, fd_flags) == -1)
                   ^~~~~~~
/usr/include/mysql/psi/mysql_socket.h:1080:19: note: suggested alternative: 'FD_SET'
     if (fcntl(fd, F_SETFL, fd_flags) == -1)
                   ^~~~~~~
                   FD_SET
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:1095:16: error: 'mysql_socket' has incomplete type
   MYSQL_SOCKET mysql_socket
   ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:1135:15: error: 'mysql_socket' has incomplete type
  MYSQL_SOCKET mysql_socket, int backlog)
  ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:1173:16: error: 'socket_listen' has incomplete type
   MYSQL_SOCKET socket_listen, struct sockaddr *addr, socklen_t *addr_len)
   ~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:1173:73: error: return type 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'} is incomplete
   MYSQL_SOCKET socket_listen, struct sockaddr *addr, socklen_t *addr_len)
                                                                         ^
/usr/include/mysql/psi/mysql_socket.h: In function 'void inline_mysql_socket_accept(MYSQL_SOCKET, sockaddr*, socklen_t*)':
/usr/include/mysql/psi/mysql_socket.h:1179:16: error: aggregate 'MYSQL_SOCKET socket_accept' has incomplete type and cannot be defined
   MYSQL_SOCKET socket_accept;
                ^~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:1254:16: error: 'mysql_socket' has incomplete type
   MYSQL_SOCKET mysql_socket)
   ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h: In function 'int inline_mysql_socket_close(MYSQL_SOCKET)':
/usr/include/mysql/psi/mysql_socket.h:1282:11: error: 'closesocket' was not declared in this scope
   result= closesocket(mysql_socket.fd);
           ^~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:1282:11: note: suggested alternative: 'PSI_socket'
   result= closesocket(mysql_socket.fd);
           ^~~~~~~~~~~
           PSI_socket
/usr/include/mysql/psi/mysql_socket.h: At global scope:
/usr/include/mysql/psi/mysql_socket.h:1295:16: error: 'mysql_socket' has incomplete type
   MYSQL_SOCKET mysql_socket, int how)
   ~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
In file included from mysql_server_connection.cc:27:
external/external_libs/mysql/private/violite.h:87:27: error: 'uchar' has not been declared
 size_t vio_read(Vio *vio, uchar * buf, size_t size);
                           ^~~~~
external/external_libs/mysql/private/violite.h:88:33: error: 'uchar' has not been declared
 size_t  vio_read_buff(Vio *vio, uchar * buf, size_t size);
                                 ^~~~~
external/external_libs/mysql/private/violite.h:89:34: error: 'uchar' does not name a type; did you mean 'u_char'?
 size_t vio_write(Vio *vio, const uchar * buf, size_t size);
                                  ^~~~~
                                  u_char
external/external_libs/mysql/private/violite.h:111:44: error: 'uint16' has not been declared
 my_bool vio_peer_addr(Vio *vio, char *buf, uint16 *port, size_t buflen);
                                            ^~~~~~
external/external_libs/mysql/private/violite.h:241:17: error: field 'mysql_socket' has incomplete type 'MYSQL_SOCKET' {aka 'st_mysql_socket'}
   MYSQL_SOCKET  mysql_socket;     /* Instrumented socket */
                 ^~~~~~~~~~~~
In file included from external/external_libs/mysql/private/violite.h:26,
                 from mysql_server_connection.cc:27:
/usr/include/mysql/psi/mysql_socket.h:99:16: note: forward declaration of 'MYSQL_SOCKET' {aka 'struct st_mysql_socket'}
 typedef struct st_mysql_socket MYSQL_SOCKET;
                ^~~~~~~~~~~~~~~
In file included from mysql_server_connection.cc:27:
external/external_libs/mysql/private/violite.h:257:25: error: 'uchar' has not been declared
   size_t  (*read)(Vio*, uchar *, size_t);
                         ^~~~~
external/external_libs/mysql/private/violite.h:258:32: error: 'uchar' does not name a type; did you mean 'u_char'?
   size_t  (*write)(Vio*, const uchar *, size_t);
                                ^~~~~
                                u_char
external/external_libs/mysql/private/violite.h:264:38: error: 'uint16' has not been declared
   my_bool (*peer_addr)(Vio*, char *, uint16*, size_t);
                                      ^~~~~~
mysql_server_connection.cc:35:36: error: 'uint16' has not been declared
                                    uint16 port)
                                    ^~~~~~
mysql_server_connection.cc:34:1: error: no declaration matches 'mysql_ripple::mysql::ServerConnection::ServerConnection(MYSQL*, std::__cxx11::string, int)'
 ServerConnection::ServerConnection(MYSQL *mysql, std::string address,
 ^~~~~~~~~~~~~~~~
In file included from mysql_server_connection.cc:15:
mysql_server_connection.h:39:7: note: candidates are: 'mysql_ripple::mysql::ServerConnection::ServerConnection(const mysql_ripple::mysql::ServerConnection&)'
 class ServerConnection : public Connection {
       ^~~~~~~~~~~~~~~~
mysql_server_connection.h:87:3: note:                 'mysql_ripple::mysql::ServerConnection::ServerConnection(MYSQL*, std::__cxx11::string, uint16_t)'
   ServerConnection(MYSQL *mysql, std::string address, uint16_t port);
   ^~~~~~~~~~~~~~~~
mysql_server_connection.h:39:7: note: 'class mysql_ripple::mysql::ServerConnection' defined here
 class ServerConnection : public Connection {
       ^~~~~~~~~~~~~~~~
In file included from mysql_server_connection.cc:27:
mysql_server_connection.cc: In static member function 'static mysql_ripple::mysql::ServerConnection* mysql_ripple::mysql::ServerConnection::Accept(Vio*)':
mysql_server_connection.cc:120:3: error: cannot convert 'uint16_t*' {aka 'short unsigned int*'} to 'int*' in argument passing
   vio_peer_addr(vio, address, &port, sizeof(address));
   ^~~~~~~~~~~~~
MariaDB 10.6

Is the version too new?

vczyh commented 3 years ago

Chang MariaDB to 10.2.40, errors disappeared.

Another error:

-> # bazel build :all
INFO: Analyzed 50 targets (1 packages loaded, 54 targets configured).
INFO: Found 50 targets...
ERROR: /root/mysql-ripple/BUILD.bazel:29:10: Linking rippled failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/rippled-2.params

Use --sandbox_debug to see verbose messages from the sandbox
/usr/bin/ld: cannot find -l:/root/mysql-ripple/libmariadbclient.a
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 1.150s, Critical Path: 0.78s
INFO: 11 processes: 8 internal, 3 linux-sandbox.
FAILED: Build did NOT complete successfully
vczyh commented 3 years ago

I found libmariadbclient.a. Then add libmariadbclient.a to /usr/lib64. Edit external_libs.BUILD.bazel:

    linkopts = [
        "-lmariadbclient",
        "-ldl",
        "-lpthread",
        "-lz",
    ],

errros appear:

-> # bazel build :all
Starting local Bazel server and connecting to it...
... still trying to connect to local Bazel server after 10 seconds ...
INFO: Analyzed 50 targets (47 packages loaded, 1363 targets configured).
INFO: Found 50 targets...
ERROR: /root/mysql-ripple/BUILD.bazel:29:10: Linking rippled failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/rippled-2.params

Use --sandbox_debug to see verbose messages from the sandbox
bazel-out/k8-fastbuild/bin/libmysql_server_port_tcpip.a(mysql_server_port_tcpip.pic.o): In function `mysql_ripple::mysql::TcpIpServerPort::Accept()':
mysql_server_port_tcpip.cc:(.text+0xc3e): undefined reference to `mysql_socket_vio_new'
bazel-out/k8-fastbuild/bin/libmysql_client_connection.a(mysql_client_connection.pic.o): In function `mysql_ripple::mysql::ClientConnection::ReadPacket()':
mysql_client_connection.cc:(.text+0xf36): undefined reference to `cli_safe_read'
bazel-out/k8-fastbuild/bin/libmysql_client_connection.a(mysql_client_connection.pic.o): In function `mysql_ripple::mysql::ClientConnection::StartReplicationStreamMysql(mysql_ripple::GTIDList const&, bool)':
mysql_client_connection.cc:(.text+0x1a26): undefined reference to `cli_advanced_command'
bazel-out/k8-fastbuild/bin/libmysql_client_connection.a(mysql_client_connection.pic.o): In function `mysql_ripple::mysql::ClientConnection::StartReplicationStreamMariaDB(mysql_ripple::GTIDList const&, bool)':
mysql_client_connection.cc:(.text+0x25e5): undefined reference to `cli_advanced_command'
bazel-out/k8-fastbuild/bin/libmysql_client_connection.a(mysql_client_connection.pic.o): In function `mysql_ripple::mysql::ClientConnection::WritePacket(mysql_ripple::Connection::Packet)':
mysql_client_connection.cc:(.text+0x28be): undefined reference to `my_net_write'
mysql_client_connection.cc:(.text+0x2937): undefined reference to `net_flush'
bazel-out/k8-fastbuild/bin/libmy_crypt.a(my_crypt_key_management.pic.o): In function `inline_mysql_rwlock_rdlock':
my_crypt_key_management.cc:(.text+0x23): undefined reference to `PSI_server'
my_crypt_key_management.cc:(.text+0x6e): undefined reference to `PSI_server'
bazel-out/k8-fastbuild/bin/libmy_crypt.a(my_crypt_key_management.pic.o): In function `inline_mysql_rwlock_unlock':
my_crypt_key_management.cc:(.text+0xbf): undefined reference to `PSI_server'
bazel-out/k8-fastbuild/bin/libmysql_init.a(mysql_init.pic.o): In function `mysql_ripple::mysql::ThreadInit()':
mysql_init.cc:(.text+0x40): undefined reference to `my_thread_init'
bazel-out/k8-fastbuild/bin/libmysql_init.a(mysql_init.pic.o): In function `mysql_ripple::mysql::ThreadDeinit()':
mysql_init.cc:(.text+0x60): undefined reference to `my_thread_end'
bazel-out/k8-fastbuild/bin/libmysql_server_connection.a(mysql_server_connection.pic.o): In function `mysql_ripple::mysql::ServerConnection::~ServerConnection()':
mysql_server_connection.cc:(.text+0xe0): undefined reference to `net_end'
bazel-out/k8-fastbuild/bin/libmysql_server_connection.a(mysql_server_connection.pic.o): In function `mysql_ripple::mysql::ServerConnection::ReadPacket()':
mysql_server_connection.cc:(.text+0x1de): undefined reference to `my_net_read_packet'
bazel-out/k8-fastbuild/bin/libmysql_server_connection.a(mysql_server_connection.pic.o): In function `mysql_ripple::mysql::ServerConnection::WritePacket(mysql_ripple::Connection::Packet)':
mysql_server_connection.cc:(.text+0x2a6): undefined reference to `my_net_write'
mysql_server_connection.cc:(.text+0x337): undefined reference to `net_flush'
bazel-out/k8-fastbuild/bin/libmysql_server_connection.a(mysql_server_connection.pic.o): In function `mysql_ripple::mysql::ServerConnection::Accept(st_vio*)':
mysql_server_connection.cc:(.text+0x492): undefined reference to `my_net_init'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0xc64): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0xcb2): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0xd29): undefined reference to `__mingw_vsprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x19ca): undefined reference to `__imp_getservbyname'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x19d9): undefined reference to `__imp_ntohs'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x1a8a): undefined reference to `__imp_InitOnceExecuteOnce'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x1abf): undefined reference to `__imp_InitOnceExecuteOnce'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x333a): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x3397): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x3ef2): undefined reference to `__imp__strnicmp'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x4352): undefined reference to `__imp__strnicmp'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x532d): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x5c2f): undefined reference to `__imp_GetCurrentThreadId'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x5c68): undefined reference to `__imp_GetCurrentProcessId'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x632b): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x685f): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_lib.c.obj):mariadb_lib.c:(.text+0x6ec7): undefined reference to `__imp__strnicmp'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_pvio.c.obj):ma_pvio.c:(.text+0x337): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_pvio.c.obj):ma_pvio.c:(.text+0x3c5): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_pvio.c.obj):ma_pvio.c:(.text+0x6c5): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_pvio.c.obj):ma_pvio.c:(.text+0x74e): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_init.c.obj):ma_init.c:(.text+0x13): undefined reference to `__imp_WSAStartup'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_init.c.obj):ma_init.c:(.text+0x42): undefined reference to `__imp_WSACleanup'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_init.c.obj):ma_init.c:(.text+0x86): undefined reference to `__imp_WSACleanup'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_stmt.c.obj):mariadb_stmt.c:(.text+0x84a): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_stmt.c.obj):mariadb_stmt.c:(.text+0x8d1): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_loaddata.c.obj):ma_loaddata.c:(.text+0x99): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_loaddata.c.obj):ma_loaddata.c:(.text+0x154): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_loaddata.c.obj):ma_loaddata.c:(.text+0x1c2): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x29): undefined reference to `__mingw_vsprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x11f): undefined reference to `__imp_isspace'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x22e): undefined reference to `__imp_isspace'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x7da): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x85b): undefined reference to `__mingw_strtod'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x8d7): undefined reference to `__imp_isspace'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0xd70): undefined reference to `__imp_isspace'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x114c): undefined reference to `__imp_isspace'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_stmt_codec.c.obj):ma_stmt_codec.c:(.text+0x1f4c): undefined reference to `___chkstk_ms'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0xa4): undefined reference to `__imp_FreeLibrary'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x1a4): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x1c8): undefined reference to `__imp_FreeLibrary'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x285): undefined reference to `__imp_DeleteCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x2e0): undefined reference to `__imp_EnterCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x33d): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x4d6): undefined reference to `__imp_EnterCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x54d): undefined reference to `__imp_LoadLibraryExA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x569): undefined reference to `__imp_GetProcAddress'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x5c9): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x5e4): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x6e3): undefined reference to `__imp_FreeLibrary'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x78a): undefined reference to `__imp_FreeLibrary'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x79d): undefined reference to `__imp_FreeLibrary'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x7cc): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x7f8): undefined reference to `__imp_FormatMessageA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x916): undefined reference to `__imp_FreeLibrary'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0x9c7): undefined reference to `__imp_InitializeCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0xa3f): undefined reference to `__imp_EnterCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_client_plugin.c.obj):ma_client_plugin.c:(.text+0xaeb): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_io.c.obj):ma_io.c:(.text+0xae): undefined reference to `__imp_MultiByteToWideChar'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_io.c.obj):ma_io.c:(.text+0x15d): undefined reference to `__imp__wfopen'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x3): undefined reference to `__imp__fileno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x57): undefined reference to `__imp__fileno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x67): undefined reference to `__imp__setmode'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x89): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xa6): undefined reference to `__imp___iob_func'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xc6): undefined reference to `__imp___iob_func'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xe3): undefined reference to `__imp___iob_func'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x104): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x341): undefined reference to `__imp__open'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x350): undefined reference to `__imp__read'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x357): undefined reference to `__imp__write'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x366): undefined reference to `__imp__lseek'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x36d): undefined reference to `__imp__close'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x3be): undefined reference to `__imp_InitializeCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x3cb): undefined reference to `__imp_EnterCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x3d7): undefined reference to `OPENSSL_init_ssl'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x429): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x469): undefined reference to `__imp_EnterCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x479): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x48c): undefined reference to `__imp_DeleteCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x4e8): undefined reference to `__imp_EnterCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x4ed): undefined reference to `TLS_client_method'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x4f5): undefined reference to `SSL_CTX_new'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x5c6): undefined reference to `SSL_CTX_set_options'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x612): undefined reference to `SSL_CTX_load_verify_locations'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x635): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x63f): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x661): undefined reference to `SSL_CTX_set_default_verify_paths'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x68b): undefined reference to `SSL_CTX_get_cert_store'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x6fe): undefined reference to `SSL_CTX_check_private_key'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x725): undefined reference to `SSL_CTX_set_verify'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x72d): undefined reference to `SSL_new'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x746): undefined reference to `SSL_set_ex_data'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x757): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x774): undefined reference to `SSL_CTX_set_ciphersuites'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x78b): undefined reference to `SSL_CTX_set_cipher_list'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x7c4): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x7ce): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x7d6): undefined reference to `SSL_free'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x7f9): undefined reference to `__imp_LeaveCriticalSection'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x89d): undefined reference to `SSL_CTX_use_PrivateKey'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x8f7): undefined reference to `SSL_CTX_use_certificate_chain_file'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x97e): undefined reference to `SSL_CTX_use_certificate_chain_file'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x9a9): undefined reference to `SSL_get_ex_data'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x9dc): undefined reference to `SSL_clear'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x9ee): undefined reference to `SSL_set_fd'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x9f6): undefined reference to `SSL_connect'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xa05): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xa17): undefined reference to `SSL_get_verify_result'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xa72): undefined reference to `SSL_get_verify_result'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xb44): undefined reference to `SSL_read'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xb73): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xbf4): undefined reference to `SSL_write'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xc23): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xc97): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xcc9): undefined reference to `SSL_read'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xd17): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xd49): undefined reference to `SSL_write'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xd91): undefined reference to `SSL_get_SSL_CTX'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xd9e): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xdb0): undefined reference to `SSL_set_quiet_shutdown'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xdb8): undefined reference to `SSL_shutdown'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xdcb): undefined reference to `SSL_free'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xe29): undefined reference to `SSL_get_ex_data'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xe45): undefined reference to `SSL_get_peer_certificate'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xf53): undefined reference to `SSL_get_current_cipher'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xf98): undefined reference to `SSL_get_ex_data'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xfa4): undefined reference to `SSL_get_peer_certificate'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0x1093): undefined reference to `SSL_version'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(openssl.c.obj):openssl.c:(.text+0xf5f): undefined reference to `SSL_CIPHER_get_name'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_async.c.obj):mariadb_async.c:(.text+0x7df): undefined reference to `__imp_connect'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_async.c.obj):mariadb_async.c:(.text+0x802): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_async.c.obj):mariadb_async.c:(.text+0x882): undefined reference to `__imp_getsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(mariadb_async.c.obj):mariadb_async.c:(.text+0x898): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x9): undefined reference to `__imp_SwitchToFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x41): undefined reference to `__imp_SwitchToFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x8e): undefined reference to `__imp_CreateFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0xc3): undefined reference to `__imp_DeleteFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0xf1): undefined reference to `__imp_IsThreadAFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x10c): undefined reference to `__imp_SwitchToFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x125): undefined reference to `__imp_ConvertThreadToFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x13a): undefined reference to `__imp_IsThreadAFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x155): undefined reference to `__imp_SwitchToFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_context.c.obj):ma_context.c:(.text+0x167): undefined reference to `__imp_ConvertThreadToFiber'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(my_auth.c.obj):my_auth.c:(.text+0x3c4): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(my_auth.c.obj):my_auth.c:(.text+0x657): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(my_auth.c.obj):my_auth.c:(.text+0x812): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(my_auth.c.obj):my_auth.c:(.text+0xca7): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(dialog.c.obj):dialog.c:(.text+0x12b): undefined reference to `__imp_GetModuleHandleA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(dialog.c.obj):dialog.c:(.text+0x13b): undefined reference to `__imp_GetProcAddress'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(dialog.c.obj):dialog.c:(.text+0x1b0): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(dialog.c.obj):dialog.c:(.text+0x1cd): undefined reference to `__imp___iob_func'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0x20): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0x50): undefined reference to `__imp___iob_func'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0x97): undefined reference to `__imp_CreateFileA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0xb8): undefined reference to `__imp_GetConsoleMode'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0xc7): undefined reference to `__imp_SetConsoleMode'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0xee): undefined reference to `__imp__cputs'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0x10c): undefined reference to `__imp_ReadConsoleA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0x140): undefined reference to `__imp__cputs'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(get_password.c.obj):get_password.c:(.text+0x16f): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x1b2): undefined reference to `__imp_CryptStringToBinaryA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x1fb): undefined reference to `__imp_LocalAlloc'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x27b): undefined reference to `__imp_CryptDecodeObjectEx'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x28c): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x2aa): undefined reference to `__imp_CryptAcquireContextA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x2cc): undefined reference to `__imp_CryptImportPublicKeyInfo'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x2f6): undefined reference to `__imp_CryptGetKeyParam'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x3e6): undefined reference to `__imp_CryptEncrypt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x459): undefined reference to `__imp_CryptReleaseContext'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x469): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sha256_pw.c.obj):sha256_pw.c:(.text+0x52f): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(auth_gssapi_client.c.obj):auth_gssapi_client.c:(.text+0xd0): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sspi_client.c.obj):sspi_client.c:(.text+0xb2): undefined reference to `AcquireCredentialsHandleA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sspi_client.c.obj):sspi_client.c:(.text+0x1ef): undefined reference to `InitializeSecurityContextA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sspi_client.c.obj):sspi_client.c:(.text+0x25c): undefined reference to `__imp_DeleteSecurityContext'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sspi_client.c.obj):sspi_client.c:(.text+0x27b): undefined reference to `__imp_FreeCredentialsHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(sspi_errmsg.c.obj):sspi_errmsg.c:(.text+0x7a): undefined reference to `__imp_FormatMessageA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xeb): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x13b): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x19c): undefined reference to `__imp_select'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1b7): undefined reference to `__WSAFDIsSet'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x2ae): undefined reference to `__imp_select'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x2c8): undefined reference to `__WSAFDIsSet'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x2fb): undefined reference to `__imp_getsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x30a): undefined reference to `__imp_WSASetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x310): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x34c): undefined reference to `__imp_WSASetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x352): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x363): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x36c): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x3d2): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x3f2): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x442): undefined reference to `__imp_closesocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x48f): undefined reference to `__imp_shutdown'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x49a): undefined reference to `__imp_CancelIoEx'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x586): undefined reference to `__imp_select'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x5a0): undefined reference to `__WSAFDIsSet'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x5d3): undefined reference to `__imp_getsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x5e2): undefined reference to `__imp_WSASetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x5e8): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x61b): undefined reference to `__imp_WSASetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x621): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x632): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x63b): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x67a): undefined reference to `__imp_recv'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x681): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x7c5): undefined reference to `__imp_select'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x7df): undefined reference to `__WSAFDIsSet'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x812): undefined reference to `__imp_getsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x821): undefined reference to `__imp_WSASetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x827): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x85b): undefined reference to `__imp_WSASetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x861): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x872): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x87b): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x8ba): undefined reference to `__imp_send'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x8c1): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x950): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x9c4): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x9fd): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xa4e): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xa67): undefined reference to `__imp_recv'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xa82): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xade): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xaf7): undefined reference to `__imp_send'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xb12): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xb82): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xba8): undefined reference to `__imp_recv'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xbed): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xc24): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xc32): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xd43): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xd5b): undefined reference to `__imp_closesocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xdb7): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xe03): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xe67): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xf5c): undefined reference to `__imp_getaddrinfo'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0xf97): undefined reference to `__imp_Sleep'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1086): undefined reference to `__imp_Sleep'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1117): undefined reference to `__imp_freeaddrinfo'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1142): undefined reference to `__imp_socket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1156): undefined reference to `__imp_closesocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1184): undefined reference to `__imp_bind'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x11b4): undefined reference to `__imp_closesocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x11d8): undefined reference to `__imp_freeaddrinfo'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1233): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x12b8): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x12d8): undefined reference to `__imp_connect'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1346): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1372): undefined reference to `__imp_getaddrinfo'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x139a): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x140f): undefined reference to `__imp_ioctlsocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x144d): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x147f): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x14b2): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x14c5): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x14da): undefined reference to `__imp_closesocket'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x14ec): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x1500): undefined reference to `__imp_WSAGetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x155d): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_socket.c.obj):pvio_socket.c:(.text+0x158d): undefined reference to `__imp_setsockopt'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0xcd): undefined reference to `__imp_CancelIoEx'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x111): undefined reference to `__imp_ReadFile'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x12c): undefined reference to `__imp_GetOverlappedResult'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x149): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x160): undefined reference to `__imp_WaitForSingleObject'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x17e): undefined reference to `__imp_CancelIoEx'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x189): undefined reference to `__imp_SetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x1d0): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x1ed): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x242): undefined reference to `__imp_PeekNamedPipe'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x262): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x2b0): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x2f2): undefined reference to `__imp_LocalAlloc'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x329): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x3cf): undefined reference to `__imp_GetTickCount64'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x3e0): undefined reference to `__imp_CreateFileA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x403): undefined reference to `__imp_WaitNamedPipeA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x44c): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x45f): undefined reference to `__imp_Sleep'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x465): undefined reference to `__imp_GetTickCount64'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x513): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x52c): undefined reference to `__imp_CreateEventA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x549): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x577): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x601): undefined reference to `__imp_WriteFile'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x61c): undefined reference to `__imp_GetOverlappedResult'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x639): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x650): undefined reference to `__imp_WaitForSingleObject'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x66e): undefined reference to `__imp_CancelIoEx'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_npipe.c.obj):pvio_npipe.c:(.text+0x679): undefined reference to `__imp_SetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x10b): undefined reference to `__imp_SetEvent'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x143): undefined reference to `__imp_WaitForMultipleObjects'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x15e): undefined reference to `__imp_SetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x16b): undefined reference to `__imp_SetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x1f5): undefined reference to `__imp_WaitForMultipleObjects'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x210): undefined reference to `__imp_SetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x22a): undefined reference to `__imp_SetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x26c): undefined reference to `__imp_SetEvent'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x297): undefined reference to `__imp_SetEvent'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x2cb): undefined reference to `__imp_WaitForSingleObject'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x317): undefined reference to `__imp_SetEvent'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x321): undefined reference to `__imp_UnmapViewOfFile'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x32c): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x345): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x379): undefined reference to `__mingw_vsprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x3b5): undefined reference to `__imp_LocalAlloc'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x44f): undefined reference to `__imp_OpenEventA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x50c): undefined reference to `__imp_OpenFileMappingA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x54d): undefined reference to `__imp_MapViewOfFile'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x585): undefined reference to `__imp_SetEvent'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x5bc): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x645): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x66e): undefined reference to `__imp_UnmapViewOfFile'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x67d): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x686): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x6ab): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x6e1): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x757): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x773): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x7af): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x7bf): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x7e5): undefined reference to `__imp_WaitForSingleObject'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x82b): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x871): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x881): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x88a): undefined reference to `__imp_UnmapViewOfFile'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x90c): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x947): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x950): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x978): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x9b4): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0x9c4): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xac5): undefined reference to `__imp_CloseHandle'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xace): undefined reference to `__imp_LocalFree'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xaf3): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xb34): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xb91): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xbc8): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xc09): undefined reference to `__imp_GetLastError'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(pvio_shmem.c.obj):pvio_shmem.c:(.text+0xc40): more undefined references to `__imp_GetLastError' follow
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_charset.c.obj):ma_charset.c:(.text+0x6d0): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_charset.c.obj):ma_charset.c:(.text+0xc8e): undefined reference to `__imp_GetConsoleCP'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_charset.c.obj):ma_charset.c:(.text+0xcd2): undefined reference to `__imp__stricmp'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_charset.c.obj):ma_charset.c:(.text+0xd35): undefined reference to `__imp_GetACP'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_charset.c.obj):ma_charset.c:(.text+0xd61): undefined reference to `__imp__stricmp'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_hash.c.obj):ma_hash.c:(.text+0x61): undefined reference to `__imp_toupper'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_default.c.obj):ma_default.c:(.text+0x20): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_default.c.obj):ma_default.c:(.text+0x42): undefined reference to `___chkstk_ms'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_default.c.obj):ma_default.c:(.text+0x124): undefined reference to `__imp_isspace'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_default.c.obj):ma_default.c:(.text+0x7bc): undefined reference to `__imp_GetSystemWindowsDirectoryA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_default.c.obj):ma_default.c:(.text+0x899): undefined reference to `__imp_GetWindowsDirectoryA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_default.c.obj):ma_default.c:(.text+0xa4d): undefined reference to `__imp_GetModuleFileNameA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_default.c.obj):ma_default.c:(.text+0xa5e): undefined reference to `__imp_PathRemoveFileSpecA'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libmariadbclient.a(ma_password.c.obj):ma_password.c:(.text+0x20): undefined reference to `__mingw_vsprintf'
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 20.287s, Critical Path: 1.04s
INFO: 4 processes: 4 internal.
FAILED: Build did NOT complete successfully