alisw / alidist

Recipes to build ALICE software
30 stars 164 forks source link

EL7 : presence of libmacaroons-devel breaks xrootd compilation because of alidist uuid #1995

Closed adriansev closed 4 years ago

adriansev commented 4 years ago

When libmacaroons-devel is detected by xrootd and it is enabled, the compilation breaks with:

DEBUG:XRootD:XRootD:v4.11.1: [ 98%] Linking CXX shared library libXrdFfs.so
DEBUG:XRootD:XRootD:v4.11.1: /home/physics-tools/alicebuild/sw/SOURCES/XRootD/v4.11.1/v4.11.1/src/XrdMacaroons/XrdMacaroonsHandler.cc: In member function 'std::string Macaroons::Handler::GenerateID(const string&, const XrdSecEntity&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, const string&)':
DEBUG:XRootD:XRootD:v4.11.1: /home/physics-tools/alicebuild/sw/SOURCES/XRootD/v4.11.1/v4.11.1/src/XrdMacaroons/XrdMacaroonsHandler.cc:114:12: error: aggregate 'uuid_t uu' has incomplete type and cannot be defined
DEBUG:XRootD:XRootD:v4.11.1:   114 |     uuid_t uu;
DEBUG:XRootD:XRootD:v4.11.1:       |            ^~
DEBUG:XRootD:XRootD:v4.11.1: /home/physics-tools/alicebuild/sw/SOURCES/XRootD/v4.11.1/v4.11.1/src/XrdMacaroons/XrdMacaroonsHandler.cc:115:5: error: 'uuid_generate_random' was not declared in this scope
DEBUG:XRootD:XRootD:v4.11.1:   115 |     uuid_generate_random(uu);
DEBUG:XRootD:XRootD:v4.11.1:       |     ^~~~~~~~~~~~~~~~~~~~
DEBUG:XRootD:XRootD:v4.11.1: /home/physics-tools/alicebuild/sw/SOURCES/XRootD/v4.11.1/v4.11.1/src/XrdMacaroons/XrdMacaroonsHandler.cc:117:5: error: 'uuid_unparse' was not declared in this scope; did you mean 'uuid_compare'?
DEBUG:XRootD:XRootD:v4.11.1:   117 |     uuid_unparse(uu, uuid_buf);
DEBUG:XRootD:XRootD:v4.11.1:       |     ^~~~~~~~~~~~
DEBUG:XRootD:XRootD:v4.11.1:       |     uuid_compare
DEBUG:XRootD:XRootD:v4.11.1: gmake[2]: *** [src/CMakeFiles/XrdMacaroons-4.dir/build.make:76: src/CMakeFiles/XrdMacaroons-4.dir/XrdMacaroons/XrdMacaroonsHandler.cc.o] Error 1

log files can be found here

ktf commented 4 years ago

@Atlantic777 any idea?

adriansev commented 4 years ago

for reference the compilation (devtoolset-7) with system dependencies (all of them but tests disabled) works without problems (libuuid-devel-2.23.2-61.el7_7.1.x86_64 libuuid-2.23.2-61.el7_7.1.x86_64)

Atlantic777 commented 4 years ago

I have just reproduced this, I'm working on it now.