Bug #87996 DYNAMIC LINKING WITH OPENSSL for ndbcluster ON MACOS
Submitted: 5 Oct 2017 14:51 Modified: 24 Jan 2018 17:26
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.4 OS:Any
Assigned to: CPU Architecture:Any

[5 Oct 2017 14:51] Tor Didriksen
Description:
This extends the patch for
Bug #26134893 DYNAMIC LINKING WITH OPENSSL ON MACOS
to also handle ndbcluster binaries.

How to repeat:
cmake -DWITH_NDBCLUSTER=1 -DWITH_SSL=/path/to/ssl

Suggested fix:
Link with copied libraries, rather then the original ones.
[24 Jan 2018 17:26] Paul DuBois
Posted by developer:
 
Fixed in 8.0.4, 9.0.0.

All MySQL binary distributions now are linked against OpenSSL,
including Community distributions, which previously were linked
against yaSSL. In addition, OpenSSL is linked dynamically rather than
statically, which enables substitution of alternative SSL libraries
for use with MySQL if desired. For some platforms, binary
distributions bundle OpenSSL libraries to ensure library
availability:

Windows: Distributions bundle libeay32.dll and ssleay32.dll, which
are installed in the same directory as MySQL binaries. Other
libraries can be used by replacing those library files with
alternatives, or by using some other library-selection method
supported on Windows. (See
https://msdn.microsoft.com/en-us/library/7d83bc18.aspx.)

macOS: Distributions bundle libssl.dylib and libcrypto.dylib. MySQL
binaries are linked to expect the libraries in the same directory,
and symbolic links there point to the actual library locations.

Linux (for generic compressed tar file distributions only):
Distributions bundle libssl.so and libcrypt.so,which are installed in
the same directory as the libmysqlclient.so client library.