Print

Print


I was trying to [build root from source](https://root-forum.cern.ch/t/building-from-source-root-v6-26-00-failing-with-openssl-on-macos-monterey/49078) and it turns out that it results in a compilation error in xrootd (details of that compilation error is available in that link I provided).

As noted in the link, my Mac running Monterey has openssl3 as default with other tools dependent on it.  As initially suggested, [I passed cmake option `-DWITH_OPENSSL3=TRUE` to xrootd build](https://root-forum.cern.ch/t/building-from-source-root-v6-26-00-failing-with-openssl-on-macos-monterey/49078/9) and got another compilation option.  

So went back and tried to explicitly [pass cmake openssl options to direct the compilation/linking of xrootd to an older openssl version (1.1.1m)](https://root-forum.cern.ch/t/building-from-source-root-v6-26-00-failing-with-openssl-on-macos-monterey/49078/10) that was still on my system, since I needed to keep openssl3 as the default since other tools were dependent on it.  Still got a failure.  As noted in the compilation error, while xrootd accepted the location of the older openssl version (as noted by its configuration log), but when compiling, the ordering of its include directories were wrong (should have placed the explicit openssl include the directory **before** other system include directories) --- this is the root cause of why it wasn't picking up openssl 1.1.1m headers.

Clearly xrootd won't build if there are two different versions of openssl on the system.  Also xrootd doesn't build even if pointed to openssl3 (which is the default on my system).



-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1649
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1