jiloprinter.blogg.se

Openssl for mac download
Openssl for mac download








openssl for mac download

I don’t know why during compilation it’s not picking up the specified header version of openssl during cmake’s configuration. I specifically set the cmake configuration to reference openssl root at /opt/local/libexec/openssl11, which has the include & lib: jade$ ls -l /opt/local/libexec/openssl11ĭrwxr-xr-x 4 root admin 128 Mar 5 18:46 binĭrwxr-xr-x 3 root admin 96 Mar 5 18:46 etcĭrwxr-xr-x 3 root admin 96 Mar 5 18:46 includeĭrwxr-xr-x 10 root admin 320 Mar 5 18:46 libĭrwxr-xr-x 4 root admin 128 Mar 5 18:46 share Lrwxr-xr-x 1 root admin 43 Dec 20 00:57 /opt/local/include/openssl -> /opt/local/libexec/openssl3/include/opensslĪs I noted earlier, I really don’t want to redirect where /opt/local/include/openssl points to, since other tools are dependent on it.

openssl for mac download

I don’t know why when it compiles it’s still referencing headers at /opt/local/include/openssl (which is pointed to openssl3): jade$ ls -l /opt/local/include/openssl – Found OpenSSL: /opt/local/libexec/openssl11/lib/libcrypto.dylib (found version “1.1.1m”)īut when I build it I get the same compilation error: /Users/jade/thirdParty/root-6.26.00/build-dir/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdCrypto/:504:19: error: no matching function for call to 'RSA_private_encrypt' With the above cmake option, during its configuration, it finally recognized the correct version of openssl: So I then tried the other cmake option -DOPENSSL_ROOT_DIR: cmake -DCMAKE_INSTALL_PREFIX=/Users/jade/thirdParty/root-6.26.00/build-artifact -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -Droot7=ON -DOPENSSL_ROOT_DIR=/opt/local/libexec/openssl11/. It is pointed to the correct and older version of openssl library but notes the wrong version. – Found OpenSSL: /opt/local/libexec/openssl11/lib/libcrypto.dylib (found version “3.0.1”) īut despite using these cmake openssl options, the configuration log noted this: So I attempted to set the cmake configuration to reference the older openssl (1.1.1m) version instead of the default openssl3: cmake -DCMAKE_INSTALL_PREFIX=/Users/jade/thirdParty/root-6.26.00/build-artifact -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -Droot7=ON -DOPENSSL_INCLUDE_DIR=/opt/local/libexec/openssl11/include -DOPENSSL_CRYPTO_LIBRARY=/opt/local/libexec/openssl11/lib/libcrypto.dylib -DOPENSSL_SSL_LIBRARY=/opt/local/libexec/openssl11/lib/libssl.dylib. I do still have older openssl (1.1.1m) still present on my system but on a different directory. So I figured that root won’t build with a newer openssl but I can’t downgrade the default version of openssl since other tools are dependent on openssl3. – Found OpenSSL: /opt/local/libexec/openssl3/lib/libcrypto.dylib (found version “3.0.1”) Int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to,ĭuring cmake configuration, it picked up openssl3: opt/local/include/openssl/rsa.h:285:5: note: candidate function not viable: 4th argument ('const struct rsa_st *') would lose const qualifier If ((lout = RSA_private_encrypt(lc, (unsigned char *)&in, īut when attempting to build it, I get this compilation error: /Users/jade/thirdParty/root-6.26.00/build-dir/builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdCrypto/:504:19: error: no matching function for call to 'RSA_private_encrypt' I downloaded root_v6.26.00. and attempted to build it on my MacOS Monterey using cmake (cmake version 3.22.2) option: cmake -DCMAKE_INSTALL_PREFIX=/Users/jade/thirdParty/root-6.26.00/build-artifact -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -Droot7=ON.










Openssl for mac download