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

Compiling [Linux] Ultimate compile guide for Debian (Ubuntu included)

Code:
root@sam:/tfs/server/source/trunk.r3671# apt-get install libcrypto++-dev libcrypto++8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libcrypto++-dev libcrypto++8
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,009kB of archives.
After this operation, 24.0MB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ lucid/universe libcrypto++8 5.6.0-5
  Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ lucid/universe libcrypto++-dev 5.6.0-5
  Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/libc/libcrypto++/libcrypto++8_5.6.0-5_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/libc/libcrypto++/libcrypto++-dev_5.6.0-5_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 
i tried to compile it but i failed
first i have a database error on sqlite and when i solved that i have another error with orserv.ccp
anyone can help me :) ?
 
Hello
When I try to compiling the server i get error
Code:
xxxxx:~/0.3.6pl1# make
make  all-am
make[1]: Entering directory `/root/0.3.6pl1'
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_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 container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.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   -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()'
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()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boost::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 `boost::system::get_posix_category()'
beds.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/0.3.6pl1'
make: *** [all] Error 2
xxxxx:~/0.3.6pl1#
Anyone can help me?
System Debian Linux 5.0
 
you didn't install boost correctly?
Hmm
Code:
apt-get install libboost1.42-dev libboost-system1.42-dev libboost-filesystem1.42-dev libboost-date-time1.42-dev libboost-regex1.42-dev libboost-thread1.42-dev
its correctly? :p
 
weapons.o vocation.o -llua5.1 -lmysqlclient -lboost_filesystem-mt -lboost_dat e_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:205: undefined reference to `boost::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:209: 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:205: undefined reference to `boost::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
beds.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
beds.o:/usr/local/include/boost/system/error_code.hpp:209: 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/tfs'
make: *** [all] Error 2

There was a few answers for this but none helped me... I use Debian Lenny 5.0. I have this problem since i bought the server which is about 2 days :D
 
first error :

root@ks309749:/home/trunk.r3777# ./build.sh
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 8 cores, using 9 processes
make: *** No targets specified and no makefile found. Stop.


error compiling rev 3777
PS: on every rev I try to compile I get same error.. can some1 help with this problem?



++ -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D_ _USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-a liasing -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 h ousetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itema ttributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o m ovement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o playe r.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocol old.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 trashhol der.o waitlist.o weapons.o vocation.o -llua5.1 -lmysqlclient -lcryptopp -lboos t_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_ thread-mt -lz -lgmp -lxml2
actions.o: In function `global constructors keyed to _ZN7ActionsC2Ev':
actions.cpp.text+0x2ff8): undefined reference to `boost::system::get_posix_cat egory()'
actions.cpp.text+0x3004): undefined reference to `boost::system::get_posix_cat egory()'
baseevents.o: In function `global constructors keyed to _ZN10BaseEvents11loadFro mXmlEv':
baseevents.cpp.text+0x1cc8): undefined reference to `boost::system::get_posix_ category()'
baseevents.cpp.text+0x1cd4): undefined reference to `boost::system::get_posix_ category()'
beds.o: In function `global constructors keyed to _ZN7BedItem8readAttrE11AttrTyp es_tR10PropStream':
beds.cpp.text+0x1388): undefined reference to `boost::system::get_posix_catego ry()'
beds.o:beds.cpp.text+0x1394): 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 `/home/trunk.r3777'
make: *** [all] Error 2
root@ks309749:/home/trunk.r3777#
 
mate, this tutorial is not for Ubutun anymore >.< Stian already report it in some post
 
Help me please

Code:
/home/stanik/rc# make
make  all-am
make[1]: Entering directory `/home/stanik/rc'
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__     -D_THREAD_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 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()'
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()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boost::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 `boost::system::get_posix_category()'
beds.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 `/home/stanik/rc'
make: *** [all] Error 2
 
I'm having the same problem, can someone help us?


Code:
otserv.o: In function `main':
otserv.cpp:(.text+0x130d): undefined reference to `boost::this_thread::sleep(boo                                                                             st::posix_time::ptime const&)'
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*)':
otserv.cpp:(.text+0x448b): undefined reference to `boost::this_thread::sleep(boo                                                                             st::posix_time::ptime const&)'
collect2: ld returned 1 exit status
make[1]: ** [theforgottenserver] Erro 1
make[1]: Saindo do diretório `/home/server/trunk.r3952'
make: ** [all] Erro 2
 
Code:
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT otserv.o -MD -MP -MF .deps/otserv.Tpo -c -o otserv.o otserv.cpp
otserv.cpp: In function 'void signalHandler(int32_t)':
otserv.cpp:179: error: 'SIGHUP' was not declared in this scope
otserv.cpp:184: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:188: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:192: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:197: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:201: error: 'SIGCONT' was not declared in this scope
otserv.cpp:205: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:210: error: 'SIGTERM' was not declared in this scope
otserv.cpp: In function 'int main(int, char**)':
otserv.cpp:284: error: aggregate 'sigaction sigh' has incomplete type and cannot be defined
otserv.cpp:285: error: 'SIG_IGN' was not declared in this scope
otserv.cpp:287: error: 'sigemptyset' was not declared in this scope
otserv.cpp:288: error: 'SIGPIPE' was not declared in this scope
otserv.cpp:288: error: invalid use of incomplete type 'struct sigaction'
otserv.cpp:284: error: forward declaration of 'struct sigaction'
otserv.cpp:291: error: 'SIGHUP' was not declared in this scope
otserv.cpp:291: error: 'signal' was not declared in this scope
otserv.cpp:292: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:293: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:294: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:295: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:296: error: 'SIGCONT' was not declared in this scope
otserv.cpp:297: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:298: error: 'SIGTERM' was not declared in this scope
make[1]: *** [otserv.o] Error 1
make[1]: Leaving directory `/home/fs/036'
make: *** [all] Error 2

New Error ? ...
 
Back
Top