Trying to upgrade to xrootd v6.0.0 in macOS Monterey on Intel x86_64 platform via Homebrew. I get the following error.
In file included from /private/tmp/xrootd-20260430-57844-x1j0r2/xrootd-6.0.0/src/XrdClS3/XrdClS3Factory.cc:21:
/private/tmp/xrootd-20260430-57844-x1j0r2/xrootd-6.0.0/src/XrdClS3/XrdClS3Factory.hh:137:17: error: no template named 'unordered_map' in namespace 'std'
static std::unordered_map<std::string, Credentials> m_bucket_location_map;
~~~~~^
/private/tmp/xrootd-20260430-57844-x1j0r2/xrootd-6.0.0/src/XrdClS3/XrdClS3Factory.hh:143:17: error: no template named 'unordered_map' in namespace 'std'
static std::unordered_map<std::string, std::pair<Credentials, std::chrono::steady_clock::time_point>> m_bucket_auth_map;
~~~~~^
In file included from /private/tmp/xrootd-20260430-57844-x1j0r2/xrootd-6.0.0/src/XrdClS3/XrdClS3Factory.cc:22:
/private/tmp/xrootd-20260430-57844-x1j0r2/xrootd-6.0.0/src/XrdClS3/XrdClS3File.hh:100:10: error: no template named 'unordered_map' in namespace 'std'
std::unordered_map<std::string, std::string> m_properties;
~~~~~^
/private/tmp/xrootd-20260430-57844-x1j0r2/xrootd-6.0.0/src/XrdClS3/XrdClS3Factory.cc:173:12: error: cannot initialize return object of type 'XrdCl::FilePlugIn *' with an rvalue of type 'XrdClS3::File *'
return new File(m_log);
^~~~~~~~~~~~~~~
4 errors generated.
gmake[2]: *** [src/XrdClS3/CMakeFiles/XrdClS3Obj.dir/build.make:96: src/XrdClS3/CMakeFiles/XrdClS3Obj.dir/XrdClS3Factory.cc.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/private/tmp/xrootd-20260430-57844-x1j0r2/xrootd-6.0.0/build'
gmake[1]: *** [CMakeFiles/Makefile2:3078: src/XrdClS3/CMakeFiles/XrdClS3Obj.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
One simply needs to do #include <unordered_map> in XrdClS3Factory.hh.
Is it possible to update this file on-the-fly ?
Trying to upgrade to xrootd v6.0.0 in macOS Monterey on Intel x86_64 platform via Homebrew. I get the following error.
One simply needs to do
#include <unordered_map>inXrdClS3Factory.hh.Is it possible to update this file on-the-fly ?