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));
^~~~~~~~~~~~~