[MacPorts] #64115: mysql8-8.0.27 won't build due to missing {{FIPS_}} function definitions

MacPorts noreply at macports.org
Fri Dec 3 00:25:26 UTC 2021


#64115: mysql8-8.0.27 won't build due to missing {{FIPS_}} function definitions
--------------------+-----------------------------
 Reporter:  posita  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:  MacPorts Future
Component:  ports   |    Version:  2.7.1
 Keywords:          |       Port:  mysql8
--------------------+-----------------------------
 From {{{main.log}}}:

 {{{
 :info:build /opt/local/macports-20211130/var/macports/build
 /_opt_local_macports-
 20211130_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.0.27/vio/viosslfactories.cc:500:19:
 error: use of undeclared identifier 'FIPS_mode'
 :info:build   fips_mode_old = FIPS_mode();
 :info:build                   ^
 :info:build /opt/local/macports-20211130/var/macports/build
 /_opt_local_macports-
 20211130_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.0.27/vio/viosslfactories.cc:505:14:
 error: use of undeclared identifier 'FIPS_mode_set'
 :info:build   if (!(rc = FIPS_mode_set(fips_mode))) {
 :info:build              ^
 :info:build /opt/local/macports-20211130/var/macports/build
 /_opt_local_macports-
 20211130_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.0.27/vio/viosslfactories.cc:513:5:
 error: use of undeclared identifier 'FIPS_mode_set'
 :info:build     FIPS_mode_set(fips_mode_old);
 :info:build     ^
 :info:build /opt/local/macports-20211130/var/macports/build
 /_opt_local_macports-
 20211130_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.0.27/vio/viosslfactories.cc:527:31:
 error: use of undeclared identifier 'FIPS_mode'
 :info:build uint get_fips_mode() { return FIPS_mode(); }
 :info:build                               ^
 :info:build /opt/local/macports-20211130/var/macports/build
 /_opt_local_macports-
 20211130_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.0.27/vio/viosslfactories.cc:535:27:
 error: use of un
 declared identifier 'FIPS_mode'
 :info:build   int ret = FIPS_mode_set(FIPS_mode() == 0 ? 1 : 0);
 :info:build                           ^
 }}}

 I'm not sure I quite understand what's missing here:

 {{{
 % ag 'int +FIPS_mode' /opt/local/macports-20211130
 /opt/local/macports-20211130/libexec/openssl11/include/openssl/crypto.h
 331:int FIPS_mode(void);
 332:int FIPS_mode_set(int r);
 ERR: Skipping /opt/local/macports-20211130/libexec/dbus-daemon-launch-
 helper: Error opening file: Permission denied

 /opt/local/macports-20211130/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/pypy/files/pypy37-openssl3.diff
 578:-int FIPS_mode_set(int);
 579:-int FIPS_mode(void);

 /opt/local/macports-20211130/lib/pypy/lib_pypy/_cffi_ssl/_cffi_src/openssl/fips.py
 16:int FIPS_mode_set(int);
 17:int FIPS_mode(void);

 /opt/local/macports-20211130/lib/pypy3.8/_cffi_ssl/_cffi_src/openssl/fips.py
 16:int FIPS_mode_set(int);
 17:int FIPS_mode(void);
 % find /opt/local/macports-20211130 -name crypto.h
 /opt/local/macports-20211130/libexec/openssl11/include/openssl/crypto.h
 /opt/local/macports-20211130/libexec/openssl3/include/openssl/crypto.h
 /opt/local/macports-20211130/include/gnutls/crypto.h
 }}}

 Is it picking up {{{crypto.h}}} from {{{openssl3}}}, I wonder?

-- 
Ticket URL: <https://trac.macports.org/ticket/64115>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list