Jump to content
  • 0

[SOLVED][ONE] Stuck @ compile on Linux


baerloow

Question

Hi everyone,

i have a problem @ compiling

after the step cmake .. -DCMAKE_INSTALL_PREFIX=/opt/mangos-server

@ the "make" command

i get this error

collect2: ld returned 1 exit status
make[2]: *** [src/realmd/realmd] Error 1
make[1]: *** [src/realmd/CMakeFiles/realmd.dir/all] Error 2
make: *** [all] Error 2

i have no idea what to do now ...

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

heres the Error Mesage from Debugmode

collect2: ld returned 1 exit status
Reaping losing child 0x018700f0 PID 25095
make[2]: *** [src/realmd/realmd] Error 1
Removing child 0x018700f0 PID 25095 from chain.
Reaping losing child 0x00d340e0 PID 25093
make[1]: *** [src/realmd/CMakeFiles/realmd.dir/all] Error 2
Removing child 0x00d340e0 PID 25093 from chain.
Reaping losing child 0x01ec69a0 PID 25031
make: *** [all] Error 2
Removing child 0x01ec69a0 PID 25031 from chain.

if you need any specific logfile please say me the dircetory where it is

and yes i run the make in the same directory where i run the cmake command befor

Link to comment
Share on other sites

a okay i see what you want there are the lines above the error

 Pruning file `src/realmd/CMakeFiles/realmd.dir/build.make'.
 Finished prerequisites of target file `src/realmd/realmd'.
Must remake target `src/realmd/realmd'.
Putting child 0x0230c0f0 (src/realmd/realmd) PID 27752 on the chain.
Live child 0x0230c0f0 (src/realmd/realmd) PID 27752
Linking CXX executable realmd
Reaping winning child 0x0230c0f0 PID 27752
Live child 0x0230c0f0 (src/realmd/realmd) PID 27753
../shared/libshared.a(DatabaseMysql.cpp.o): In function `DatabaseMysql::ThreadStart()':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:32: undefined reference to `mysql_thread_init'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `DatabaseMysql::ThreadEnd()':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:37: undefined reference to `mysql_thread_end'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `DatabaseMysql':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:46: undefined reference to `mysql_server_init'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:48: undefined reference to `mysql_thread_safe'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `~DatabaseMysql':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:63: undefined reference to `mysql_server_end'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `~MySQLConnection':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:74: undefined reference to `mysql_close'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySQLConnection::Initialize(char const*)':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:79: undefined reference to `mysql_init'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:107: undefined reference to `mysql_options'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:125: undefined reference to `mysql_options'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:138: undefined reference to `mysql_real_connect'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:143: undefined reference to `mysql_error'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:144: undefined reference to `mysql_close'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:149: undefined reference to `mysql_get_client_info'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:150: undefined reference to `mysql_get_server_info'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:163: undefined reference to `mysql_autocommit'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySQLConnection::_Query(char const*, st_mysql_res**, st_mysql_field**, unsigned long*, unsigned int*)':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:184: undefined reference to `mysql_query'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:187: undefined reference to `mysql_error'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:195: undefined reference to `mysql_store_result'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:196: undefined reference to `mysql_affected_rows'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:197: undefined reference to `mysql_field_count'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:204: undefined reference to `mysql_free_result'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:208: undefined reference to `mysql_fetch_fields'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySQLConnection::Execute(char const*)':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:256: undefined reference to `mysql_query'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:259: undefined reference to `mysql_error'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySQLConnection::_TransactionCmd(char const*)':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:274: undefined reference to `mysql_query'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:277: undefined reference to `mysql_error'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySQLConnection::escape_string(char*, char const*, unsigned long)':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:307: undefined reference to `mysql_real_escape_string'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySqlPreparedStatement::prepare()':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:336: undefined reference to `mysql_stmt_init'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:344: undefined reference to `mysql_stmt_prepare'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:347: undefined reference to `mysql_stmt_error'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:352: undefined reference to `mysql_stmt_param_count'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:355: undefined reference to `mysql_stmt_result_metadata'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:360: undefined reference to `mysql_stmt_error'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:377: undefined reference to `mysql_num_fields'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySqlPreparedStatement::bind(SqlStmtParameters const&)':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:416: undefined reference to `mysql_stmt_bind_param'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:419: undefined reference to `mysql_stmt_error'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySqlPreparedStatement::RemoveBinds()':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:449: undefined reference to `mysql_free_result'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:450: undefined reference to `mysql_stmt_close'
../shared/libshared.a(DatabaseMysql.cpp.o): In function `MySqlPreparedStatement::execute()':
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:465: undefined reference to `mysql_stmt_execute'
/home/mangos/mangos/server/src/shared/Database/DatabaseMysql.cpp:468: undefined reference to `mysql_stmt_error'
../shared/libshared.a(QueryResultMysql.cpp.o): In function `QueryResultMysql::NextRow()':
/home/mangos/mangos/server/src/shared/Database/QueryResultMysql.cpp:46: undefined reference to `mysql_fetch_row'
../shared/libshared.a(QueryResultMysql.cpp.o): In function `QueryResultMysql::EndQuery()':
/home/mangos/mangos/server/src/shared/Database/QueryResultMysql.cpp:66: undefined reference to `mysql_free_result'
../shared/libshared.a(SqlDelayThread.cpp.o): In function `SqlDelayThread::run()':
/home/mangos/mangos/server/src/shared/Database/SqlDelayThread.cpp:36: undefined reference to `mysql_thread_init'
/home/mangos/mangos/server/src/shared/Database/SqlDelayThread.cpp:60: undefined reference to `mysql_thread_end'

and above of that a whole shitload of similar lines

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use