While building O2 I run into some issue with XRootD. To me it seems to be some Python issue, I added the log below. I am running ubuntu 21.04 (Hirsute Hippo)
When I aliDoctor O2 I also get FreeType as package that could not be picked up from the system while I have apt-get installed libfreetype-dev, libfreetype6 and libfreetype6-dev. Also OpenSSL is there while I have installed libssl1.0 and libssl-dev
From the log file it looks like a missing include:
/home/4168658@soliscom.uu.nl/alice/sw/BUILD/f45026d46ef45e18866a8104d8681cc3d9afeaff/XRootD/src/XrdPosix/XrdPosix.cc: In function ‘int XrdPosix_Fstat(int, stat*)’:
/home/4168658@soliscom.uu.nl/alice/sw/BUILD/f45026d46ef45e18866a8104d8681cc3d9afeaff/XRootD/src/XrdPosix/XrdPosix.cc:379:27: error: ‘_STAT_VER’ was not declared in this scope
379 | : Xunix.Fstat64(_STAT_VER, fildes, (struct stat64 *)buf));
| ^~~~~~~~~
/home/4168658@soliscom.uu.nl/alice/sw/BUILD/f45026d46ef45e18866a8104d8681cc3d9afeaff/XRootD/src/XrdPosix/XrdPosix.cc: In function ‘int XrdPosix_Lstat(const char*, stat*)’:
/home/4168658@soliscom.uu.nl/alice/sw/BUILD/f45026d46ef45e18866a8104d8681cc3d9afeaff/XRootD/src/XrdPosix/XrdPosix.cc:563:27: error: ‘_STAT_VER’ was not declared in this scope
563 | ? Xunix.Lstat64(_STAT_VER, path, (struct stat64 *)buf)
| ^~~~~~~~~
/home/4168658@soliscom.uu.nl/alice/sw/BUILD/f45026d46ef45e18866a8104d8681cc3d9afeaff/XRootD/src/XrdPosix/XrdPosix.cc: In function ‘int XrdPosix_Stat(const char*, stat*)’:
/home/4168658@soliscom.uu.nl/alice/sw/BUILD/f45026d46ef45e18866a8104d8681cc3d9afeaff/XRootD/src/XrdPosix/XrdPosix.cc:891:26: error: ‘_STAT_VER’ was not declared in this scope
891 | ? Xunix.Stat64(_STAT_VER, path, (struct stat64 *)buf)
Since Ubuntu 21.04 is quite new, we do not have experience with it. What is the g++ version there?
@bhofman you could try to use xrootd in development mode (tag 5.1.1) and recompile and see how it goes … the problem would be that you also need a root 6.22
Hi! no, i did not do alidist modifications … when i tried the xrootd 5.1 i used it in development mode, meaning that in the directory to be used as target for alibuild i had these:
and the root was checkout to tag v6-22-08 and xrootd to v5.1.1
N.B. you need these exact names in order to be used instead of the versions from sw directory