Cannot build Percona Server on Debian Stretch

Bug #1702903 reported by EvgeniyPatlan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Fix Released
High
Yura Sorokin
5.6
Fix Released
High
Yura Sorokin
5.7
Fix Released
High
Yura Sorokin

Bug Description

It is not possible to build Percona-Server on stretch due to issues with openssl1.1
[ 7%] Building CXX object mysys_ssl/CMakeFiles/mysys_ssl.dir/my_aes_openssl.cc.o
/root/mysql-server/mysys_ssl/my_aes_openssl.cc: In function 'int my_aes_encrypt(const unsigned char*, uint32, unsigned char*, const unsigned char*, uint32, my_aes_opmode, const unsigned char*, bool)':
/root/mysql-server/mysys_ssl/my_aes_openssl.cc:125:18: error: aggregate 'EVP_CIPHER_CTX ctx' has incomplete type and cannot be defined
   EVP_CIPHER_CTX ctx;
                  ^~~
/root/mysql-server/mysys_ssl/my_aes_openssl.cc: In function 'int my_aes_decrypt(const unsigned char*, uint32, unsigned char*, const unsigned char*, uint32, my_aes_opmode, const unsigned char*, bool)':
/root/mysql-server/mysys_ssl/my_aes_openssl.cc:162:18: error: aggregate 'EVP_CIPHER_CTX ctx' has incomplete type and cannot be defined
   EVP_CIPHER_CTX ctx;
                  ^~~
mysys_ssl/CMakeFiles/mysys_ssl.dir/build.make:302: recipe for target 'mysys_ssl/CMakeFiles/mysys_ssl.dir/my_aes_openssl.cc.o' failed
make[2]: *** [mysys_ssl/CMakeFiles/mysys_ssl.dir/my_aes_openssl.cc.o] Error 1
CMakeFiles/Makefile2:5309: recipe for target 'mysys_ssl/CMakeFiles/mysys_ssl.dir/all' failed
make[1]: *** [mysys_ssl/CMakeFiles/mysys_ssl.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Using the patch attached to this ticket I was able to build binaries

Revision history for this message
EvgeniyPatlan (evgeniy-patlan) wrote :
summary: - Cannot build on stretch
+ Cannot build Percona Server on Debian Stretch
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

I also have an *experimental* OpenSSL 1.1 support patch developed previously, at https://github.com/laurynas-biveinis/percona-server/commit/8a4295c2417e738d93a64771880e92994d02ef52

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

IIRC, Sergei has also done some work in XtraBackup too

Revision history for this message
Yura Sorokin (yura-sorokin) wrote :
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

The testcase bits are incomplete for the X plugin, see bug 1706055

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1105

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.