GET 24/7 LIVE HELP NOW

Announcement

Announcement Module
Collapse
No announcement yet.

cmake Percona-Server-5.5.34-rel32.0 Error

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • cmake Percona-Server-5.5.34-rel32.0 Error

    Error:
    [ 99%] Built target mysqlserver
    Scanning dependencies of target mysql_client_test_embedded
    [ 99%] Building C object libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/__/__/tests/mysql_client_test.c.o
    Linking CXX executable mysql_client_test_embedded
    ../libmysqld.a(lib_sql.cc.o): In function `clean_up':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:1576: undefined reference to `query_response_time_free()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:1578: undefined reference to `free_global_user_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:1579: undefined reference to `free_global_client_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:1580: undefined reference to `free_global_thread_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:1581: undefined reference to `free_global_table_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:1582: undefined reference to `free_global_index_stats()'
    ../libmysqld.a(lib_sql.cc.o): In function `init_server_components':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:4057: undefined reference to `query_response_time_init()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:4062: undefined reference to `init_global_table_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:4063: undefined reference to `init_global_index_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:4242: undefined reference to `init_global_user_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:4243: undefined reference to `init_global_client_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/libmysqld/../sql/mysqld.cc:4244: undefined reference to `init_global_thread_stats()'
    ../libmysqld.a(lib_sql.cc.o).data.rel+0x1c78): undefined reference to `utility_user_privileges_typelib'
    ../libmysqld.a(sql_show.cc.o): In function `fill_schema_processlist(THD*, TABLE_LIST*, Item*)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_show.cc:1953: undefined reference to `acl_is_utility_user(char const*, char const*, char const*)'
    ../libmysqld.a(sql_show.cc.o): In function `mysqld_list_processes(THD*, char const*, bool)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_show.cc:1844: undefined reference to `acl_is_utility_user(char const*, char const*, char const*)'
    ../libmysqld.a(sql_show.cc.o).data.rel+0x598): undefined reference to `query_response_time_fill(THD*, TABLE_LIST*, Item*)'
    ../libmysqld.a(set_var.cc.o): In function `set_var::check(THD*)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/set_var.cc:613: undefined reference to `acl_is_utility_user(char const*, char const*, char const*)'
    ../libmysqld.a(sql_prepare.cc.o): In function `mysqld_stmt_reset(THD*, char*)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_prepare.cc:3061: 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/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_prepare.cc:2748: undefined reference to `update_global_user_stats(THD*, bool, long)'
    ../libmysqld.a(sql_prepare.cc.o): In function `mysqld_stmt_prepare(THD*, char const*, unsigned int)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_prepare.cc:2291: 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/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_prepare.cc:2929: undefined reference to `update_global_user_stats(THD*, bool, long)'
    ../libmysqld.a(sql_parse.cc.o): In function `log_slow_statement(THD*)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_parse.cc:1584: undefined reference to `query_response_time_collect(unsigned long long)'
    ../libmysqld.a(sql_parse.cc.o): In function `mysql_parse(THD*, char*, unsigned int, Parser_state*)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_parse.cc:5992: undefined reference to `update_global_user_stats(THD*, bool, long)'
    ../libmysqld.a(sql_reload.cc.o): In function `reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, int*)':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:341: undefined reference to `free_global_index_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:342: undefined reference to `init_global_index_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:334: undefined reference to `free_global_table_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:335: undefined reference to `init_global_table_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:326: undefined reference to `query_response_time_flush()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:350: undefined reference to `free_global_user_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:351: undefined reference to `init_global_user_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:360: undefined reference to `free_global_thread_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:361: undefined reference to `init_global_thread_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:355: undefined reference to `free_global_client_stats()'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/sql/sql_reload.cc:356: undefined reference to `init_global_client_stats()'
    ../libmysqld.a(ha_innodb.cc.o): In function `innobase_copy_repl_coords_to_trx':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/storage/innobase/handler/ha_innodb.cc:3404: undefined reference to `active_mi'
    ../libmysqld.a(ha_innodb.cc.o): In function `innobase_init':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/storage/innobase/handler/ha_innodb.cc:2820: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/storage/innobase/handler/ha_innodb.cc:2820: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/storage/innobase/handler/ha_innodb.cc:2842: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/storage/innobase/handler/ha_innodb.cc:2842: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
    ../libmysqld.a(ha_innodb.cc.o): In function `innobase_copy_repl_coords_to_trx':
    /root/lnmp/src/Percona-Server-5.5.34-rel32.0/storage/innobase/handler/ha_innodb.cc:3404: undefined reference to `active_mi'
    collect2: ld returned 1 exit status
    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

  • #2
    Hi,

    It seems you are using embedded library which is not supported in Percona Server. Please try building with -DWITH_EMBEDDED_SERVER=OFF.
    If you can check below document which shows the procedure to build from source, provides following CMake invocation.

    $ cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF

    http://www.percona.com/doc/percona-s...source-tarball

    Check these links for more information.

    https://groups.google.com/forum/#!to...on/3_umqQ34hPs
    https://bugs.launchpad.net/percona-server/+bug/798050

    Comment

    Working...
    X