Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678682 - dev-db/mysql-5.7.25 : /.../mysqld.cc:3422:3: error: OPENSSL_malloc_init was not declared in this scope
Summary: dev-db/mysql-5.7.25 : /.../mysqld.cc:3422:3: error: OPENSSL_malloc_init was n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-02-24 14:25 UTC by Toralf Förster
Modified: 2019-03-03 18:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.69 KB, text/plain)
2019-02-24 14:25 UTC, Toralf Förster
Details
dev-db:mysql-5.7.25:20190224-134422.log.bz2 (dev-db:mysql-5.7.25:20190224-134422.log.bz2,45.19 KB, application/x-bzip)
2019-02-24 14:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,166.61 KB, text/plain)
2019-02-24 14:25 UTC, Toralf Förster
Details
environment (environment,194.11 KB, text/plain)
2019-02-24 14:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.11 KB, application/x-bzip)
2019-02-24 14:25 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,187.13 KB, application/x-bzip)
2019-02-24 14:25 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,87.83 KB, application/x-bzip)
2019-02-24 14:25 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-02-24 14:25:12 UTC
                            ^~~~~~~~
/var/tmp/portage/dev-db/mysql-5.7.25/work/mysql/sql/mysqld.cc: In function ‘int init_ssl()’:
/var/tmp/portage/dev-db/mysql-5.7.25/work/mysql/sql/mysqld.cc:3422:3: error: ‘OPENSSL_malloc_init’ was not declared in this scope
   OPENSSL_malloc_init();
   ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-db/mysql-5.7.25/work/mysql/sql/mysqld.cc:3422:3: note: suggested alternative: ‘OPENSSL_malloc’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_libressl_20190221-040928

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.10.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO dev-db/mysql
[ebuild  N    ] dev-db/mysql-5.7.25  USE="libressl perl server -cjk (-client-libs) -cracklib -debug -experimental -jemalloc -latin1 -numa -profiling (-selinux) -static -static-libs -systemtap -tcmalloc -test -yassl" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2019-02-24 14:25:15 UTC
Created attachment 566338 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-24 14:25:18 UTC
Created attachment 566340 [details]
dev-db:mysql-5.7.25:20190224-134422.log.bz2
Comment 3 Toralf Förster gentoo-dev 2019-02-24 14:25:20 UTC
Created attachment 566342 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-02-24 14:25:23 UTC
Created attachment 566344 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-02-24 14:25:26 UTC
Created attachment 566346 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-24 14:25:29 UTC
Created attachment 566348 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-02-24 14:25:32 UTC
Created attachment 566350 [details]
temp.tbz2
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2019-02-24 15:27:17 UTC
Upstream has rewritten the failing code in 8.x: https://github.com/mysql/mysql-server/commit/cb3c40be5111f9209f57af4520cae0d937de43f5
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2019-02-24 15:47:13 UTC
Please see https://gitweb.gentoo.org/proj/mysql-extras.git/tree/20018_all_mysql-5.7.23-fix-libressl-support.patch -- in general we have a fix for that problem but it looks like you are using a newer LibreSSL version so that

> defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL

doesn't match anymore.

Because I don't use LibreSSL and cannot test I am not going to start patching problem for problem like we did with last release. Please come up with _one_ _tested_ patch we can apply to fix LibreSSL support.
Comment 10 Larry the Git Cow gentoo-dev 2019-03-03 18:44:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=c08bdd10a1c9d7e81532ecd9a1e5cb646c9cf0d1

commit c08bdd10a1c9d7e81532ecd9a1e5cb646c9cf0d1
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-03-03 18:37:18 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-03-03 18:42:54 +0000

    Replace mysql LibreSSL patch
    
    Bug: https://bugs.gentoo.org/678682
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 ...pport.patch => 20018_all_mysql-5.7.25-fix-libressl-support.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 11 Larry the Git Cow gentoo-dev 2019-03-03 18:57:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c7d28c0427dbe3de953bfaf06c77ecabe738e63

commit 8c7d28c0427dbe3de953bfaf06c77ecabe738e63
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-03-03 18:47:38 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-03-03 18:57:00 +0000

    dev-db/mysql: fix LibreSSL build
    
    Bug: https://bugs.gentoo.org/678682
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-db/mysql/Manifest            | 1 +
 dev-db/mysql/mysql-5.7.25.ebuild | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)