Mysql57-server and client Version 5.7.28 does not build with libressl. Both the same error: /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:505:27: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' | SSL_OP_NO_TLSv1_3 ^ /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:538:23: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' | SSL_OP_NO_TLSv1_3 ^ /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:564:12: warning: implicit declaration of function 'SSL_CTX_set_ciphersuites' is invalid in C99 [-Wimplicit-function-declaration] if (0 == SSL_CTX_set_ciphersuites(ssl_fd->ssl_context, ""))
mysql57-server have more errors: /ram/usr/ports/databases/mysql57-server/work/mysql-5.7.28/rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_ssl_transport.c:237:61: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' long ssl_ctx_options= SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1_3; ^ /ram/usr/ports/databases/mysql57-server/work/mysql-5.7.28/rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_ssl_transport.c:261:23: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' | SSL_OP_NO_TLSv1_3 ^ /ram/usr/ports/databases/mysql57-server/work/mysql-5.7.28/rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_ssl_transport.c:270:7: warning: implicit declaration of function 'SSL_CTX_set_ciphersuites' is invalid in C99 [-Wimplicit-function-declaration] if (SSL_CTX_set_ciphersuites(ssl_ctx, "") == 0)
I think the solutioin may like this: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-db/mysql-connector-c/files/mysql-connector-c-8.0.17-libressl.patch?id=823df5c504a2f7764e1f458eaa8b4c8dbb97c0df
Created attachment 209753 [details] proposed change of patch-cmake_ssl.cmake
Patch is for the mysql57-server.
A commit references this bug: Author: joneum Date: Fri Dec 6 19:02:44 UTC 2019 New revision: 519158 URL: https://svnweb.freebsd.org/changeset/ports/519158 Log: /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:505:27: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' | SSL_OP_NO_TLSv1_3 This fix a problem with libressl PR: 242474 Approved by: mmokhi (maintainer, implicit) Sponsored by: Netzkommune GmbH Changes: head/databases/mysql57-server/Makefile head/databases/mysql57-server/files/patch-cmake_ssl.cmake
Created attachment 209767 [details] proposed change of patch-client-cmake_ssl.cmake
Client still fails with: /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:505:27: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' | SSL_OP_NO_TLSv1_3 ^ /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:538:23: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' | SSL_OP_NO_TLSv1_3 ^ /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:564:12: warning: implicit declaration of function 'SSL_CTX_set_ciphersuites' is invalid in C99 [-Wimplicit-function-declaration] if (0 == SSL_CTX_set_ciphersuites(ssl_fd->ssl_context, ""))
re-open.
I'm afraid I don't have time to take care of this right now. A patch is welcome.
See comment6.
A commit references this bug: Author: joneum Date: Sat Dec 7 17:55:57 UTC 2019 New revision: 519226 URL: https://svnweb.freebsd.org/changeset/ports/519226 Log: /ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:505:27: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3' | SSL_OP_NO_TLSv1_3 This patch fix this error PR: 242474 Approved by: mmokhi (maintainer, implicit) Sponsored by: Netzkommune GmbH Changes: head/databases/mysql57-client/Makefile head/databases/mysql57-client/files/patch-cmake_ssl.cmake