DeNA / HandlerSocket-Plugin-for-MySQL

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

Can't compile HandlerSocket with MySQL 5.5.11 #48

Open kutovoy opened 13 years ago

kutovoy commented 13 years ago

I guess it's related to: https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/issues/37

I have an issue with mysql 5.5.11 ( which is using cmake now ) and HandlerSocket-0883316.

Mysql source folder doesn't contain configure.in file before/after I do:

cmake . make make install DESTDIR="/usr/local/mysql-5.5.11" (I added DESTDIR just to be 300% sure that it will install it in a separate dir)

configure.in file does not exist at all :( I guess mysql use a new building system and this file no longer exist:

... ... checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking mysql source... cat: /root/src/mysql-5.5.11/configure.in: No such file or directory yes: Using /root/src/mysql-5.5.11, version checking mysql binary... yes: Using /usr/local/mysql-5.5.11/usr/local/mysql/bin, version 5.5.11 basename: invalid option -- 'L' Try `basename --help' for more information. configure: error: MySQL source version does not match MySQL binary version

tserver ahiguti-HandlerSocket-Plugin-for-MySQL-0883316 # ./configure --with-mysql-source=/root/src/mysql-5.5.11 --with-mysql-bindir=/usr/local/mysql-5.5.11/usr/local/mysql/bin

akalend commented 13 years ago

can't compile with 5.6.2

kutovoy commented 13 years ago

More info about my box:

tserver ahiguti-HandlerSocket-Plugin-for-MySQL-0883316 # ls /root/src/mysql-5.5.11
BUILD COPYING INSTALL-SOURCE VERSION.dep config.h.cmake info_macros.cmake make_dist.cmake plugin sql-common unittest BUILD-CMAKE CPackConfig.cmake INSTALL-WIN-SOURCE client configure.cmake install_manifest.txt man regex storage vio CMakeCache.txt CPackSourceConfig.cmake Makefile cmake dbug libmysql mysql-test scripts strings win CMakeFiles CTestTestfile.cmake README cmake_install.cmake extra libmysqld mysys sql support-files zlib CMakeLists.txt Docs VERSION cmd-line-utils include libservices packaging sql-bench tests

tserver ahiguti-HandlerSocket-Plugin-for-MySQL-0883316 # ls /usr/local/mysql-5.5.11/ usr

tserver ahiguti-HandlerSocket-Plugin-for-MySQL-0883316 # ls /usr/local/mysql-5.5.11/usr/local/mysql
COPYING INSTALL-BINARY README bin data docs include lib man mysql-test scripts share sql-bench support-files

tserver ahiguti-HandlerSocket-Plugin-for-MySQL-0883316 # /usr/local/mysql-5.5.11/usr/local/mysql/bin/my my_print_defaults mysql_client_test mysql_setpermission mysqlaccess.conf mysqld_multi mysqlshow myisam_ftdump mysql_config mysql_tzinfo_to_sql mysqladmin mysqld_safe mysqlslap myisamchk mysql_convert_table_format mysql_upgrade mysqlbinlog mysqldump mysqltest myisamlog mysql_find_rows mysql_waitpid mysqlbug mysqldumpslow
myisampack mysql_fix_extensions mysql_zap mysqlcheck mysqlhotcopy
mysql mysql_secure_installation mysqlaccess mysqld mysqlimport

tserver ahiguti-HandlerSocket-Plugin-for-MySQL-0883316 # /usr/local/mysql-5.5.11/usr/local/mysql/bin/mysql --help /usr/local/mysql-5.5.11/usr/local/mysql/bin/mysql Ver 14.14 Distrib 5.5.11, for Linux (i686) using EditLine wrapper Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

kutovoy commented 13 years ago

closed by a mistake... :)

akalend commented 12 years ago

can n't compile with 5.5.15

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/root/src/mysql/sql -I/root/src/mysql/include -I/root/src/mysql/regex -I/root/src/mysql -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -DDBUG_OFF -I../libhsclient -g -O2 -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC -MT handlersocket_la-database.lo -MD -MP -MF .deps/handlersocket_la-database.Tpo -c database.cpp -fPIC -DPIC -o .libs/handlersocket_la-database.o In file included from database.cpp:16: mysql_incl.hpp:19:23: error: my_config.h: No such file or directory mysql_incl.hpp:21:27: error: mysql_version.h: No such file or directory mysql_incl.hpp:43:24: error: mysqlpriv.h: No such file or directory database.cpp:99: error: ISO C++ forbids declaration of 'TABLE' with no type database.cpp:99: error: expected ';' before '' token database.cpp: In constructor 'dena::tablevec_entry::tablevec_entry()': database.cpp:102: error: class 'dena::tablevecentry' does not have any field named 'table' database.cpp: At global scope: database.cpp:106: error: expected `)' before '' token database.cpp:124: error: 'Item_string' does not name a type database.cpp:125: error: 'Item_int' does not name a type database.cpp:126: error: 'Item_func_get_lock' does not name a type database.cpp:127: error: 'Item_func_release_lock' does not name a type database.cpp: In member function 'long long int dena::expr_user_lock::get_lock()': database.cpp:118: error: 'lck_func_get_lock' was not declared in this scope database.cpp: In member function 'long long int dena::expr_user_lock::release_lock()': database.cpp:121: error: 'lck_func_release_lock' was not declared in this scope database.cpp: At global scope: database.cpp:150: error: 'TABLE' has not been declared database.cpp:157: error: 'ha_rkeyfunction' has not been declared database.cpp:158: error: 'TABLE' has not been declared database.cpp:160: error: 'TABLE' has not been declared database.cpp:161: error: 'uchar' has not been declared database.cpp:162: error: 'TABLE' has not been declared database.cpp:163: error: expected ',' or '...' before '' token database.cpp:163: error: ISO C++ forbids declaration of 'uchar' with no type database.cpp:164: error: 'TABLE' has not been declared database.cpp:165: error: 'TABLE' has not been declared database.cpp:166: error: 'TABLE' has not been declared database.cpp:176: error: ISO C++ forbids declaration of 'THD' with no type database.cpp:176: error: expected ';' before '_' token database.cpp:177: error: ISO C++ forbids declaration of 'MYSQLLOCK' with no type database.cpp:177: error: expected ';' before '' token database.cpp: In constructor 'dena::dbcontext::dbcontext(volatile dena::database_, bool)': database.cpp:222: error: class 'dena::dbcontext' does not have any field named 'thd' database.cpp:222: error: class 'dena::dbcontext' does not have any field named 'lock' database.cpp: At global scope: database.cpp:237: error: 'THD' was not declared in this scope database.cpp:237: error: 'thd' was not declared in this scope database.cpp:237: error: expected primary-expression before 'volatile' database.cpp:237: error: initializer expression list treated as compound expression database.cpp:238: error: expected ',' or ';' before '{' token database.cpp:1188: error: expected }' at end of input database.cpp:1188: error: expected}' at end of input database.cpp:237: warning: 'dena::::wait_server_to_start' defined but not used make[2]: * [handlersocket_la-database.lo] Error 1 make[2]: Leaving directory `/root/src/HandlerSocket2/handlersocket' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/root/src/HandlerSocket2' make: *\ [all] Error 2