[MacPorts] #61987: gobject-introspection @1.60.2_4 : g-ir-scanner producing executable with linking problems

MacPorts noreply at macports.org
Mon Jan 4 21:00:38 UTC 2021


#61987: gobject-introspection @1.60.2_4 : g-ir-scanner producing executable with
linking problems
----------------------------------------------+--------------------
  Reporter:  serge-cohen                      |      Owner:  (none)
      Type:  defect                           |     Status:  new
  Priority:  Normal                           |  Milestone:
 Component:  ports                            |    Version:  2.6.4
Resolution:                                   |   Keywords:
      Port:  gobject-introspection @1.60.2_4  |
----------------------------------------------+--------------------

Comment (by kencu):

 g-ir-scanner monkeys around with DYLD_LIBRARY_PATH and similar library
 linking guts, often with ill effects.

 libiconv has been set up to flag these errors by having purposefully
 different symbols for system vs user installed versions of libiconv, so
 this library often shows the issue (as it is supposed to) but it is not
 the source of the problem.

 In this case, /usr/lib/libarchive.2.dylib is thinking it is linked against
 /usr/lib/liconv.2.dylib, and so therefore uses the _iconv symbol, but it
 is being redirected to /opt/local/lib/libiconv.2.dylib that does not have
 that symbol.

 {{{
 % nm /usr/lib/libiconv.2.dylib | grep iconv
 00000000000f2710 D __libiconv_version
 0000000000002390 T _iconv
 0000000000014170 s _iconv_2VersionNumber
 0000000000014140 s _iconv_2VersionString
 00000000000026ab T _iconv_canonicalize
 00000000000023b2 T _iconv_close
 0000000000001095 T _iconv_open
 00000000000023bf T _iconvctl
 00000000000024b4 T _iconvlist
 0000000000013fac T _libiconv_set_relocation_prefix
 }}}

 {{{
 % nm /opt/local/lib/libiconv.2.dylib | grep iconv
 00000000000f60c0 D __libiconv_version
 0000000000002ae9 T _iconv_canonicalize
 0000000000002353 T _libiconv
 0000000000002375 T _libiconv_close
 0000000000001058 T _libiconv_open
 0000000000002382 T _libiconv_open_into
 0000000000015b87 t _libiconv_relocate
 0000000000015c59 t _libiconv_relocate2
 0000000000015ad1 T _libiconv_set_relocation_prefix
 00000000000027f8 T _libiconvctl
 00000000000028f0 T _libiconvlist
 }}}

 g-ir-scanner is a huge PITA for this reason, and we've been trying for
 months to get it right, without full success.

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


More information about the macports-tickets mailing list