HandlerSocket is a NoSQL plugin for MySQL, working as a daemon inside the mysqld process, to accept tcp connections, and execute requests from clients. HandlerSocket does not support SQL queries; instead it supports simple CRUD operations on tables.
Other
1.13k
stars
150
forks
source link
HandlerSocket fails to build with debug server flags #102
If HS is placed to plugin/ directory of the server tree and the server is configured with -DWITH_DEBUG=ON, the build will fail with a sequence of errors, the first one being
06:18:36 cc1plus: warnings being treated as errors
06:18:36 In file included from /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/socket.hpp:15,
06:18:36 from /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/hstcpcli.hpp:19,
06:18:36 from /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/hstcpcli.cpp:12:
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp: In member function ‘int dena::autoaddrinfo::resolve(const char, const char_, int, int, int, int)’:
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_flags’
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_family’
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_socktype’
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_protocol’
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_addrlen’
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_addr’
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_canonname’
06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_next’
06:18:36 make[2]: *\ [plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/CMakeFiles/hsclient.dir/hstcpcli.cpp.o] Error 1
If HS is placed to plugin/ directory of the server tree and the server is configured with -DWITH_DEBUG=ON, the build will fail with a sequence of errors, the first one being
06:18:36 cc1plus: warnings being treated as errors 06:18:36 In file included from /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/socket.hpp:15, 06:18:36 from /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/hstcpcli.hpp:19, 06:18:36 from /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/hstcpcli.cpp:12: 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp: In member function ‘int dena::autoaddrinfo::resolve(const char, const char_, int, int, int, int)’: 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_flags’ 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_family’ 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_socktype’ 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_protocol’ 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_addrlen’ 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_addr’ 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_canonname’ 06:18:36 /mnt/workspace/percona-server-5.6-param/BUILD_TYPE/debug/Host/ubuntu-lucid-64bit/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/auto_addrinfo.hpp:35: error: missing initializer for member ‘addrinfo::ai_next’ 06:18:36 make[2]: *\ [plugin/HandlerSocket-Plugin-for-MySQL/libhsclient/CMakeFiles/hsclient.dir/hstcpcli.cpp.o] Error 1
This was reported as https://bugs.launchpad.net/percona-server/+bug/1323014. The fix patch is available at https://code.launchpad.net/~laurynas-biveinis/percona-server/bug1323014/+merge/220927