• 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 Compiling linux (centos 5)

grzesiek1925

New Member
Joined
Aug 21, 2009
Messages
81
Reaction score
2
Hello,
I have a problem... How to compile a guide by Compiling OTServ under CentOS 5.3 - OpenTibia Fans
I do not have to be fired later file ots.... Maybe someone knows why? Maybe something wrong? This is a centos 5(linux) :p Please help

//edit
I have this error:
make all-am
make[1]: Entering directory `/root/sources/OTServ/trunk'
g++ -I/usr/include/libxml2 -D__USE_MYSQL__ -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D_REENTRANT -Wall -g -O2 -o otserv databasemysql.o map.o rsa.o actions.o md5.o scheduler.o admin.o monster.o scriptmanager.o allocator.o depot.o monsters.o server.o ban.o exception.o movement.o sha1.o baseevents.o fileloader.o networkmessage.o spawn.o beds.o game.o npc.o spells.o chat.o house.o otserv.o status.o combat.o housetile.o outfit.o talkaction.o ioaccount.o outputmessage.o tasks.o condition.o iomapotbm.o party.o teleport.o configmanager.o iomapserialize.o player.o thing.o connection.o position.o tile.o container.o ioplayer.o protocol.o tools.o creature.o item.o protocolgame.o trashholder.o creatureevent.o items.o protocollogin.o vocation.o cylinder.o logger.o protocolold.o waitlist.o database.o luascript.o quests.o weapons.o mailbox.o raids.o guild.o -lmysqlclient -llua -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lgmp -L/usr/lib -lxml2 -lz -lm
/usr/lib/liblua.a(loslib.o): In function `os_tmpname':
(.text+0x6f): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
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()'
server.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()'
game.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()'
game.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]: *** [otserv] Error 1
make[1]: Leaving directory `/root/sources/OTServ/trunk'
make: *** [all] Error 2
 
Last edited:
show me aptitude search boost u should install something simmiliar to that: libboost-dev boost-dev libboost1.35-dev
skip this step there:
Package: boost 1.40.0 (latest)
 
I see that you're Poland

Możesz mi opisać dokładnie jak mam zainstalować te libboost-dev boost-dev libboost1.35-dev ? A jeśli już zainstalowałem Package: boost 1.40.0 (latest) to co mam zrobić?

You can explain to me exactly how I install libboost-dev boost-dev libboost1.35-dev ? And if you have already installed Package: boost 1.40.0 (latest) what should I do?

@edit
Now i have this error...
make all-am
make[1]: Entering directory `/home/ots'
g++ -I/usr/include/libxml2 -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT - Wall -g -O1 -o theforgottenserver actions.o allocator.o baseevents.o beds.o c hat.o combat.o condition.o configmanager.o connection.o container.o creature.o c reatureevent.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 it emattributes.o items.o luascript.o mailbox.o map.o md5.o monster.o monsters.o mo vement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player box.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 spe lls.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 -lmysqlclient -llua -lboost_fi lesystem -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lgmp -L /usr/lib -lxml2 -lz -lm
/usr/lib/liblua.a(loslib.o): In function `os_tmpname':
(.text+0x6f): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
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
luascript.o: In function `~dir_itr_imp':
/usr/local/include/boost/filesystem/operations.hpp:877: undefined reference to ` boost::filesystem::detail::dir_itr_close(void*&, void*&)'
luascript.o: In function `boost::filesystem::basic_directory_iterator<boost::fil esystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocat or<char> >, boost::filesystem::path_traits> >::increment()':
/usr/local/include/boost/filesystem/operations.hpp:1009: undefined reference to `boost::filesystem::detail::dir_itr_increment(void*&, void*&, std::basic_string< char, std::char_traits<char>, std::allocator<char> >&, boost::filesystem::file_s tatus&, boost::filesystem::file_status&)'
luascript.o: In function `boost::filesystem::basic_directory_iterator<boost::fil esystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocat or<char> >, boost::filesystem::path_traits> >::m_init(boost::filesystem::basic_p ath<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boos t::filesystem::path_traits> const&)':
/usr/local/include/boost/filesystem/operations.hpp:944: undefined reference to ` boost::filesystem::detail::not_found_error()'
/usr/local/include/boost/filesystem/operations.hpp:953: undefined reference to ` boost::filesystem::detail::dir_itr_first(void*&, void*&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::filesystem::file_status& , boost::filesystem::file_status&)'
luascript.o: In function `~dir_itr_imp':
/usr/local/include/boost/filesystem/operations.hpp:877: undefined reference to ` boost::filesystem::detail::dir_itr_close(void*&, void*&)'
luascript.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boos t::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::a llocator<char> >, boost::filesystem::path_traits> >, boost::filesystem::file_sta tus>::type boost::filesystem::status<boost::filesystem::basic_path<std::basic_st ring<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::pa th_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_tra its<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/local/include/boost/filesystem/operations.hpp:259: undefined reference to ` boost::filesystem::detail::status_api(std::basic_string<char, std::char_traits<c har>, std::allocator<char> > const&, boost::system::error_code&)'
mailbox.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()'
map.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()'
monster.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()'
monster.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined ref erences to `boost::system::get_posix_category()' follow
otserv.o: In function `interruption_checker':
/usr/local/include/boost/thread/pthread/thread_data.hpp:81: undefined reference to `boost::detail::get_current_thread_data()'
/usr/local/include/boost/thread/pthread/thread_data.hpp:81: undefined reference to `boost::detail::get_current_thread_data()'
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
scheduler.o: In function `interruption_checker':
/usr/local/include/boost/thread/pthread/thread_data.hpp:81: undefined reference to `boost::detail::get_current_thread_data()'
scheduler.o: In function `~thread_data':
/usr/local/include/boost/thread/detail/thread.hpp:40: undefined reference to `bo ost::detail::thread_data_base::~thread_data_base()'
/usr/local/include/boost/thread/detail/thread.hpp:40: undefined reference to `bo ost::detail::thread_data_base::~thread_data_base()'
scheduler.o: In function `thread_data_base':
/usr/local/include/boost/thread/pthread/thread_data.hpp:54: undefined reference to `vtable for boost::detail::thread_data_base'
scheduler.o: In function `thread<boost::_bi::bind_t<void, void (*)(void*), boost ::_bi::list1<boost::_bi::value<void*> > > >':
/usr/local/include/boost/thread/detail/thread.hpp:188: undefined reference to `b oost::thread::start_thread()'
scheduler.o: In function `interruption_checker':
/usr/local/include/boost/thread/pthread/thread_data.hpp:81: undefined reference to `boost::detail::get_current_thread_data()'
scheduler.o:(.rodata._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvPvENS2_5 list1INS2_5valueIS4_EEEEEEEE[typeinfo for boost::detail::thread_data<boost::_bi: :bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > > >] +0x8): undefined reference to `typeinfo for boost::detail::thread_data_base'
scriptmanager.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()'
scriptmanager.o: In function `boost::enable_if<boost::filesystem::is_basic_path< boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, st d::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::file system::exists<boost::filesystem::basic_path<std::basic_string<char, std::char_t raits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::fi lesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::alloca tor<char> >, boost::filesystem::path_traits> const&)':
/usr/local/include/boost/filesystem/operations.hpp:293: undefined reference to ` boost::filesystem::detail::status_api(std::basic_string<char, std::char_traits<c har>, std::allocator<char> > const&, boost::system::error_code&)'
server.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()'
spawn.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()'
spells.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()'
spells.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined refe rences to `boost::system::get_posix_category()' follow
tasks.o: In function `interruption_checker':
/usr/local/include/boost/thread/pthread/thread_data.hpp:81: undefined reference to `boost::detail::get_current_thread_data()'
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()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos t::system::get_posix_category()'
thing.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()'
thing.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined refer ences to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/home/ots'
make: *** [all] Error 2
 
Last edited:
You need to get the latest boost 1.42, just go the official website and follow the guide how to compile and configure the latest boost files for your OS, (that is if your OS does not have the newest boost package avaiable).
 
I install boost, now i receive this error:

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 undefined 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
 
Please help!

mv -f .deps/npc.Tpo .deps/npc.Po
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -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 undefined 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] Erro 1
make[1]: Saindo do diretório `/home/source'
make: ** [all] Erro 2
 
Seems like you compiled/installed boost wrong, I had the same problem, I ended up using a debian unstable OS so i could get more apt packages...
 
Back
Top