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

TFS 0.X build 3777 0.4 (fir3element) on debian 12

fitorey

New Member
Joined
Mar 9, 2025
Messages
8
Reaction score
2
Hey, I miss playing with my OTServer. I’ve been working on a fun project where I made a lot of custom edits and played a lot, but now I’m stuck. I can’t remember how to build my server sources anymore. I did it on Debian 9 or 10 before, but now I’m on Debian 12 and can’t figure it out.


The server is based on the following source:
GitHub - Fir3element/3777: The Forgotten Server 0.4 (rev 3777) with several improvements and bugfixes (https://github.com/Fir3element/3777)


I followed the instructions there but ran into this error:
Code:
E: Package 'libmysqlclient-dev' has no installation candidate.

I also have some old notes (not sure if they’re accurate, it’s been a while):
sudo apt-get install autoconf build-essential pkg-config automake libboost-all-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libssl-dev libsqlite3-dev
sudo apt-get install libmariadbclient-dev
cd /3777
cd src
./autogen.sh && ./configure --enable-sqlite --enable-mysql --enable-root-permission --enable-server-diag && ./build.sh

But I’m getting another error:
Code:
E: Package 'libmariadbclient-dev' has no installation candidate

What should I do to get this running again? I really miss playing on my local server and want to get back to it! 😄
 
Last edited:
Im not knowledgable with debian so I asked AI and was told that you have to use: default-libmysqlclient-dev.

It seems like on Ubuntu its libmysqlclient-dev, while Debian added default- prefix.
The Debian page confirms it: Debian -- Details of package default-libmysqlclient-dev in buster (https://packages.debian.org/buster/default-libmysqlclient-dev)

so the steps to build now are:
Code:
sudo apt-get install --no-install-recommends -y git autoconf automake pkg-config build-essential cmake liblua5.1-0-dev libsqlite3-dev libxml2-dev libgmp3-dev libboost-filesystem-dev libboost-regex-dev libboost-thread-dev
sudo apt-get install libmysqlclient-dev
cd /3777
mkdir build
cd build
cmake ..
make -j$(grep processor /proc/cpuinfo | wc -l)

right?

---

i made changes @Gesior.pl made here:
now my project is just like gesior one (GitHub - gesior/3777 (https://github.com/gesior/3777))
just with my small changes
the fir3element repository was deleted and reuploaded with no commit history, idk what he change, but my repo is just like the gesior's

then add this files to my project so i havent to give chmod 777

but when i try to build i also get errors:
Code:
fito@fitorey:~/Documents/otserver/3777/src$ cmake ..
-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: /usr/lib/x86_64-linux-gnu/libmysqlclient.so;-ldl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fito/Documents/otserver/3777/src
fito@fitorey:~/Documents/otserver/3777/src$ make -j$(grep processor /proc/cpuinfo | wc -l)
[  5%] Building CXX object CMakeFiles/theforgottenserver.dir/actions.cpp.o
[  5%] Building CXX object CMakeFiles/theforgottenserver.dir/admin.cpp.o
[  5%] Building CXX object CMakeFiles/theforgottenserver.dir/allocator.cpp.o
[  5%] Building CXX object CMakeFiles/theforgottenserver.dir/baseevents.cpp.o
[  6%] Building CXX object CMakeFiles/theforgottenserver.dir/beds.cpp.o
[  7%] Building CXX object CMakeFiles/theforgottenserver.dir/chat.cpp.o
In file included from /usr/include/boost/bind.hpp:30,
                 from /home/fito/Documents/otserver/3777/src/otpch.h:35,
                 from /home/fito/Documents/otserver/3777/src/baseevents.cpp:17:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind.hpp:30,
                 from /home/fito/Documents/otserver/3777/src/otpch.h:35,
                 from /home/fito/Documents/otserver/3777/src/actions.cpp:17:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind.hpp:30,
                 from /home/fito/Documents/otserver/3777/src/otpch.h:35,
                 from /home/fito/Documents/otserver/3777/src/beds.cpp:17:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind.hpp:30,
                 from /home/fito/Documents/otserver/3777/src/otpch.h:35,
                 from /home/fito/Documents/otserver/3777/src/chat.cpp:17:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
In file included from /home/fito/Documents/otserver/3777/src/baseevents.h:20,
                 from /home/fito/Documents/otserver/3777/src/actions.h:20,
                 from /home/fito/Documents/otserver/3777/src/actions.cpp:20:
/home/fito/Documents/otserver/3777/src/otsystem.h: In function ‘int64_t OTSYS_TIME()’:
/home/fito/Documents/otserver/3777/src/otsystem.h:105:9: error: ‘timeb’ was not declared in this scope; did you mean ‘timex’?
  105 |         timeb t;
      |         ^~~~~
      |         timex
/home/fito/Documents/otserver/3777/src/otsystem.h:106:16: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
  106 |         ftime(&t);
      |                ^
      |                tm
/home/fito/Documents/otserver/3777/src/otsystem.h:106:9: error: ‘ftime’ was not declared in this scope; did you mean ‘time’?
  106 |         ftime(&t);
      |         ^~~~~
      |         time
In file included from /home/fito/Documents/otserver/3777/src/chat.h:20,
                 from /home/fito/Documents/otserver/3777/src/chat.cpp:18:
/home/fito/Documents/otserver/3777/src/otsystem.h: In function ‘int64_t OTSYS_TIME()’:
/home/fito/Documents/otserver/3777/src/otsystem.h:105:9: error: ‘timeb’ was not declared in this scope; did you mean ‘timex’?
  105 |         timeb t;
      |         ^~~~~
      |         timex
/home/fito/Documents/otserver/3777/src/otsystem.h:106:16: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
  106 |         ftime(&t);
      |                ^
      |                tm
/home/fito/Documents/otserver/3777/src/otsystem.h:106:9: error: ‘ftime’ was not declared in this scope; did you mean ‘time’?
  106 |         ftime(&t);
      |         ^~~~~
      |         time
In file included from /home/fito/Documents/otserver/3777/src/item.h:20,
                 from /home/fito/Documents/otserver/3777/src/beds.h:20,
                 from /home/fito/Documents/otserver/3777/src/beds.cpp:19:
/home/fito/Documents/otserver/3777/src/otsystem.h: In function ‘int64_t OTSYS_TIME()’:
/home/fito/Documents/otserver/3777/src/otsystem.h:105:9: error: ‘timeb’ was not declared in this scope; did you mean ‘timex’?
  105 |         timeb t;
      |         ^~~~~
      |         timex
/home/fito/Documents/otserver/3777/src/otsystem.h:106:16: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
  106 |         ftime(&t);
      |                ^
      |                tm
In file included from /home/fito/Documents/otserver/3777/src/baseevents.h:20,
                 from /home/fito/Documents/otserver/3777/src/baseevents.cpp:20:
/home/fito/Documents/otserver/3777/src/otsystem.h: In function ‘int64_t OTSYS_TIME()’:
/home/fito/Documents/otserver/3777/src/otsystem.h:105:9: error: ‘timeb’ was not declared in this scope; did you mean ‘timex’?
  105 |         timeb t;
      |         ^~~~~
      |         timex
/home/fito/Documents/otserver/3777/src/otsystem.h:106:9: error: ‘ftime’ was not declared in this scope; did you mean ‘time’?
  106 |         ftime(&t);
      |         ^~~~~
      |         time
/home/fito/Documents/otserver/3777/src/otsystem.h:106:16: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
  106 |         ftime(&t);
      |                ^
      |                tm
/home/fito/Documents/otserver/3777/src/otsystem.h:106:9: error: ‘ftime’ was not declared in this scope; did you mean ‘time’?
  106 |         ftime(&t);
      |         ^~~~~
      |         time
In file included from /home/fito/Documents/otserver/3777/src/creature.h:28,
                 from /home/fito/Documents/otserver/3777/src/player.h:23,
                 from /home/fito/Documents/otserver/3777/src/actions.cpp:23:
/home/fito/Documents/otserver/3777/src/map.h: At global scope:
/home/fito/Documents/otserver/3777/src/map.h:81:50: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   81 | template<class T> class lessPointer: public std::binary_function<T*, T*, bool>
      |                                                  ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/bits/unique_ptr.h:37,
                 from /usr/include/c++/12/memory:76,
                 from /usr/include/unicode/localpointer.h:45,
                 from /usr/include/unicode/uenum.h:25,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:812,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /home/fito/Documents/otserver/3777/src/otpch.h:28:
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
In file included from /home/fito/Documents/otserver/3777/src/creature.h:28,
                 from /home/fito/Documents/otserver/3777/src/player.h:23,
                 from /home/fito/Documents/otserver/3777/src/party.h:20,
                 from /home/fito/Documents/otserver/3777/src/chat.h:24:
/home/fito/Documents/otserver/3777/src/map.h: At global scope:
/home/fito/Documents/otserver/3777/src/map.h:81:50: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   81 | template<class T> class lessPointer: public std::binary_function<T*, T*, bool>
      |                                                  ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/bits/unique_ptr.h:37,
                 from /usr/include/c++/12/memory:76,
                 from /usr/include/unicode/localpointer.h:45,
                 from /usr/include/unicode/uenum.h:25,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:812,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /home/fito/Documents/otserver/3777/src/otpch.h:28:
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
In file included from /home/fito/Documents/otserver/3777/src/creature.h:28,
                 from /home/fito/Documents/otserver/3777/src/player.h:23,
                 from /home/fito/Documents/otserver/3777/src/house.h:27,
                 from /home/fito/Documents/otserver/3777/src/beds.cpp:20:
/home/fito/Documents/otserver/3777/src/map.h: At global scope:
/home/fito/Documents/otserver/3777/src/map.h:81:50: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   81 | template<class T> class lessPointer: public std::binary_function<T*, T*, bool>
      |                                                  ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/bits/unique_ptr.h:37,
                 from /usr/include/c++/12/memory:76,
                 from /usr/include/unicode/localpointer.h:45,
                 from /usr/include/unicode/uenum.h:25,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:812,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /home/fito/Documents/otserver/3777/src/otpch.h:28:
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
In file included from /home/fito/Documents/otserver/3777/src/game.h:24,
                 from /home/fito/Documents/otserver/3777/src/actions.cpp:30:
/home/fito/Documents/otserver/3777/src/scheduler.h:52:30: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   52 | class lessTask : public std::binary_function<SchedulerTask*&, SchedulerTask*&, bool>
      |                              ^~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
In file included from /home/fito/Documents/otserver/3777/src/game.h:24,
                 from /home/fito/Documents/otserver/3777/src/chat.cpp:25:
/home/fito/Documents/otserver/3777/src/scheduler.h:52:30: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   52 | class lessTask : public std::binary_function<SchedulerTask*&, SchedulerTask*&, bool>
      |                              ^~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
In file included from /home/fito/Documents/otserver/3777/src/game.h:24,
                 from /home/fito/Documents/otserver/3777/src/beds.cpp:25:
/home/fito/Documents/otserver/3777/src/scheduler.h:52:30: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   52 | class lessTask : public std::binary_function<SchedulerTask*&, SchedulerTask*&, bool>
      |                              ^~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/theforgottenserver.dir/build.make:118: CMakeFiles/theforgottenserver.dir/baseevents.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/theforgottenserver.dir/build.make:132: CMakeFiles/theforgottenserver.dir/beds.cpp.o] Error 1
make[2]: *** [CMakeFiles/theforgottenserver.dir/build.make:146: CMakeFiles/theforgottenserver.dir/chat.cpp.o] Error 1
make[2]: *** [CMakeFiles/theforgottenserver.dir/build.make:76: CMakeFiles/theforgottenserver.dir/actions.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/theforgottenserver.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
 
Last edited:

Similar threads

Back
Top