Description:
Hello,
I'm testing upgrade from MySQL 5 to MySQL 5.1 and to MySQL 5.5.2. everything is fine, but my C project cant compile fine.
I need say that with MySQL 5, and MySQL 5.4.3 compile without any problem.
When i try compile i have this result:
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::~DatabaseMysql()':
DatabaseMysql.cpp:(.text+0x385): undefined reference to `mysql_close'
DatabaseMysql.cpp:(.text+0x3a1): undefined reference to `mysql_server_end'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::~DatabaseMysql()':
DatabaseMysql.cpp:(.text+0x445): undefined reference to `mysql_close'
DatabaseMysql.cpp:(.text+0x461): undefined reference to `mysql_server_end'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::~DatabaseMysql()':
DatabaseMysql.cpp:(.text+0x515): undefined reference to `mysql_close'
DatabaseMysql.cpp:(.text+0x531): undefined reference to `mysql_server_end'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::_TransactionCmd(char const*)':
DatabaseMysql.cpp:(.text+0x584): undefined reference to `mysql_query'
DatabaseMysql.cpp:(.text+0x5b0): undefined reference to `mysql_error'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::DirectExecute(char const*)':
DatabaseMysql.cpp:(.text+0xba6): undefined reference to `mysql_query'
DatabaseMysql.cpp:(.text+0xbff): undefined reference to `mysql_error'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::_Query(char const*, st_mysql_res**, st_mysql_field**, unsigned long*, unsigned int*)':
DatabaseMysql.cpp:(.text+0xcb0): undefined reference to `mysql_query'
DatabaseMysql.cpp:(.text+0xcd7): undefined reference to `mysql_error'
DatabaseMysql.cpp:(.text+0xd3b): undefined reference to `mysql_store_result'
DatabaseMysql.cpp:(.text+0xd4a): undefined reference to `mysql_affected_rows'
DatabaseMysql.cpp:(.text+0xd5e): undefined reference to `mysql_field_count'
DatabaseMysql.cpp:(.text+0xd87): undefined reference to `mysql_fetch_fields'
DatabaseMysql.cpp:(.text+0xda8): undefined reference to `mysql_free_result'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::DatabaseMysql()':
DatabaseMysql.cpp:(.text+0xef2): undefined reference to `mysql_server_init'
DatabaseMysql.cpp:(.text+0xef7): undefined reference to `mysql_thread_safe'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::DatabaseMysql()':
DatabaseMysql.cpp:(.text+0xfb2): undefined reference to `mysql_server_init'
DatabaseMysql.cpp:(.text+0xfb7): undefined reference to `mysql_thread_safe'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::Initialize(char const*)':
DatabaseMysql.cpp:(.text+0x14a7): undefined reference to `mysql_init'
DatabaseMysql.cpp:(.text+0x1584): undefined reference to `mysql_options'
DatabaseMysql.cpp:(.text+0x15be): undefined reference to `mysql_options'
DatabaseMysql.cpp:(.text+0x1603): undefined reference to `mysql_real_connect'
DatabaseMysql.cpp:(.text+0x1635): undefined reference to `mysql_get_client_info'
DatabaseMysql.cpp:(.text+0x165c): undefined reference to `mysql_get_server_info'
DatabaseMysql.cpp:(.text+0x1688): undefined reference to `mysql_autocommit'
DatabaseMysql.cpp:(.text+0x1843): undefined reference to `mysql_error'
DatabaseMysql.cpp:(.text+0x186d): undefined reference to `mysql_close'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::escape_string(char*, char const*, unsigned long)':
DatabaseMysql.cpp:(.text+0x134): undefined reference to `mysql_real_escape_string'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::ThreadEnd()':
DatabaseMysql.cpp:(.text+0x141): undefined reference to `mysql_thread_end'
../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::ThreadStart()':
DatabaseMysql.cpp:(.text+0x151): undefined reference to `mysql_thread_init'
../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::EndQuery()':
QueryResultMysql.cpp:(.text+0xd3): undefined reference to `mysql_free_result'
../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::~QueryResultMysql()':
QueryResultMysql.cpp:(.text+0x507): undefined reference to `mysql_free_result'
../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::NextRow()':
QueryResultMysql.cpp:(.text+0x551): undefined reference to `mysql_fetch_row'
QueryResultMysql.cpp:(.text+0x5e0): undefined reference to `mysql_free_result'
../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::~QueryResultMysql()':
QueryResultMysql.cpp:(.text+0x657): undefined reference to `mysql_free_result'
../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::~QueryResultMysql()':
QueryResultMysql.cpp:(.text+0x6e7): undefined reference to `mysql_free_result'
../shared/Database/libmangosdatabase.a(SqlDelayThread.o): In function `SqlDelayThread::run()':
SqlDelayThread.cpp:(.text+0x16d): undefined reference to `mysql_thread_init'
SqlDelayThread.cpp:(.text+0x20a): undefined reference to `mysql_thread_end'
How to repeat:
When i have this data( I can compile )
libmysqlclient_r.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so.15
libmysqlclient_r.so.15 (libc6) => /usr/lib/mysql/libmysqlclient_r.so.15
libmysqlclient.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so.15
libmysqlclient.so.15 (libc6) => /usr/lib/mysql/libmysqlclient.so.15
When i have this data( I can't compile )
libmysqlclient_r.so.16 (libc6,x86-64) => /usr/lib64/libmysqlclient_r.so.16
libmysqlclient_r.so (libc6,x86-64) => /usr/lib64/libmysqlclient_r.so
libmysqlclient.so.16 (libc6,x86-64) => /usr/lib64/libmysqlclient.so.16
libmysqlclient.so (libc6,x86-64) => /usr/lib64/libmysqlclient.so
Description: Hello, I'm testing upgrade from MySQL 5 to MySQL 5.1 and to MySQL 5.5.2. everything is fine, but my C project cant compile fine. I need say that with MySQL 5, and MySQL 5.4.3 compile without any problem. When i try compile i have this result: ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::~DatabaseMysql()': DatabaseMysql.cpp:(.text+0x385): undefined reference to `mysql_close' DatabaseMysql.cpp:(.text+0x3a1): undefined reference to `mysql_server_end' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::~DatabaseMysql()': DatabaseMysql.cpp:(.text+0x445): undefined reference to `mysql_close' DatabaseMysql.cpp:(.text+0x461): undefined reference to `mysql_server_end' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::~DatabaseMysql()': DatabaseMysql.cpp:(.text+0x515): undefined reference to `mysql_close' DatabaseMysql.cpp:(.text+0x531): undefined reference to `mysql_server_end' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::_TransactionCmd(char const*)': DatabaseMysql.cpp:(.text+0x584): undefined reference to `mysql_query' DatabaseMysql.cpp:(.text+0x5b0): undefined reference to `mysql_error' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::DirectExecute(char const*)': DatabaseMysql.cpp:(.text+0xba6): undefined reference to `mysql_query' DatabaseMysql.cpp:(.text+0xbff): undefined reference to `mysql_error' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::_Query(char const*, st_mysql_res**, st_mysql_field**, unsigned long*, unsigned int*)': DatabaseMysql.cpp:(.text+0xcb0): undefined reference to `mysql_query' DatabaseMysql.cpp:(.text+0xcd7): undefined reference to `mysql_error' DatabaseMysql.cpp:(.text+0xd3b): undefined reference to `mysql_store_result' DatabaseMysql.cpp:(.text+0xd4a): undefined reference to `mysql_affected_rows' DatabaseMysql.cpp:(.text+0xd5e): undefined reference to `mysql_field_count' DatabaseMysql.cpp:(.text+0xd87): undefined reference to `mysql_fetch_fields' DatabaseMysql.cpp:(.text+0xda8): undefined reference to `mysql_free_result' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::DatabaseMysql()': DatabaseMysql.cpp:(.text+0xef2): undefined reference to `mysql_server_init' DatabaseMysql.cpp:(.text+0xef7): undefined reference to `mysql_thread_safe' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::DatabaseMysql()': DatabaseMysql.cpp:(.text+0xfb2): undefined reference to `mysql_server_init' DatabaseMysql.cpp:(.text+0xfb7): undefined reference to `mysql_thread_safe' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::Initialize(char const*)': DatabaseMysql.cpp:(.text+0x14a7): undefined reference to `mysql_init' DatabaseMysql.cpp:(.text+0x1584): undefined reference to `mysql_options' DatabaseMysql.cpp:(.text+0x15be): undefined reference to `mysql_options' DatabaseMysql.cpp:(.text+0x1603): undefined reference to `mysql_real_connect' DatabaseMysql.cpp:(.text+0x1635): undefined reference to `mysql_get_client_info' DatabaseMysql.cpp:(.text+0x165c): undefined reference to `mysql_get_server_info' DatabaseMysql.cpp:(.text+0x1688): undefined reference to `mysql_autocommit' DatabaseMysql.cpp:(.text+0x1843): undefined reference to `mysql_error' DatabaseMysql.cpp:(.text+0x186d): undefined reference to `mysql_close' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::escape_string(char*, char const*, unsigned long)': DatabaseMysql.cpp:(.text+0x134): undefined reference to `mysql_real_escape_string' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::ThreadEnd()': DatabaseMysql.cpp:(.text+0x141): undefined reference to `mysql_thread_end' ../shared/Database/libmangosdatabase.a(DatabaseMysql.o): In function `DatabaseMysql::ThreadStart()': DatabaseMysql.cpp:(.text+0x151): undefined reference to `mysql_thread_init' ../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::EndQuery()': QueryResultMysql.cpp:(.text+0xd3): undefined reference to `mysql_free_result' ../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::~QueryResultMysql()': QueryResultMysql.cpp:(.text+0x507): undefined reference to `mysql_free_result' ../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::NextRow()': QueryResultMysql.cpp:(.text+0x551): undefined reference to `mysql_fetch_row' QueryResultMysql.cpp:(.text+0x5e0): undefined reference to `mysql_free_result' ../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::~QueryResultMysql()': QueryResultMysql.cpp:(.text+0x657): undefined reference to `mysql_free_result' ../shared/Database/libmangosdatabase.a(QueryResultMysql.o): In function `QueryResultMysql::~QueryResultMysql()': QueryResultMysql.cpp:(.text+0x6e7): undefined reference to `mysql_free_result' ../shared/Database/libmangosdatabase.a(SqlDelayThread.o): In function `SqlDelayThread::run()': SqlDelayThread.cpp:(.text+0x16d): undefined reference to `mysql_thread_init' SqlDelayThread.cpp:(.text+0x20a): undefined reference to `mysql_thread_end' How to repeat: When i have this data( I can compile ) libmysqlclient_r.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so.15 libmysqlclient_r.so.15 (libc6) => /usr/lib/mysql/libmysqlclient_r.so.15 libmysqlclient.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so.15 libmysqlclient.so.15 (libc6) => /usr/lib/mysql/libmysqlclient.so.15 When i have this data( I can't compile ) libmysqlclient_r.so.16 (libc6,x86-64) => /usr/lib64/libmysqlclient_r.so.16 libmysqlclient_r.so (libc6,x86-64) => /usr/lib64/libmysqlclient_r.so libmysqlclient.so.16 (libc6,x86-64) => /usr/lib64/libmysqlclient.so.16 libmysqlclient.so (libc6,x86-64) => /usr/lib64/libmysqlclient.so