On a basically fresh checkout (I had grabbed it originally a couple of
weeks ago, though hadn't built it, and just issued "git pull" to update)
on my up-to-date Snow Leopard system, ./configure is failing with:
-- Performing Test openssl_greater_than_0_9_7
-- Performing Test openssl_greater_than_0_9_7 - Failed
CMake Error at cmake/OpenSSLTests.cmake:41 (message):
OpenSSL >= v0.9.7 required
Call Stack (most recent call first):
CMakeLists.txt:165 (include)
However, "openssl version" reports:
OpenSSL 1.0.0d 8 Feb 2011
Perhaps there's some sort of search path confusion going on? In general,
I have now idea how to fix this - please advise.
-- Performing Test openssl_greater_than_0_9_7
-- Performing Test openssl_greater_than_0_9_7 - Failed
CMake Error at cmake/OpenSSLTests.cmake:41 (message):
OpenSSL >= v0.9.7 required
Call Stack (most recent call first):
CMakeLists.txt:165 (include)
Higher up in the ./configure output it should tell which libs it found,
e.g:
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
Can you show me what that says for you and also send the contents of
build/CMakeFiles/CMakeError.log ?
However, "openssl version" reports:
OpenSSL 1.0.0d 8 Feb 2011
Perhaps there's some sort of search path confusion going on?
Yeah, I don't think that's the openssl that comes with snow leopard,
so there's probably a mismatch going on somewhere.
In general, I have now idea how to fix this - please advise.
There's a --with-openssl option you can give to configure to try and
force which installation of openssl you want.
But generally this should work automatically on Mac for common package
managers (homebrew, macports, and fink), so there's probably something
in the CMake scripts I need to fix again.
Perhaps there's some sort of search path confusion going on?
Yeah, I don't think that's the openssl that comes with snow leopard,
so there's probably a mismatch going on somewhere.
Yep. Snow Leopard ships with an openssl < 1.0 but macports has one > 1.0.
But generally this should work automatically on Mac for common package
managers (homebrew, macports, and fink), so there's probably something
in the CMake scripts I need to fix again.
FWIW, I tried it on my Snow Leopard with macports and it worked for me:
-- Found OpenSSL: /opt/local/lib/libssl.dylib;/opt/local/lib/libcrypto.dylib
Can you show me what that says for you and also send the contents of
build/CMakeFiles/CMakeError.log ?
Ah, now that I know to look there, I see the problem. It looks like the
OpenSSL setup I cloned a few days ago from my previous laptop has an
architecture mismatch for my new laptop. Time to rebuild. If you don't
hear from me (other than howls of dismay over MacPorts clunkiness ;-),
then that was indeed the problem.