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

Linux Outdated Library's help

drifter8779

Member
Joined
Oct 17, 2009
Messages
160
Reaction score
7
Using Ubuntu 18.04,
I have tried as many threads that i could find about this following issue and none have worked
trying to currently compile this
Most libraries i try to get just tell me package not found
Code:
configure: error: "boost::unordered_set header not found. Please update your boost to at least 1.40."

as the newer operation systems use updated libraries i have not found any method that works, to compile an "outdated" server and since i don't want to downgrade my operating system i figured i could find an answer here
 
Solution
Since your CM doesn't appreciate my need to let flow the retrospective narrative resonant to the whimsy motivating my presence, and my fastidious productivity it seems you may need this yourself after all.

Boost TR1 was the C++ Technical Report 1 namespace. As of Boost 1.65 it was removed because those methods have either been made part of the C++11 std library or moved back into Boost.


Diff:
diff -Naur ./trunk.r3772/configure.ac ./tr1patch/configure.ac
--- ./trunk.r3772/configure.ac    2020-03-14 11:02:25.405958278 -0700
+++ ./tr1patch/configure.ac    2020-03-14 10:13:35.726044507 -0700
@@ -199,7 +199,7 @@
 AC_CHECK_HEADERS([boost/asio.hpp], , [AC_MSG_ERROR("boost::asio header not found.")])
 
 # check for boost::unordered_set...
The OG Frozenhell used a newer commit than 3777. Way newer actually. Anyway...

That particular function still exists in the lastest Boost, 1.72, and was present in both versions of Boost that were packaged for Ubuntu 18.04: 1.62 and 1.65.
 
Since your CM doesn't appreciate my need to let flow the retrospective narrative resonant to the whimsy motivating my presence, and my fastidious productivity it seems you may need this yourself after all.

Boost TR1 was the C++ Technical Report 1 namespace. As of Boost 1.65 it was removed because those methods have either been made part of the C++11 std library or moved back into Boost.


Diff:
diff -Naur ./trunk.r3772/configure.ac ./tr1patch/configure.ac
--- ./trunk.r3772/configure.ac    2020-03-14 11:02:25.405958278 -0700
+++ ./tr1patch/configure.ac    2020-03-14 10:13:35.726044507 -0700
@@ -199,7 +199,7 @@
 AC_CHECK_HEADERS([boost/asio.hpp], , [AC_MSG_ERROR("boost::asio header not found.")])
 
 # check for boost::unordered_set
-AC_CHECK_HEADERS([boost/tr1/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])
+AC_CHECK_HEADERS([boost/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])
 
 # check for Crypto++
 AC_CHECK_HEADERS([cryptopp/sha.h cryptopp/md5.h cryptopp/adler32.h cryptopp/hex.h cryptopp/base64.h cryptopp/hmac.h cryptopp/cryptlib.h], , [AC_MSG_ERROR("Required Crypto++ headers not found.")])
diff -Naur ./trunk.r3772/house.h ./tr1patch/house.h
--- ./trunk.r3772/house.h    2020-03-14 11:02:25.405958278 -0700
+++ ./tr1patch/house.h    2020-03-14 10:12:50.196045846 -0700
@@ -20,7 +20,7 @@
 #include "otsystem.h"
 
 #include <boost/regex.hpp>
-#include <boost/tr1/unordered_set.hpp>
+#include <boost/unordered_set.hpp>
 
 #include "position.h"
 #include "housetile.h"
@@ -73,7 +73,7 @@
         void getList(std::string& _list) const;
 
     private:
-        typedef std::tr1::unordered_set<uint32_t> PlayerList;
+        typedef boost::unordered_set<uint32_t> PlayerList;
         typedef std::list<std::pair<uint32_t, int32_t> > GuildList;
         typedef std::list<std::string> ExpressionList;
         typedef std::list<std::pair<boost::regex, bool> > RegexList;
 
Solution
Since your CM doesn't appreciate my need to let flow the retrospective narrative resonant to the whimsy motivating my presence, and my fastidious productivity it seems you may need this yourself after all.

Boost TR1 was the C++ Technical Report 1 namespace. As of Boost 1.65 it was removed because those methods have either been made part of the C++11 std library or moved back into Boost.


Diff:
diff -Naur ./trunk.r3772/configure.ac ./tr1patch/configure.ac
--- ./trunk.r3772/configure.ac    2020-03-14 11:02:25.405958278 -0700
+++ ./tr1patch/configure.ac    2020-03-14 10:13:35.726044507 -0700
@@ -199,7 +199,7 @@
AC_CHECK_HEADERS([boost/asio.hpp], , [AC_MSG_ERROR("boost::asio header not found.")])

# check for boost::unordered_set
-AC_CHECK_HEADERS([boost/tr1/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])
+AC_CHECK_HEADERS([boost/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])

