[MacPorts] #70675: gh: Error: Failed to destroot gh: dyld: Symbol not found: _exit

MacPorts noreply at macports.org
Thu Sep 5 03:18:27 UTC 2024


#70675: gh:  Error: Failed to destroot gh: dyld: Symbol not found: _exit
--------------------------------+-------------------------------
  Reporter:  RobK88             |      Owner:  (none)
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.10.1
Resolution:                     |   Keywords:  elcapitan mtnlion
      Port:  gh legacy-support  |
--------------------------------+-------------------------------

Comment (by fhgwright):

 OK, the problem is this:
 {{{
 DEBUG: system -W
 /opt/local/var/macports/build/_opt_local_var_macports_sources_MacPro.local_rsync.macports.org_macports_release_tarballs_ports_devel_gh/gh/work/destroot/opt/local/bin:
 install_name_tool -change /usr/lib/libSystem.B.dylib
 /opt/local/lib/libMacportsLegacySupport.dylib gh
 }}}

 This is patching `gh` to use `libMacportsLegacySupport.dylib` ''instead
 of'' `libSystem.B.dylib`, which doesn't work, since
 `libMacportsLegacySupport.dylib` only provides ''added'' functions.  It
 would presumably complain about a zillion other missing definitions if it
 didn't stop on the first error.

 In most cases, builds using `legacy-support` arrange to use
 `libMacportsLegacySupport.dylib` ''in addition to'' the normal system
 library(s), not ''instead of''.  However, to accomodate situations such as
 this where that's not an option, it also provides
 `libMacportsLegacySystem.B.dylib`, which includes a passthrough for
 `libSystem.B.dylib`.  From the Portfile comment, it looks like it expects
 that behavior, and just uses the wrong library.

 A quick check on 10.9 shows that fixing the library name fixes ''that''
 bug, though it now gets:
 {{{
 Error: Failed to destroot gh: dyld: Symbol not found:
 _notify_is_valid_token
 }}}
 There's already a long-standing ticket #67520 for that, so this fix alone
 won't help systems older than 10.10 (including 10.8).

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


More information about the macports-tickets mailing list