[MacPorts] #52414: libarchive port fails problem with -pthread argument to clang

MacPorts noreply at macports.org
Tue Sep 27 00:28:07 CEST 2016


#52414: libarchive port fails problem with -pthread argument to clang
-------------------------+--------------------
  Reporter:  JustinCB@…  |      Owner:  toby@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.4
Resolution:              |   Keywords:
      Port:  libarchive  |
-------------------------+--------------------

Comment (by cal@…):

 Weird, the call of libtool seems to be correct:
 {{{
 ./libtool  --tag=CC   --mode=link /usr/bin/clang ... -L/Users/justin/lib
 ... -L/Users/justin/lib ... -llzma ...
 }}}
 but the actual linker invocation generated by libtool isn't:
 {{{
 libtool: link: /usr/bin/clang ... -L/Users/justin/lib ...
 /usr/lib/liblzma.dylib ...
 }}}
 For some reason, libtool turns the valid spec into
 `/usr/lib/liblzma.dylib`, which doesn't match the headers and doesn't have
 multithread support, so linking fails. This might be a side effect of
 libtool filtering some uncommon arguments in an effort to try to be
 helpful ("surely you don't want to link against these files in your $HOME,
 let me helpfully remove those for you").

 I assume you do have liblzma.dylib with those symbols in `~/lib`?

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


More information about the macports-tickets mailing list