• 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!

Weird compiling error

swordman

Member
Joined
Jun 5, 2011
Messages
394
Reaction score
7
Anyone had this before compiling on debian 8?


PHP:
mv -f .deps/weapons.Tpo .deps/weapons.Po
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1  -O2 -fomit-frame-pointer -march=native -mtune=native -std=c++0x -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wno-strict-aliasing -pipe   -o theforgottenserver actions.o  allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o   depot.o dispatcher.o exception.o fileloader.o game.o  globalevent.o group.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o spectators.o -llua5.1  -lmysqlclient -lcryptopp -lboost_filesystem -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lz -lgmp  -lxml2
/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:455: recipe for target 'theforgottenserver' failed
 
I have replaced that line and compiled.
This is the next error:

PHP:
-llua5.1  -lmysqlclient -lcryptopp -lboost_filesystem -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lz -lgmp  -lxml2
/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:455: recipe for target 'theforgottenserver' failed
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory '/home/mark/Castsystem3858talaturenoptimizationV4_SPELLSanANTITRASH'
Makefile:397: recipe for target 'all' failed
make: *** [all] Error 2
 
then replace line:
Code:
LIBS = -lmysqlclient -lcryptopp -lboost_filesystem -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lz -lgmp -lxml2
with
Code:
LIBS = -lmysqlclient -lcryptopp -lboost_filesystem -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lz -lgmp -lxml2 -lpthread
 
I have replaced that whole line with the new one.
But still having this mate:

PHP:
extlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o spectators.o -llua5.1  -lmysqlclient -lcryptopp -lboost_filesystem -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lz -lgmp  -lxml2
/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:455: recipe for target 'theforgottenserver' failed
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory '/home/mark/Castsystem3858talaturenoptimizationV4_SPELLSanANTITRASH'
Makefile:397: recipe for target 'all' failed
make: *** [all] Error 2
 
are you sure you change makefile? I can see no difference bacause last statement in first line of your log is -lxml2

edit;
show me how you compile sources
 
Yes, I have changed the file. I can't upload to pastebin I exceeded upload times.
I upload at speedyshare. Check: http://www.speedy*****malware.localhost/4PS8m/Makefile
 
Oh holy, I think I know why it didnt apply. Everytime I TYPED MAKECLEAN. So these new line dissapeared aswell.
Im compiling now wihtout saying makeclean after it';s error
 
And there we go! It worked!
Thanks a lot mate. Are you up for some more work?
I will pay you for it. Tell me if you want to work with me.
 

Similar threads

Back
Top