MySQL compilation error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.