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

Need help Linking server

CoolBuys1290

Member
Joined
Aug 23, 2018
Messages
80
Reaction score
8
Trying to link Nostalrius TFS server 7.72 for Linux.

Bash:
otsmanager@167-114-137-36:~/forgottenserver/build$ sudo make
[  1%] Linking CXX executable tfs
/usr/bin/ld: CMakeFiles/tfs.dir/src/combat.cpp.o: in function `ValueCallback::getMinMaxValues(Player*, CombatDamage&, bool) const':
combat.cpp:(.text+0x5165): undefined reference to `lua_pcallk'
/usr/bin/ld: CMakeFiles/tfs.dir/src/combat.cpp.o: in function `TargetCallback::onTargetCombat(Creature*, Creature*) const':
combat.cpp:(.text+0x55a5): undefined reference to `lua_pcallk'
/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::load()':
configmanager.cpp:(.text+0xd2): undefined reference to `lua_pcallk'
/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalString[abi:cxx11](lua_State*, char const*, char const*)':
configmanager.cpp:(.text+0xf0b): undefined reference to `lua_getglobal'
/usr/bin/ld: configmanager.cpp:(.text+0xf6a): undefined reference to `lua_rawlen'
/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalNumber(lua_State*, char const*, int)':
configmanager.cpp:(.text+0x1088): undefined reference to `lua_getglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/configmanager.cpp.o: in function `ConfigManager::getGlobalBoolean(lua_State*, char const*, bool)':
configmanager.cpp:(.text+0x1116): undefined reference to `lua_getglobal'
/usr/bin/ld: configmanager.cpp:(.text+0x1169): undefined reference to `lua_rawlen'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::protectedCall(lua_State*, int, int)':
luascript.cpp:(.text+0x11a6): undefined reference to `lua_pcallk'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x142b): undefined reference to `lua_getglobal'
/usr/bin/ld: luascript.cpp:(.text+0x14de): undefined reference to `lua_setglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getMetaEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x1679): undefined reference to `lua_getglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::getStackTrace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x1ac0): undefined reference to `lua_getglobal'
/usr/bin/ld: luascript.cpp:(.text+0x1bbc): undefined reference to `lua_callk'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerFunctions()':
luascript.cpp:(.text+0x4721): undefined reference to `lua_setglobal'
/usr/bin/ld: luascript.cpp:(.text+0x475a): undefined reference to `lua_setglobal'
/usr/bin/ld: luascript.cpp:(.text+0x4793): undefined reference to `lua_setglobal'
/usr/bin/ld: luascript.cpp:(.text+0x47cc): undefined reference to `lua_setglobal'
/usr/bin/ld: luascript.cpp:(.text+0x4805): undefined reference to `lua_setglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o:luascript.cpp:(.text+0x483e): more undefined references to `lua_setglobal' follow
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x45dcf): undefined reference to `lua_getglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x461b6): undefined reference to `lua_setglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x461f8): undefined reference to `lua_getglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x4633e): undefined reference to `lua_setglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':
luascript.cpp:(.text+0x46381): undefined reference to `lua_getglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':
luascript.cpp:(.text+0x46418): undefined reference to `lua_setglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::registerGlobalBoolean(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
luascript.cpp:(.text+0x4646d): undefined reference to `lua_setglobal'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::luaIsInArray(lua_State*)':
luascript.cpp:(.text+0x4a5a4): undefined reference to `lua_compare'
/usr/bin/ld: CMakeFiles/tfs.dir/src/luascript.cpp.o: in function `LuaScriptInterface::luaAddEvent(lua_State*)':
luascript.cpp:(.text+0x4ad41): undefined reference to `lua_getglobal'
/usr/bin/ld: luascript.cpp:(.text+0x4ad74): undefined reference to `lua_getglobal'
/usr/bin/ld: luascript.cpp:(.text+0x4ade4): undefined reference to `lua_callk'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tfs.dir/build.make:1161: tfs] Error 1
make[1]: *** [CMakeFiles/Makefile2:160: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Please help.

CoolBuys1290
 
Last edited:
I found my latest LuaJIT version, which was
2.1.0~beta3+dfsg-5.1build1.

And I edited FindLuaJIT.cmake and edited the NAMES line to look like this:

NAMES 2.1.0~beta3+dfsg-5.1build1. Please help.

Thanks.

CoolBuys1290
 
Back
Top