Support for statically linking OpenSSL

Description

We recently found it convenient to build the mysql client utilities from source and statically link against OpenSSL1.1. With upstream MySQL 5.7.23 this was easy:

 

With Percona-Server 5.7.23 (or earlier) everything builds, but the client utilities will fail to resolve wildcard certificates.

 

 

In CMakeFiles/CMakeError.log we see:

 

 

 

Additionally, we ran into PS-4773 when attempting to *only* compile the client utilities (-DWITHOUT_SERVER=ON). 

Upstream MySQL 5.7.23 seems to have simpler OpenSSL version detection and does not use this style of symbol probing so it does not fail in this way.  We would prefer to use percona-server utilities, as we are exclusively running mysqld from percona-server, so are interested in seeing this situation improve.

 

Environment

None

Smart Checklist

Activity

Lalit Choudhary April 26, 2019 at 12:20 PM

Hi

Thank you for the report.

Could please help us with the following information,

  1. Are using Percona server source or PXC ?

  2. Provide exact CMake command you are using and OS details.

 

Incomplete

Details

Assignee

Reporter

Affects versions

Priority

Smart Checklist

Created October 12, 2018 at 4:20 AM
Updated March 6, 2024 at 10:25 PM
Resolved July 8, 2019 at 8:52 AM