Hey folks!
I'm currently struggling around on a Debian 8 box (tried Debian 9 and Ubuntu 14.04 too) to get a TFS 0.4-r3884 working.
Autogenand configure go as expected, however the build throws some weird error I cannot wrap my head around (3rd pastebin). I've tried everything on the forums, and I've even fiddled a little around with topics on Stackexchange. Nothing helped so far. I am running it with the suggested -lpthread / -pthread in the makefile (which is suggested in other threads on otland) but it does not affect anything in a positive manner.
~EDIT:
I've noticed it "Checking for LUA.. no" in ./configure
~EDIT EDIT:
I've switched back to a Debian 8 machine - it seems that the issue is not OS related.
$ lua -v
$ ./autogen.sh
jordi@alzeria:~/repository/TFS-0.4-rev.3884$ ./autogen.sh autoreconf: Entering - Pastebin.com
$ ./configure --enable-mysql --enable-root-permissions
jordi@alzeria:~/repository/TFS-0.4-rev.3884$ ./configure --enable-mysql --enable - Pastebin.com
$ ./build.sh
jordi@alzeria:~/repository/TFS-0.4-rev.3884$ ./build.sh TheForgottenServer buil - Pastebin.com
Any suggestions whirling around??
Solution
Open up your `configure.ac` file and replace the first block of code with the second block of code. Thanks to @MyAAC
I'm currently struggling around on a Debian 8 box (tried Debian 9 and Ubuntu 14.04 too) to get a TFS 0.4-r3884 working.
Autogen
~EDIT:
I've noticed it "Checking for LUA.. no" in ./configure
~EDIT EDIT:
I've switched back to a Debian 8 machine - it seems that the issue is not OS related.
$ lua -v
Code:
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
$ ./autogen.sh
jordi@alzeria:~/repository/TFS-0.4-rev.3884$ ./autogen.sh autoreconf: Entering - Pastebin.com
$ ./configure --enable-mysql --enable-root-permissions
jordi@alzeria:~/repository/TFS-0.4-rev.3884$ ./configure --enable-mysql --enable - Pastebin.com
$ ./build.sh
jordi@alzeria:~/repository/TFS-0.4-rev.3884$ ./build.sh TheForgottenServer buil - Pastebin.com
Any suggestions whirling around??
Solution
Open up your `configure.ac` file and replace the first block of code with the second block of code. Thanks to @MyAAC
Code:
PKG_CHECK_MODULES(LUA, lua5.1 >= 5.1, , [
AC_CHECK_HEADERS([lua.hpp], , [AC_MSG_ERROR("Lua header not found.")])
AC_CHECK_LIB(lua, main, , [AC_MSG_ERROR("Linking against Lua library failed.")])
])
Code:
PKG_CHECK_MODULES([LUA], [lua5.1], [LIBS="$LUA_LIBS $LIBS"], [
AC_CHECK_HEADERS([lua.hpp], , [AC_MSG_ERROR("Lua header not found.")])
AC_CHECK_LIB([lua5.1], [main], , [AC_MSG_ERROR("Linking against Lua library failed.")])
])
Last edited: