Bug #76496 opensslv.h Version definition changed, ssl.cmake needs updating.
Submitted: 26 Mar 2015 18:49 Modified: 26 Mar 2015 19:01
Reporter: Matthew Chretien Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:mysql-cluster-gpl-7.4.5 OS:FreeBSD (8.3)
Assigned to: CPU Architecture:Any

[26 Mar 2015 18:49] Matthew Chretien
Description:
Compiling MySQL Cluster (and possibly MySQL) against system OpenSSL >= 1.0.2 fails to read the version number from the opensslv.h file, and therefore fails.

CMake output is:
-- OPENSSL_MAJOR_VERSION =
CMake Error at cmake/ssl.cmake:234 (MESSAGE):
   Cannot find appropriate system libraries for SSL.  Use WITH_SSL=bundled to
   enable SSL support
Call Stack (most recent call first):
   CMakeLists.txt:407 (MYSQL_CHECK_SSL)

How to repeat:
Download, compile, and install OpenSSL 1.0.2a on FreeBSD 8.3.
Download mysql-cluster-gpl-7.4.5, run cmake with option "-DWITH_SSL=system".

Suggested fix:
Update regex on line 169 from
REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
to
REGEX "^#[\t ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
[26 Mar 2015 19:01] Todd Farmer
Thanks for the bug report!  This is actually being handled in Bug#75622 (which is primarily about the same problem with OpenSSL 1.0.2), so I'm closing this as a duplicate.