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 and got another compilation error.
@jade2k11598 Please check out PR #1661 where XRootD is building from source fine against openssl3
installed with brew
.
brew
gives clear instructions on how to use installed libraries with compilers
...
openssl@3 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
If you need to have openssl@3 first in your PATH, run:
echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> /Users/runner/.bash_profile
For compilers to find openssl@3 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
For pkg-config to find openssl@3 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
but note that the approach used in PR #1661 is similar to the approach used in
https://github.com/xrootd/xrootd/blob/62d11709ca6247cec3c40596be7b9948f885f9e3/.gitlab-ci.yml#L273
which goes for explicitly passing the OPENSSL_SSL_LIBRARY
, OPENSSL_CRYPTO_LIBRARY
, and OPENSSL_INCLUDE_DIR
options to CMake at build configure time.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
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