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

Linux compiling error

TomCrusher

Jeg er ingenting
Joined
Dec 31, 2008
Messages
663
Reaction score
20
Location
Norway
Who know how to repair this error on Ubuntu 8.04 and how to update libboost to 1.38.0? Or what should add in repository to possiblity install on console with command:
PHP:
apt-get install libboost1.38-dev
and I have this error when I tryed compile TFS:
PHP:
luascript.o: In function `boost::filesystem::basic_directory_iterator<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >::m_init(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/local/include/boost/filesystem/operations.hpp:944: undefined reference to `boost::filesystem::detail::not_found_error()'
luascript.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, boost::filesystem::file_status>::type boost::filesystem::status<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<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<char>, std::allocator<char> > const&, boost::system::error_code&)'
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()'
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()'
/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 `boost::detail::thread_data_base::~thread_data_base()'
/usr/local/include/boost/thread/detail/thread.hpp:40: undefined reference to `boost::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 `boost::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_5list1INS2_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 `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::exists<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<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<char>, std::allocator<char> > const&, boost::system::error_code&)'
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()'
collect2: ld returned 1 exit status
 
add to /etc/apt/sources.list

Code:
deb http://no.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://no.archive.ubuntu.com/ubuntu/ jaunty main restricted
then write
sudo apt-get install libboost1.38-dev
then go back and comment out (or remove, your own choice) the 2 jaunty lines :p
(PS: i did same with karmic/gcc/g++/! i run GCC 4.4 Karmic release on Jaunty and its running great hehe)

Oh, and Dont run any updates while you have those 2 lines in sources.list :p
 
now that i think of it, i thought it was libboost1.35-dev that was the officially supported lib to compile.. (at least is back @OTFans)
why dont you try
sudo apt-get install libboost1.35-dev
instead?

but libbost1.38-dev is at
Code:
deb http://no.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://no.archive.ubuntu.com/ubuntu/ karmic main restricted
^.^ sorry about the jaunty-reference

(PS: the 4.4 GCC karmic build works great too, and makes better binary code, its what i use on my OT)
 
Last edited:
@up not work:(
what? you cant find libbost1.38-dev at
deb http://no.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://no.archive.ubuntu.com/ubuntu/ karmic main restricted
???
i can confirm it indeed is there.
if you really cant find it there, i think you got a problem with sources.list :/

Before adding karmic main:
hanshenrik@hanshenrik-laptop:~$ sudo apt-get install libbost1.38-dev
[sudo] password for hanshenrik:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libbost1.38-dev
After adding karmic main (and apt-get update)

root@hanshenrik-laptop:/home/hanshenrik# apt-get install libboost1.38-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libboost-date-time1.38-dev libboost-date-time1.38.0 libboost-filesystem1.38-dev libboost-filesystem1.38.0 libboost-graph1.38-dev libboost-graph1.38.0
libboost-iostreams1.38-dev libboost-iostreams1.38.0 libboost-math1.38-dev libboost-math1.38.0 libboost-program-options1.38-dev libboost-program-options1.38.0
libboost-python1.38-dev libboost-python1.38.0 libboost-regex1.38-dev libboost-regex1.38.0 libboost-serialization1.38-dev libboost-serialization1.38.0
libboost-signals1.38-dev libboost-signals1.38.0 libboost-system1.38-dev libboost-system1.38.0 libboost-test1.38-dev libboost-test1.38.0 libboost-thread1.38-dev
libboost-thread1.38.0 libboost-wave1.38-dev libboost-wave1.38.0 libboost1.38-doc libicu40 python-support
The following NEW packages will be installed:
libboost-date-time1.38-dev libboost-date-time1.38.0 libboost-filesystem1.38-dev libboost-filesystem1.38.0 libboost-graph1.38-dev libboost-graph1.38.0
libboost-iostreams1.38-dev libboost-iostreams1.38.0 libboost-math1.38-dev libboost-math1.38.0 libboost-program-options1.38-dev libboost-program-options1.38.0
libboost-python1.38-dev libboost-python1.38.0 libboost-regex1.38-dev libboost-regex1.38.0 libboost-serialization1.38-dev libboost-serialization1.38.0
libboost-signals1.38-dev libboost-signals1.38.0 libboost-system1.38-dev libboost-system1.38.0 libboost-test1.38-dev libboost-test1.38.0 libboost-thread1.38-dev
libboost-thread1.38.0 libboost-wave1.38-dev libboost-wave1.38.0 libboost1.38-dev libboost1.38-doc libicu40
The following packages will be upgraded:
python-support
 
Yes I have Hardy release and will not work. Idk why.
they are not in the hardy repo.
they aren't even in the Jaunty repo.
if you want to get it from Canonical's servers, you gotta use the Karmic repo.
(because they are much more interested in keeping karmic repo up-to-date, and they cant just toss it in all older repos without testing that it wont fuck something up :p (even tho in 90% of cases, it will not))

i use several programs/libs (including gcc and alot of libs) on the Jaunty Jaguar Release from the Karmic Koala repo, no problem. i assume implementing the boost from karmic to hardy is no problem either
 
So thanks for help. I reinstaled server to ubuntu 9.04 and taked repo from orginal jaunty so installed I libboost 1.37 and all work fine. Thanks
 
Back
Top