Bug 261164 - databases/mysql80-client fails to build
Summary: databases/mysql80-client fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-12 22:11 UTC by Dave Hayes
Modified: 2022-03-05 10:21 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
This worked to build mysql (2.40 KB, text/plain)
2022-02-20 19:54 UTC, Dave Hayes
no flags Details
Worked to build the server (693 bytes, text/plain)
2022-02-22 17:16 UTC, Dave Hayes
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hayes 2022-01-12 22:11:09 UTC
The build failure encountered from a poudriere build is this:

[ 40%] Built target mysys_objlib
--- vio/CMakeFiles/vio_objlib.dir/all ---
--- vio/CMakeFiles/vio_objlib.dir/viosslfactories.cc.o ---
/wrkdirs/usr/ports/databases/mysql80-client/work/mysql-8.0.27/vio/viosslfactories.cc:538:27: error: use of undeclared identifier 'FIPS_mode'
  int ret = FIPS_mode_set(FIPS_mode() == 0 ? 1 : 0);
                          ^
1 error generated.
*** [vio/CMakeFiles/vio_objlib.dir/viosslfactories.cc.o] Error code 1

I should mention the following options in my make.conf:

DEFAULT_VERSIONS+=   pgsql=12 perl5=5.32 mysql=5.7 ssl=libressl python3=3.8

and the port options are:

OPTIONS_FILE_SET+=SASLCLIENT
OPTIONS_FILE_UNSET+=FIDO

I am trying to build both mysql 5.7 and 8.0 here at the same time. 5.7 works.
Comment 1 Jochen Neumeister freebsd_committer freebsd_triage 2022-01-14 23:28:11 UTC
if you have 5.7 as default, 8.0 can not build
Comment 2 Dave Hayes 2022-01-16 23:45:14 UTC
(In reply to Jochen Neumeister from comment #1)

I'm curious, is the reverse true?
Comment 3 Dave Hayes 2022-02-02 05:26:06 UTC
Reopening because I changed DEFAULT_VERSIONS to specify mysql 8:

DEFAULT_VERSIONS+=   pgsql=12 perl5=5.32 ssl=libressl python3=3.8 mysql=8.0

and I am still getting the exact same build issue. Additionally, this seems to affect at least one other person, so I changed the "affects" dropdown:

https://forums.freebsd.org/threads/problem-with-libressl.83421/
Comment 4 Dave Hayes 2022-02-02 05:27:19 UTC
I should mention this is the following git commit of Q12022 which I am building against:

# git log --oneline -n 1
cf82a1bec (HEAD -> 2022Q1, origin/2022Q1) security/strongswan: Update to 5.9.5
Comment 5 Dave Hayes 2022-02-20 19:54:40 UTC
Created attachment 231965 [details]
This worked to build mysql

This patch allows mysql8.0 to build with libressl.
Comment 6 Dave Hayes 2022-02-20 19:55:44 UTC
Actually, that got the client to build. The server did not.
Comment 7 Dave Hayes 2022-02-22 17:16:40 UTC
Created attachment 232013 [details]
Worked to build the server

This worked to build mysql80-server
Comment 8 commit-hook freebsd_committer freebsd_triage 2022-03-05 10:20:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8db2be1cbddd845d908ac64890cc9a4dbfcc8cdd

commit 8db2be1cbddd845d908ac64890cc9a4dbfcc8cdd
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2022-03-05 10:18:19 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2022-03-05 10:20:14 +0000

    databases/mysql80-*: Fix build with LibreSSL

    PR:     261164
    Sponsored by:   Netzkommune GmbH

 ...om__network__provider__ssl_native__lib.cc (new) | 20 +++++++++++++
 .../files/patch-vio_viosslfactories.cc             | 33 ++++++++++++++++------
 2 files changed, 45 insertions(+), 8 deletions(-)