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

Linux (FreeBSD) TFS 1.0 Luajit runtime error

hakeee

New Member
Joined
Oct 23, 2008
Messages
45
Reaction score
0
Location
sweden
Hello, I've got a problem after compiling the latest TFS 1.0 source on FreeBSD.

I followed this tutorial on https://github.com/otland/forgottenserver/wiki/Compiling-on-FreeBSD
and I got 3 errors that i fixed but i think they are worth naming.

1. std::this_thread::sleep_for function was undefined in std. To fix hat problem i defined this _GLIBCXX_USE_NANOSLEEP in the flags file that cmake generated.

2. std::to_string was also undefined so i made a simple function for it instead.

3. std::stoi was also undefined so i found a simple replacement for it.

These 2 last errors might be a source on the problem but i'm not sure.

Now to the problem.
When I run the server it crashes after >> Loading script systems.

With gdb i could get a litle more info what the problem is.
Code:
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) run
Starting program: /tibia/git_clone/forgottenserver/tfs
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100704]
[New Thread 802807400 (LWP 100704/tfs)]
[New Thread 802807800 (LWP 100784/tfs)]
[New Thread 802807c00 (LWP 100785/tfs)]
The Forgotten Server - Version 1.0
Compilied on Apr  7 2014 18:19:17 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.36
>> Running database manager
>> Loading vocations
>> Loading items
>> Loading script systems

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 802807800 (LWP 100784/tfs)]
0x000000080115a45d in lua_pushfstring () from /usr/local/lib/libluajit-5.1.so.2

So i thought it was something with luajit so i installed lua-5.1 and undefined __LUAJIT__ in the makefile
linked to lua51 libs(.so) and recompiled.

Then I got:
Code:
Starting program: /tibia/git_clone/forgottenserver/tfs
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100710]
[New Thread 802807400 (LWP 100710/tfs)]
[New Thread 802807800 (LWP 100725/tfs)]
[New Thread 802807c00 (LWP 100726/tfs)]
The Forgotten Server - Version 1.0
Compilied on Apr  7 2014 17:39:16 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.36
>> Running database manager
>> Loading vocations
>> Loading items
>> Loading script systems

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 802807800 (LWP 100725/tfs)]
0x000000080114c570 in lua_gettop () from /usr/local/lib/liblua-5.1.so.1

So I don't know what to do now, I've gone back to luajit but I still have the same problem.

I would appreciate all help very much.

//Hakeee
 
Back
Top