• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

libpthread.so.0

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
Whats is wrong??
Debian 5.0
TFS 0.3.6pl1

LIBS:
aptitude install libboost-date-time1.42-dev libboost-date-time1.42.0 libboost-filesystem1.42-dev libboost-filesystem1.42.0 libboost-iostreams1.42.0 libboost-regex1.42-dev libboost-regex1.42.0 libboost-serialization1.42-dev libboost-serialization1.42.0 libboost-system1.42-dev libboost-system1.42.0 libboost-thread1.42-dev libboost-thread1.42.0 libboost1.42-dev

ERROR:
/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_getspecific@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Błąd 1
make[1]: Opuszczenie katalogu `/home/otserv/sure'
make: *** [all] Błąd 2


LIBS:
aptitude install libboost-date-time1.46-dev libboost-date-time1.46.0 libboost-filesystem1.46-dev libboost-filesystem1.46.0 libboost-iostreams1.46.0 libboost-regex1.46-dev libboost-regex1.46.0 libboost-serialization1.46-dev libboost-serialization1.46.0 libboost-system1.46-dev libboost-system1.46.0 libboost-thread1.46-dev libboost-thread1.46.0 libboost1.46-dev

ERROR:
otserv.cpp: In function 'void signalHandler(int32_t)':
otserv.cpp:179:8: error: 'SIGHUP' was not declared in this scope
otserv.cpp:184:8: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:188:8: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:192:8: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:197:8: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:201:8: error: 'SIGCONT' was not declared in this scope
otserv.cpp:205:8: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:210:8: error: 'SIGTERM' was not declared in this scope
otserv.cpp: In function 'int main(int, char**)':
otserv.cpp:284:19: error: aggregate 'main(int, char**)::sigaction sigh' has incomplete type and cannot be defined
otserv.cpp:285:20: error: 'SIG_IGN' was not declared in this scope
otserv.cpp:287:27: error: 'sigemptyset' was not declared in this scope
otserv.cpp:288:12: error: 'SIGPIPE' was not declared in this scope
otserv.cpp:288:34: error: invalid use of incomplete type 'struct main(int, char**)::sigaction'
otserv.cpp:284:9: error: forward declaration of 'struct main(int, char**)::sigaction'
otserv.cpp:291:9: error: 'SIGHUP' was not declared in this scope
otserv.cpp:291:30: error: 'signal' was not declared in this scope
otserv.cpp:292:9: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:293:9: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:294:9: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:295:9: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:296:9: error: 'SIGCONT' was not declared in this scope
otserv.cpp:297:9: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:298:9: error: 'SIGTERM' was not declared in this scope
make[1]: *** [otserv.o] Błąd 1
make[1]: *** Oczekiwanie na niezakończone zadania....
scriptmanager.cpp: In member function 'bool ScriptingManager::loadMods()':
scriptmanager.cpp:122:23: error: 'class boost::filesystem3::directory_entry' has no member named 'leaf'
make[1]: *** [scriptmanager.o] Błąd 1
luascript.cpp: In member function 'bool LuaScriptInterface::loadDirectory(const std::string&, Npc*)':
luascript.cpp:719:23: error: 'class boost::filesystem3::directory_entry' has no member named 'leaf'
make[1]: *** [luascript.o] Błąd 1
make[1]: Opuszczenie katalogu `/home/otserv/sure'
make: *** [all] Błąd 2
 
-DBOOST_FILESYSTEM_VERSION=2

You appear to be compiling with Boost 1.46 so this flag will get rid of those "error: 'class boost::filesystem3::directory_entry' has no member named 'leaf'" errors.

or

change leaf() to path().filename().string() in the files that raise that error.

A brutish hack for the others would be to insert #include <signal.h> above the boost includes in otsystem.h
 
Last edited:
Code:
/usr/bin/ld: scheduler.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
 
Code:
/usr/bin/ld: scheduler.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line
/lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/var/BLWRO'
make: *** [all] Error 2

Fu-cking problems with compile .... 2 month's ago i dont have this problems !! ....
 
Back
Top