[MacPorts] #66601: kerberos5 @1.20.1 build failure: error: implicit declaration of function 'explicit_bzero'

MacPorts noreply at macports.org
Sun Jan 22 13:58:13 UTC 2023


#66601: kerberos5 @1.20.1 build failure: error: implicit declaration of function
'explicit_bzero'
---------------------------------+------------------------
  Reporter:  fxt44               |      Owner:  ryandesign
      Type:  defect              |     Status:  assigned
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:
Resolution:                      |   Keywords:
      Port:  kerberos5 libressl  |
---------------------------------+------------------------

Comment (by Zweihorn):

 Tried 'port install kerberos5' on platform

 - macOS 11.7.2 20G1020 x86_64
 - Command Line Tools 13.2.0.0.1.1638488800

 and found this:

 {{{
 % port installed | grep ssl
   curl @7.87.0_0+http2+ssl (active)
   libressl @3.6.1_0 (active)
   openssl11 @1.1.1s_0 (active)


 % sudo port install kerberos5
 . . .
 k5buf.c:94:9: error: implicit declaration of function 'explicit_bzero' is
 invalid in C99 [-Werror,-Wimplicit-function-declaration]
         zap(buf->data, buf->len);
         ^
 ../../include/k5-platform.h:1028:24: note: expanded from macro 'zap'
 # define zap(ptr, len) explicit_bzero(ptr, len)
                        ^
 k5buf.c:107:9: error: implicit declaration of function 'explicit_bzero' is
 invalid in C99 [-Werror,-Wimplicit-function-declaration]
         zap(buf->data, buf->len);
         ^
 ../../include/k5-platform.h:1028:24: note: expanded from macro 'zap'
 # define zap(ptr, len) explicit_bzero(ptr, len)
                        ^
 k5buf.c:222:9: error: implicit declaration of function 'explicit_bzero' is
 invalid in C99 [-Werror,-Wimplicit-function-declaration]
         zap(tmp, strlen(tmp));
         ^
 ../../include/k5-platform.h:1028:24: note: expanded from macro 'zap'
 # define zap(ptr, len) explicit_bzero(ptr, len)
                        ^
 k5buf.c:269:9: error: implicit declaration of function 'explicit_bzero' is
 invalid in C99 [-Werror,-Wimplicit-function-declaration]
         zap(buf->data, buf->len);
         ^
 ../../include/k5-platform.h:1028:24: note: expanded from macro 'zap'
 # define zap(ptr, len) explicit_bzero(ptr, len)
                        ^
 4 errors generated.
 make[2]: *** [k5buf.so] Error 1
 make[2]: *** Waiting for unfinished jobs....
 make[2]: Leaving directory `/opt/macports-test/var/macports/build
 /_opt_macports-
 test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.20.1/src/util/support'
 make[1]: *** [all-recurse] Error 1
 make[1]: Leaving directory `/opt/macports-test/var/macports/build
 /_opt_macports-
 test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.20.1/src/util'
 make: *** [all-recurse] Error 1
 make: Leaving directory `/opt/macports-test/var/macports/build
 /_opt_macports-
 test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.20.1/src'
 Command failed:  cd "/opt/macports-test/var/macports/build/_opt_macports-
 test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.20.1/src"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build kerberos5: command execution failed
 DEBUG: Error code: CHILDSTATUS 99797 2
 DEBUG: Backtrace: command execution failed
 DEBUG:     while executing
 DEBUG: "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 DEBUG:     invoked from within
 DEBUG: "command_exec -callback portprogress::target_progress_callback
 build"
 DEBUG:     (procedure "portbuild::build_main" line 8)
 DEBUG:     invoked from within
 DEBUG: "$procedure $targetname"
 Error: See /opt/macports-test/var/macports/logs/_opt_macports-
 test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/main.log
 for details.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66601#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list