Error logging
[82%] Building C Object LIBMYSQL/CMAKEFILES/CLIENTLIB.DIR/__/SQL-COMMON/CLIENT.C.O
/usr/local/src/mysql-5.6.16/sql-common/client.c:1902:error: ' Cli_list_fields ' undeclare D here (not in a function)
/usr/local/src/mysql-5.6.16/sql-common/client.c:1903:error: ' Cli_read_prepare_result ' u ndeclared here (not in a Func tion)
/usr/local/src/mysql-5.6.16/sql-common/client.c:1904:error: ' Cli_stmt_execute ' undeclar ed here (not in a function)
/usr/local/src/mysql-5.6.16/sql-common/client.c:1905:error: ' cli_read_binary_rows ' unde clared here (not in a functio N
/usr/local/src/mysql-5.6.16/sql-common/client.c:1906:error: ' Cli_unbuffered_fetch ' unde clared here (not in a functio N
/usr/local/src/mysql-5.6.16/sql-common/client.c:1908:error: ' Cli_read_statistics ' Undec lared here (not in a function )
/usr/local/src/mysql-5.6.16/sql-common/client.c:in function ' Cli_read_query_result ':
/usr/local/src/mysql-5.6.16/sql-common/client.c:4113:warning:implicit declaration of F unction ' Handle_local_ InFile
MAKE[2]: * * * [LIBMYSQL/CMAKEFILES/CLIENTLIB.DIR/__/SQL-COMMON/CLIENT.C.O] Error 1
MAKE[1]: * * * [Libmysql/cmakefiles/clientlib.dir/all] Error 2
Make: * * * [ALL] Error 2
5.5 is compiled laterCMake, in general, in order to code concise, compiled directories are created separately, to avoid polluting the original code. This is done by attempting to create a new build subdirectory in the extracted code directory, then entering the build subdirectory and executing the following command to compile:
CMake .
Make
Problem solving
Workaround 2: Do not create a new directory, use cmake.
Then make
Problem solving.
This blog http://china.ygw.blog.163.com/blog/static/68719746201301593136684/is a great help.
Http://www.360doc.com/content/12/0507/10/9369336_209205930.shtml Some simple instructions on how to use CMake.
MySQL compilation error