[MacPorts] #68409: libgit2 @1.7.1: Undefined symbols _libiconv _libiconv_close _libiconv_open (was: libgit2 1.7.1 build failure at link time: undefined symbol libiconv)

MacPorts noreply at macports.org
Tue Oct 10 04:16:59 UTC 2023


#68409: libgit2 @1.7.1: Undefined symbols _libiconv _libiconv_close _libiconv_open
-----------------------+---------------------------
  Reporter:  jrabinow  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.8.1
Resolution:            |   Keywords:  sonoma, arm64
      Port:  libgit2   |
-----------------------+---------------------------
Changes (by ryandesign):

 * version:   => 2.8.1


Comment:

 Comparing the buildbot log of libgit2 1.7.1 on macOS 13 with your log from
 macOS 14, the buildbot log says:

 {{{
 -- Checking for module 'heimdal-gssapi'
 --   No package 'heimdal-gssapi' found
 -- Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES)
 }}}

 while yours says:

 {{{
 -- Found GSSAPI:
 /opt/local/lib/libgssapi_krb5.dylib;/opt/local/lib/libkrb5.dylib;/opt/local/lib/libk5crypto.dylib;/opt/local/lib/libcom_err.dylib
 }}}

 So this port is using kerberos5 opportunistically. It must be modified to
 either depend on kerberos5 or not to use kerberos5 even if it is
 installed. But this does not appear to be the cause of the libiconv
 problem because I have kerberos5 installed and was able to build libgit2
 from source successfully.

 Continuing on, the buildbot log says:

 {{{
 -- Looking for iconv_open
 -- Looking for iconv_open - not found
 -- Found Iconv: -L/opt/local/lib -liconv
 }}}

 while yours says:

 {{{
 -- Performing Test Iconv_IS_BUILT_IN
 -- Performing Test Iconv_IS_BUILT_IN - Failed
 -- Found Iconv: /opt/local/lib/libiconv.dylib (found version "1.17")
 }}}

 Strange that libiconv was found in both cases but apparently using
 different methods, one of which apparently works and the other doesn't.
 More investigation needed.

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


More information about the macports-tickets mailing list