• 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 Problem with compile TFS 1.0 FREEBSD

sanki

New Member
Joined
Mar 15, 2012
Messages
12
Reaction score
0
Hello Guys,
I have a problem with compile engine, from source on my FreeBSD 10:
https://github.com/otland/forgottenserver

In FreeBSD 10 default compiler is Clang, but I tried compile in GCC and Clang, but i still have same problem with vocation.cpp.

from FreeBSD after compiling using Clang:
...
[ 98%] Building CXX object CMakeFiles/tfs.dir/src/weapons.cpp.o
[100%] Building CXX object CMakeFiles/tfs.dir/src/wildcardtree.cpp.o
Linking CXX executable tfs
CMakeFiles/tfs.dir/src/vocation.cpp.o: In function `bool boost::detail::lcast_ret_float<std::__1::char_traits<char>, float, char>(float&, char const*, char const*)':
/usr/home/OTS/forgottenserver/src/vocation.cpp:(.text._ZN5boost6detail15lcast_ret_floatINSt3__111char_traitsIcEEfcEEbRT0_PKT1_S9_[_ZN5boost6detail15lcast_ret_floatINSt3__111char_traitsIcEEfcEEbRT0_KT1_S9_]+0x1356): warning: powl has lower than advertised precision
[100%] Built target tfs
"

At "building CXX object" no problems, I thought if it built target tfs, so i can try start up it. Then i have problem:
"
>> Loading config
>> Establishing database connection... MySQL 5.5.34
>> Running database manager
>> Loading vocations
>> Loading items
>> Loading script systems
Segmentation fault (core dumped)
"
Think... ok. Try with GCC.

"
Linking CXX executable tfs
CMakeFiles/tfs.dir/src/vocation.cpp.o: In function `bool boost::detail::lcast_ret_float<std::__1::char_traits<char>, float, char>(float&, char const*, char const*)':
/usr/home/OTS/forgottenserver/src/vocation.cpp:(.text._ZN5boost6detail15lcast_ret_floatINSt3__111char_traitsIcEEfcEEbRT0_PKT1_S9_[_ZN5boost6detail15lcast_ret_floatINSt3__111char_traitsIcEEfcEEbRT0_PKT1_S9_]+0x1356): warning: powl has lower than advertised precision
[100%] Built target tfs

That same problem.


I don't know where is the problem. Had someone compile it on FreeBSD?? Please, can someone help me ?
 
Yes, I follow this tutorial, and I don't now why I have a problem... :eek:

"

# CXX=g++47 cmake ..
CXX=g++47: Command not found.

"

so use " cmake CXX=g++47 .. " and then compile but with errors. On what rev of FreeBSD You compile?
 
Last edited:
I cant remember to be honest. It may have been 9 considering that 10.0 was released in January.

I really recommend to a more popular platform like Debian.
 
Yes, I know that, I run it on Debian and have 2 years ago server :) Now i want do server but it must be on FreeBSD (other server works).

So, I try compile on FreeBSD rev 9.1 and I will post results. Thanks for answers :)
 
Tried on BSD 9.1 and error:

"

../forgottenserver/build # cmake CXX=g++47 ..
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Failed
-- Performing Test COMPILER_KNOWS_CXX0X
-- Performing Test COMPILER_KNOWS_CXX0X - Failed
CMake Error at cmake/FindCXX11.cmake:24 (message):
Your C++ compiler does not support C++11.
Call Stack (most recent call first):
CMakeLists.txt:17 (include)


-- Configuring incomplete, errors occurred!

"
9.X don't have C++11 support... God. It must can be compiled on new 10, Mark write, can use GCC or Clang, but i think there is somethere else problem...
" In function `bool boost::detail::lcast_ret_float<std::__1::char_traits<char>, float, char>(float&, char const*, char const*)':
"
C++ library from boost.org .

Can someone help with compile ... ?
 
Last edited:
In BSD 10 is default support for this. Unfortunetly for 9.X(9.1 , 9.2) there is no support for C++11. Look, on BSD 10 Clang compiled it but with error. For tfs(1.0) must be support for C++11 so it can't be compiled on FreeBSD 9.X (grrr....) There must be some solution to compile it on a newer system.


OK. try on ver. 8.4 :)
 
Last edited:
must try on 10. Problem is in boost libraries... Older version of FreeBSD doesn't suppor CXX11... I Tried install but there wasn't packages.On version FBSD 10 i upgrade boost-lib and compile without errors, but can't run server :)

"


The Forgotten Server - Version 1.0
Compilied on Jul 8 2014 05:01:50 for arch x64

A server developed by Mark Samman
Visit our forum for updates, support, and resources: http://otland.net/.

>> Loading config
>> Establishing database connection... MySQL 5.5.34
>> Running database manager
>> Loading vocations
>> Loading items
>> Loading script systems
Segmentation fault (core dumped)
"

Nothing more it show me... where can be problem ?
 
Last edited:
i run tfs in GDB and i have that error:
"
"Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 803006800 (LWP 100115/tfs)]
0x00000008013ffc5d in lua_pushfstring () from /usr/local/lib/libluajit-5.1.so.2
"
Can anybody help me because i don't know what's the metter...
 
Back
Top