[MacPorts] #62656: rust @1.51.0 does not build on 10.9: Dyld: lazy symbol binding failed: Symbol not found: _linkat (OS 10.9)

MacPorts noreply at macports.org
Wed Apr 14 04:54:27 UTC 2021


#62656: rust @1.51.0 does not build on 10.9: Dyld: lazy symbol binding failed:
Symbol not found: _linkat (OS 10.9)
-------------------------+-----------------------
  Reporter:  cave-canem  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.99
Resolution:              |   Keywords:  mavericks
      Port:  rust        |
-------------------------+-----------------------

Comment (by kencu):

 To make cargo work on 10.9, you first make sure {{{git}}} is installed,
 then this magical incantation works:
 {{{
 export CARGO_NET_GIT_FETCH_WITH_CLI=true
 RUSTFLAGS="-C link-args=/opt/local/lib/libMacportsLegacySupport.a"
 DYLD_FORCE_FLAT_NAMESPACE=1
 DYLD_INSERT_LIBRARIES=/opt/local/lib/libMacportsLegacySupport.dylib cargo
 install ripgrep --verbose
 }}}
 and you get a very nice build of {{{ripgrep}}} with {{{rust}}} and it has
 {{{libMacportsLegacySupport.a}}} linked in statically, and (seems to)
 work:
 {{{
 $ uname -a
 Darwin Kernel Version 13.4.0: Mon Jan 11 18:17:34 PST 2016;
 root:xnu-2422.115.15~1/RELEASE_X86_64 x86_64
 $ rg
 error: The following required arguments were not provided:
     <PATTERN>

 USAGE:

     rg [OPTIONS] PATTERN [PATH ...]
     rg [OPTIONS] [-e PATTERN ...] [-f PATTERNFILE ...] [PATH ...]
     rg [OPTIONS] --files [PATH ...]
     rg [OPTIONS] --type-list
     command | rg [OPTIONS] PATTERN

 For more information try --help
 }}}

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


More information about the macports-tickets mailing list