• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling TFS 0.3.6 [8.54] Debian 6

Hernest

New Member
Joined
Jul 26, 2010
Messages
152
Reaction score
3
Location
poland
Hello, when write:
Code:
make

Distributed to:

Code:
Configure complete, now you may type 'make'.
 /bin/bash ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory `/root/forgottenserver/0.3.6'
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1   -o theforgottenserver actions.o admin.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 databasesqlite.o   depot.o exception.o fileloader.o game.o  globalevent.o group.o gui.o house.o housetile.o inputbox.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o playerbox.o player.o position.o protocol.o protocolgame.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1   -lsqlite3 -lmysqlclient -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lgmp  -lxml2
actions.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boost::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boost::system::get_posix_category()'
admin.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boost::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boost::system::get_posix_category()'
baseevents.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boost::system::get_posix_category()'
baseevents.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined references to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/root/forgottenserver/0.3.6'
make: *** [all] Error 2

How do fix this?
 
Its better:
LUA:
apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev libluajit-5.1-dev libcrypto++-dev

LUA:
cd /home/
chmod 777 -R server
cd /home/server/
./autogen.sh
./configure --enable-mysql
make -j 4

Edit folders... or use
LUA:
cd /home/
chmod 777 -R server
cd /home/server/
./autogen.sh
./configure --enable-mysql
./build.sh
 
Code:
apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev libluajit-5.1-dev libcrypto++-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libluajit-5.1-dev
E: Couldn't find any package by regex 'libluajit-5.1-dev'
;/
 
Ahh you only need remove
libluajit-5.1-dev

LUA:
apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev libcrypto++-dev
 
Code:
Configure complete, now you may type 'make'.
root@proserwer:~/forgottenserver/0.3.6# make -j 4
make  all-am
make[1]: Entering directory `/root/forgottenserver/0.3.6'
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THR                                        EAD_SAFE -D_REENTRANT -Wall -g -O1   -o theforgottenserver actions.o  allocator.                                        o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o c                                        ontainer.o creature.o creatureevent.o cylinder.o database.o databasemanager.o da                                        tabasemysql.o    depot.o exception.o fileloader.o game.o  globalevent.o group.o                                         gui.o house.o housetile.o inputbox.o ioban.o ioguild.o iologindata.o iomap.o iom                                        apserialize.o item.o itemattributes.o items.o luascript.o mailbox.o map.o md5.o                                         monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputm                                        essage.o party.o playerbox.o player.o position.o protocol.o protocolgame.o proto                                        collogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o serv                                        er.o sha1.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger                                        .o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1                                           -lmysqlclient -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -l                                        boost_regex-mt -lboost_thread-mt -lgmp  -lxml2
actions.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
baseevents.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
beds.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
beds.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined refere                                        nces to `boost::system::get_posix_category()' follow
database.o: In function `_Database::getInstance()':
/root/forgottenserver/0.3.6/database.cpp:57: undefined reference to `DatabaseSQL                                        ite::DatabaseSQLite()'
database.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
databasemanager.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
databasemysql.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
databasemysql.o:/usr/local/include/boost/system/error_code.hpp:175: more undefin                                        ed references to `boost::system::get_posix_category()' follow
otserv.o: In function `otserv(std::vector<std::basic_string<char, std::char_trai                                        ts<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::ch                                        ar_traits<char>, std::allocator<char> > > >, ServiceManager*)':
/root/forgottenserver/0.3.6/otserv.cpp:756: undefined reference to `g_admin'
/root/forgottenserver/0.3.6/otserv.cpp:757: undefined reference to `Admin::loadF                                        romXml()'
otserv.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
otserv.o: In function `ProtocolAdmin':
/root/forgottenserver/0.3.6/admin.h:193: undefined reference to `vtable for Prot                                        ocolAdmin'
/root/forgottenserver/0.3.6/admin.h:199: undefined reference to `ProtocolAdmin::                                        protocolAdminCount'
outfit.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
outputmessage.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
party.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
party.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined refer                                        ences to `boost::system::get_posix_category()' follow
talkaction.o: In function `TalkAction::diagnostics(Creature*, std::basic_string<                                        char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<c                                        har, std::char_traits<char>, std::allocator<char> > const&)':
/root/forgottenserver/0.3.6/talkaction.cpp:1089: undefined reference to `Protoco                                        lAdmin::protocolAdminCount'
tasks.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
teleport.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                        t::system::get_posix_category()'
textlogger.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                        t::system::get_posix_category()'
textlogger.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined                                         references to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/root/forgottenserver/0.3.6'
make: *** [all] Error 2
hmm ?
 
I am not reliable until the end what it, I am green at these matters. Perhaps you have some good guide to in order to put ots on debian 6? TFS 0.3.6. Then I will do from the beginning and perhaps will came out well;)
I don't have ./build.sh
 
do:
Code:
cat /usr/include/boost/version.hpp
and paste the output in code tags. And try upgrading boost, since older versions seem to be buggy.
 
Back
Top