Hello, everyone.
I am getting an error during the "cmake" phase while trying to compile the latest stable release Percona-Server-5.5.12-rel20.3 from source under CentOS 5.6 64-bit with Intel® Composer XE 2011 for Linux (glibc-2.5-58.el5_6.2, icc 12.0.4). Here is the last lines with the error:
make[2]: *** [libmysqld/examples/mysql_client_test_embedded] Error 1
make[1]: *** [libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/all] Error 2
make: *** [all] Error 2
How can I fix that?
Thank you !
------------------------------------------------------------------------------
cmake \
-DCMAKE_C_COMPILER=/opt/intel/bin/icc \
-DCMAKE_CXX_COMPILER=/opt/intel/bin/icpc \
-DCMAKE_C_FLAGS="-xHost" \
-DCMAKE_CXX_FLAGS="-xHost" \
-DBUILD_CONFIG=mysql_release \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DMYSQL_UNIX_ADDR=/usr/local/mysql/log/mysql.sock
------------------------------------------------------------------------------
Here the last lines:
Scanning dependencies of target mysql_client_test_embedded
[100%] Building C object libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/__/__/tests/mysql_client_test.c.o
icc: command line remark #10010: option '-mp' is deprecated and will be removed in a future release. See '-help deprecated'
/root/src/Percona-Server-5.5.12-rel20.3/include/m_ctype.h(235): warning #1287: invalid attribute for field "snprintf"
...) ATTRIBUTE_FORMAT_FPTR(printf, 4, 5);
^
Linking CXX executable mysql_client_test_embedded
icpc: command line remark #10010: option '-mp' is deprecated and will be removed in a future release. See '-help deprecated'
../libmysqld.a(lib_sql.cc.o): In function `unireg_clear':
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:48: undefined reference to `query_response_time_free()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:48: undefined reference to `free_global_user_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:48: undefined reference to `free_global_client_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:48: undefined reference to `free_global_thread_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:48: undefined reference to `free_global_table_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:48: undefined reference to `free_global_index_stats()'
../libmysqld.a(lib_sql.cc.o): In function `end_embedded_server':
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:598: undefined reference to `query_response_time_free()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:598: undefined reference to `free_global_user_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:598: undefined reference to `free_global_client_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:598: undefined reference to `free_global_thread_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:598: undefined reference to `free_global_table_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:598: undefined reference to `free_global_index_stats()'
../libmysqld.a(lib_sql.cc.o): In function `init_embedded_server':
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:542: undefined reference to `query_response_time_init()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:542: undefined reference to `init_global_table_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:542: undefined reference to `init_global_index_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:542: undefined reference to `init_global_user_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:542: undefined reference to `init_global_client_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/libmysqld/lib_sql.cc:542: undefined reference to `init_global_thread_stats()'
../libmysqld.a(sql_parse.cc.o): In function `mysql_parse(THD*, char*, unsigned int, Parser_state*)':
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_parse.cc:5743: undefined reference to `update_global_user_stats(THD*, bool, long)'
../libmysqld.a(sql_parse.cc.o): In function `log_slow_statement(THD*)':
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_parse.cc:1552: undefined reference to `query_response_time_collect(unsigned long long)'
../libmysqld.a(sql_prepare.cc.o): In function `mysqld_stmt_prepare(THD*, char const*, unsigned int)':
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_prepare.cc:2273: undefined reference to `update_global_user_stats(THD*, bool, long)'
../libmysqld.a(sql_prepare.cc.o): In function `mysqld_stmt_execute(THD*, char*, unsigned int)':
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_prepare.cc:2713: undefined reference to `update_global_user_stats(THD*, bool, long)'
../libmysqld.a(sql_prepare.cc.o): In function `mysqld_stmt_fetch(THD*, char*, unsigned int)':
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_prepare.cc:2888: undefined reference to `update_global_user_stats(THD*, bool, long)'
../libmysqld.a(sql_prepare.cc.o): In function `mysqld_stmt_reset(THD*, char*)':
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_prepare.cc:3014: undefined reference to `update_global_user_stats(THD*, bool, long)'
../libmysqld.a(sql_show.cc.o):(.data+0x59b8): undefined reference to `query_response_time_fill(THD*, TABLE_LIST*, Item*)'
../libmysqld.a(sql_reload.cc.o): In function `reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, int*)':
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:300: undefined reference to `query_response_time_flush()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:334: undefined reference to `free_global_thread_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:335: undefined reference to `init_global_thread_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:329: undefined reference to `free_global_client_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:330: undefined reference to `init_global_client_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:324: undefined reference to `free_global_user_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:325: undefined reference to `init_global_user_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:315: undefined reference to `free_global_index_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:316: undefined reference to `init_global_index_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:308: undefined reference to `free_global_table_stats()'
/root/src/Percona-Server-5.5.12-rel20.3/sql/sql_reload.cc:309: undefined reference to `init_global_table_stats()'
../libmysqld.a(ha_innodb.cc.o): In function `innobase_drop_database(handlerton*, char*)':
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:7866: undefined reference to `active_mi'
../libmysqld.a(ha_innodb.cc.o): In function `innobase_commit_by_xid(handlerton*, xid_t*)':
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:10869: undefined reference to `active_mi'
../libmysqld.a(ha_innodb.cc.o): In function `ha_innobase::info_low(unsigned int, bool)':
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:8425: undefined reference to `active_mi'
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:8428: undefined reference to `active_mi'
../libmysqld.a(ha_innodb.cc.o): In function `innobase_commit(handlerton*, THD*, bool)':
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:3200: undefined reference to `active_mi'
../libmysqld.a(ha_innodb.cc.o):/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:8704: more undefined references to `active_mi' follow
../libmysqld.a(ha_innodb.cc.o): In function `innobase_init(void*)':
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:2510: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:2511: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:2525: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
/root/src/Percona-Server-5.5.12-rel20.3/storage/innobase/handler/ha_innodb.cc:2526: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
make[2]: *** [libmysqld/examples/mysql_client_test_embedded] Error 1
make[1]: *** [libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/all] Error 2
make: *** [all] Error 2
The errors are in embedded which is not supported in Percona Server. Please try building with -DWITH_ EMBEDDED_ SERVER= OFF