# check for Crypto++
AC_CHECK_HEADERS([cryptopp/sha.h cryptopp/md5.h cryptopp/adler32.h cryptopp/hex.h cryptopp/base64.h cryptopp/hmac.h cryptopp/cryptlib.h], , [AC_MSG_ERROR("Required Crypto++ headers not found.")])
diff -Naur ./trunk.r3772/house.h ./tr1patch/house.h
--- ./trunk.r3772/house.h    2020-03-14 11:02:25.405958278 -0700
+++ ./tr1patch/house.h    2020-03-14 10:12:50.196045846 -0700
@@ -20,7 +20,7 @@
#include "otsystem.h"

#include <boost/regex.hpp>
-#include <boost/tr1/unordered_set.hpp>
+#include <boost/unordered_set.hpp>

#include "position.h"
#include "housetile.h"
@@ -73,7 +73,7 @@
         void getList(std::string& _list) const;

     private:
-        typedef std::tr1::unordered_set<uint32_t> PlayerList;
+        typedef boost::unordered_set<uint32_t> PlayerList;
         typedef std::list<std::pair<uint32_t, int32_t> > GuildList;
         typedef std::list<std::string> ExpressionList;
         typedef std::list<std::pair<boost::regex, bool> > RegexList;
excuse me wtf is this, what do i have to do with this?
 
excuse me wtf is this, what do i have to do with this?

Red represents a line removed
Green represents a line added

Even if you had literally never see a diff before, that should be obvious to anyone purporting to be competent enough to load code into an editor.
 
there is also a "-" and a "+"
Yeah I was looking around and I found one (the first one) but I could not compile yet I got another errors wuen I try to build.

These are the only one tr1 and unordered i found on every file of the sources
 

Attachments

Last edited:
Yes, the diff I presented alters the very lines you found. You can certainly do it manually if you can't figure out how to apply it as a patch. That's why I love diff and think the common method used here on the forum is garbage because it introduces too much formatting noise.

Diff:
-AC_CHECK_HEADERS([boost/tr1/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])
+AC_CHECK_HEADERS([boost/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])

This means find:
AC_CHECK_HEADERS([boost/tr1/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])
replace it with:
AC_CHECK_HEADERS([boost/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])

This is the very line you show from configure.ac in your screenshot.
 
Hello there! i have same problem, look this.. i have 3 days trying to compila a tfs 0.4 rev 3777 but gets this error at end.
i will appreciate for help!

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

EDIT: I've already make changes , in files: houses.h and configure.h
 
Since your CM doesn't appreciate my need to let flow the retrospective narrative resonant to the whimsy motivating my presence, and my fastidious productivity it seems you may need this yourself after all.

Boost TR1 was the C++ Technical Report 1 namespace. As of Boost 1.65 it was removed because those methods have either been made part of the C++11 std library or moved back into Boost.


Diff:
diff -Naur ./trunk.r3772/configure.ac ./tr1patch/configure.ac
--- ./trunk.r3772/configure.ac    2020-03-14 11:02:25.405958278 -0700
+++ ./tr1patch/configure.ac    2020-03-14 10:13:35.726044507 -0700
@@ -199,7 +199,7 @@
 AC_CHECK_HEADERS([boost/asio.hpp], , [AC_MSG_ERROR("boost::asio header not found.")])
 
 # check for boost::unordered_set
-AC_CHECK_HEADERS([boost/tr1/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])
+AC_CHECK_HEADERS([boost/unordered_set.hpp], , [AC_MSG_ERROR("boost::unordered_set header not found.")])
 
 # check for Crypto++
 AC_CHECK_HEADERS([cryptopp/sha.h cryptopp/md5.h cryptopp/adler32.h cryptopp/hex.h cryptopp/base64.h cryptopp/hmac.h cryptopp/cryptlib.h], , [AC_MSG_ERROR("Required Crypto++ headers not found.")])
diff -Naur ./trunk.r3772/house.h ./tr1patch/house.h
--- ./trunk.r3772/house.h    2020-03-14 11:02:25.405958278 -0700
+++ ./tr1patch/house.h    2020-03-14 10:12:50.196045846 -0700
@@ -20,7 +20,7 @@
 #include "otsystem.h"
 
 #include <boost/regex.hpp>
-#include <boost/tr1/unordered_set.hpp>
+#include <boost/unordered_set.hpp>
 
 #include "position.h"
 #include "housetile.h"
@@ -73,7 +73,7 @@
         void getList(std::string& _list) const;
 
     private:
-        typedef std::tr1::unordered_set<uint32_t> PlayerList;
+        typedef boost::unordered_set<uint32_t> PlayerList;
         typedef std::list<std::pair<uint32_t, int32_t> > GuildList;
         typedef std::list<std::string> ExpressionList;
         typedef std::list<std::pair<boost::regex, bool> > RegexList;
Man you fuck crush it!!!!
I did this adjusts and it works fine!! Thank you so much!!!!
 
Back
Top