[MacPorts] #56947: jack build fails on OSX 10.8.5 at link stage due to unspecified stdlib during link

MacPorts noreply at macports.org
Wed Aug 8 14:58:04 UTC 2018


#56947: jack build fails on OSX 10.8.5 at link stage due to unspecified stdlib
during link
----------------------+--------------------
  Reporter:  letaage  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.5.3
Resolution:           |   Keywords:
      Port:  jack     |
----------------------+--------------------

Comment (by kencu):

 The essential issue is that the software builds against the `libc++`
 headers on your system (I presume you have your system set up to use
 `libc++`), but during the link stage it is trying to link against
 `/usr/lib/libstdc++.dylib`, which it does by default if none is specified
 on the link line. It doesn't find the symbols it is looking to link
 against in that library, so it errors out.
 {{{
 :info:configure C++ compiler flags                          : ['-pipe',
 '-Os', '-stdlib=libc++', '-arch', 'x86_64', '-Wall',
 '-I/opt/local/include']
 :info:configure Linker flags                                :
 ['-L/opt/local/lib', '-Wl,-headerpad_max_install_names', '-arch',
 'x86_64']
 }}}
 The linker invocation should pull in the CXX flags, so it should take care
 of this without our intervention, but it doesn't.

 I'll take a look at this and see where that should be added in the build
 files. Alternatively, we sometimes just add it ourselves to the link
 flags.

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


More information about the macports-tickets mailing list