Bug #95970 Add support for WITH_SSL=system using GCC on Solaris
Submitted: 25 Jun 8:55 Modified: 12 Jul 16:20
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.28 OS:Any
Assigned to: CPU Architecture:Any

[25 Jun 8:55] Tor Didriksen
Description:
The Oracle 'userland' project builds MySQL 5.7 on Solaris with the gcc compiler.
The build using -DWITH_SSL=system is broken for this compiler.
There are build warnings for usage of deprecated functions, by a macro redefinition.

How to repeat:
tdidriks@astra03
$/bin/gcc --version
gcc (GCC) 7.3.0

cmake <path to source> -DCMAKE_C_COMPILER=/bin/gcc -DCMAKE_CXX_COMPILER=/bin/g++ -DWITH_DEBUG=1 -DWITH_SSL=system

Suggested fix:
Silence the warnings.

Rename the mysql DEPRECATED macro, to not crash with 
/usr/include/openssl/ssl.h:# define DEPRECATED __attribute__((deprecated))
[12 Jul 16:20] Paul Dubois
Posted by developer:
 
Fixed in 5.7.28, 8.0.18.

For Solaris, -DWITH_SSL=system did not work when compiling with GCC.