• 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 TFS 0.2.10 on Ubuntu

duduzinhu16

New Member
Joined
Jul 13, 2009
Messages
7
Reaction score
0
[SOLVED]

Hey Guys!

I'm trying to compile TFS on my Ubuntu since yesterday with no success.

I followed all the steps on doc/README and everything went fine until the make command:

Code:
# make
g++ -I. -I/usr/include/libxml2 -I /usr/include/lua5.1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -Wall -O2 -c actions.cpp
g++ -I. -I/usr/include/libxml2 -I /usr/include/lua5.1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -Wall -O2 -c admin.cpp
In file included from /usr/include/boost/asio/detail/impl/throw_error.ipp:21:0,
                 from /usr/include/boost/asio/detail/throw_error.hpp:52,
                 from /usr/include/boost/asio/detail/impl/posix_mutex.ipp:23,
                 from /usr/include/boost/asio/detail/posix_mutex.hpp:73,
                 from /usr/include/boost/asio/detail/mutex.hpp:25,
                 from /usr/include/boost/asio/detail/service_registry.hpp:20,
                 from /usr/include/boost/asio/impl/io_service.hpp:18,
                 from /usr/include/boost/asio/io_service.hpp:684,
                 from /usr/include/boost/asio/basic_io_object.hpp:20,
                 from /usr/include/boost/asio/basic_socket.hpp:19,
                 from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
                 from /usr/include/boost/asio.hpp:20,
                 from connection.h:25,
                 from admin.cpp:24:
/usr/include/boost/system/system_error.hpp:22:45: error: expected initializer before ‘:’ token
In file included from /usr/include/boost/asio/impl/io_service.hpp:18:0,
                 from /usr/include/boost/asio/io_service.hpp:684,
                 from /usr/include/boost/asio/basic_io_object.hpp:20,
                 from /usr/include/boost/asio/basic_socket.hpp:19,
                 from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
                 from /usr/include/boost/asio.hpp:20,
                 from connection.h:25,
                 from admin.cpp:24:
/usr/include/boost/asio/detail/service_registry.hpp:38:40: error: expected ‘}’ before end of line
/usr/include/boost/asio/detail/service_registry.hpp:38:40: error: expected ‘}’ before end of line
/usr/include/boost/asio/detail/service_registry.hpp:38:40: error: expected declaration before end of line
make: *** [admin.o] Error 1

So I tried with different versions of boost_asio.

Here is the end of the make with boost_asio_1_5_3:

Code:
g++ -I. -I/usr/include/libxml2 -I /usr/include/lua5.1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -Wall -O2 -c networkmessage.cpp
g++ -I. -I/usr/include/libxml2 -I /usr/include/lua5.1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -Wall -O2 -c npc.cpp
g++ -I. -I/usr/include/libxml2 -I /usr/include/lua5.1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -Wall -O2 -c otserv.cpp
In file included from otserv.cpp:24:0:
server.h:113:3: error: ‘list’ in namespace ‘std’ does not name a type
make: *** [otserv.o] Error 1

I had success with the boost_asio_1_4_0 and i was able to start the server without any problem. But i receive an "Error: Connection Refused. (10061)" windows when i try to logon the account manager.

Could you guys help me?

Tell me if you need any more information.

Thank you!

[\SOLVED]
 
Last edited:
Back
Top