• 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 ERROR Compiling TFS 0.4 - UBUNTU 20.04

jondropss

New Member
Joined
Jul 19, 2020
Messages
41
Reaction score
2
Hello Friends from OTLAND, how its going?
I get this error when trying to compile on linux ubuntu, can someone help me?

Diff:
checking boost/asio.hpp usability... no
checking boost/asio.hpp presence... yes
configure: WARNING: boost/asio.hpp: present but cannot be compiled
configure: WARNING: boost/asio.hpp:     check for missing prerequisite headers?
configure: WARNING: boost/asio.hpp: see the Autoconf documentation
configure: WARNING: boost/asio.hpp:     section "Present But Cannot Be Compiled"
configure: WARNING: boost/asio.hpp: proceeding with the compiler's result
checking for boost/asio.hpp... no
configure: error: "boost::asio header not found."


1601849344692.png
Post automatically merged:

@Edit

i fix dat error and now i got this one now

Diff:
checking for asio.hpp... yes
checking unordered_set.hpp usability... no
checking unordered_set.hpp presence... no
checking for unordered_set.hpp... no
configure: error: "boost::unordered_set header not found."
 
Last edited:
sudo apt install libboost-date-time-dev
Diff:
root@otsv:~# sudo apt install libboost-date-time-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libboost-date-time-dev is already the newest version (1.71.0.0ubuntu2).
libboost-date-time-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
 
TFS 0.4 is outdated, it runs up to 14.04 most current versions you will have problems. I advise you to use OTX 2 or more current versions of TFS 1.x +
 
TFS 0.4 is outdated, it runs up to 14.04 most current versions you will have problems. I advise you to use OTX 2 or more current versions of TFS 1.x +

I switched to ubuntu 14.04, but now I got these errors in the compilation

Diff:
theforgottenserver 0.4

Server diagnostics.......... : yes
Login server mode........... : no
OTAdmin protocol............ : no
Root run permission......... : yes
Login server mode........... : no
Home-directory configuration : no
OTServ custom allocator..... : no
Debug build................. : no
Using LuaJIT................ : no

Build with MySQL............ : yes
Build with SQLite........... : no
Build with PostgreSQL....... : no

Configure complete, now you may type './build.sh'.
root@server:~/ntosv/src#
root@server:~/ntosv/src# ./build.sh
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 8 cores, using 9 processes
make  all-am
make[1]: Entering directory `/root/ntosv/src'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT allocator.o -MD -MP -MF .deps/allocator.Tpo -c -o allocator.o alloc          ator.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT baseevents.o -MD -MP -MF .deps/baseevents.Tpo -c -o baseevents.o ba          seevents.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT beds.o -MD -MP -MF .deps/beds.Tpo -c -o beds.o beds.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT combat.o -MD -MP -MF .deps/combat.Tpo -c -o combat.o combat.cpp

g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT condition.o -MD -MP -MF .deps/condition.Tpo -c -o condition.o condi          tion.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT configmanager.o -MD -MP -MF .deps/configmanager.Tpo -c -o configman          ager.o configmanager.cpp
mv -f .deps/allocator.Tpo .deps/allocator.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT connection.o -MD -MP -MF .deps/connection.Tpo -c -o connection.o co          nnection.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -          fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_P          ERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasi          ng -pipe -MT container.o -MD -MP -MF .deps/container.Tpo -c -o container.o conta          iner.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[1]: *** [configmanager.o] Error 4
make[1]: *** Waiting for unfinished jobs....
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[1]: *** [condition.o] Error 4
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[1]: *** [connection.o] Error 4
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[1]: *** [beds.o] Error 4
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[1]: *** [combat.o] Error 4
chat.cpp: In member function 'ChatChannel* Chat::getChannel(Player*, uint16_t)':
chat.cpp:1144:10: error: converting 'false' to pointer type 'ChatChannel*' [-Wer          ror=conversion-null]
   return false;
          ^
mv -f .deps/container.Tpo .deps/container.Po
cc1plus: all warnings being treated as errors
make[1]: *** [chat.o] Error 1
mv -f .deps/baseevents.Tpo .deps/baseevents.Po
mv -f .deps/actions.Tpo .deps/actions.Po
make[1]: Leaving directory `/root/ntosv/src'
make: *** [all] Error 2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@edit
I gave the permissions for the folders ... but I still have these errors

Diff:
root@server:~/ntosv/src# g++: internal compiler error: Killed (program cc1plus)
-su: syntax error near unexpected token `('
root@server:~/ntosv/src# Please submit a full bug report,
-su: Please: command not found
root@server:~/ntosv/src# with preprocessed source if appropriate.
-su: with: command not found
root@server:~/ntosv/src# See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.-su: file:///usr/share/doc/gcc-4.8/README.Bugs: No such file or directory
root@server:~/ntosv/src# make[1]: *** [creature.o] Error 4
-su: make[1]:: command not found
root@server:~/ntosv/src# g++: internal compiler error: Killed (program cc1plus)
-su: syntax error near unexpected token `('
root@server:~/ntosv/src# Please submit a full bug report,
-su: Please: command not found
root@server:~/ntosv/src# with preprocessed source if appropriate.
-su: with: command not found
root@server:~/ntosv/src# See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.-su: file:///usr/share/doc/gcc-4.8/README.Bugs: No such file or directory
root@server:~/ntosv/src# make[1]: *** [chat.o] Error 4
-su: make[1]:: command not found
root@server:~/ntosv/src# g++: internal compiler error: Killed (program cc1plus)
-su: syntax error near unexpected token `('
root@server:~/ntosv/src# Please submit a full bug report,
-su: Please: command not found
root@server:~/ntosv/src# with preprocessed source if appropriate.
-su: with: command not found
root@server:~/ntosv/src# See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.-su: file:///usr/share/doc/gcc-4.8/README.Bugs: No such file or directory
root@server:~/ntosv/src# make[1]: *** [depot.o] Error 4
-su: make[1]:: command not found
root@server:~/ntosv/src# mv -f .deps/database.Tpo .deps/database.Po
mv: cannot stat '.deps/database.Tpo': No such file or directory
root@server:~/ntosv/src# mv -f .deps/cylinder.Tpo .deps/cylinder.Po
mv: cannot stat '.deps/cylinder.Tpo': No such file or directory
root@server:~/ntosv/src# mv -f .deps/databasemanager.Tpo .deps/databasemanager.Po
mv: cannot stat '.deps/databasemanager.Tpo': No such file or directory
root@server:~/ntosv/src# mv -f .deps/databasemysql.Tpo .deps/databasemysql.Po
mv: cannot stat '.deps/databasemysql.Tpo': No such file or directory
root@server:~/ntosv/src# make[1]: Leaving directory `/root/ntosv/src'
> make: *** [all] Error 2
>
Post automatically merged:

bump dump rump =)
 
Last edited:
Try to get ubuntu 16.04 and use this:

apt-get install autoconf build-essential pkg-config automake libboost-all-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev libssl-dev libsqlite3-dev
apt-get install libcrypto++-dev

cd /3777-master
chmod -R 777 src
cd src
./autogen.sh && ./configure --enable-sqlite --enable-mysql --enable-root-permission --enable-server-diag && make
 
Back
Top