[MacPorts] #69628: Gildas 202303a fails to link on 10.8: Undefined symbols for architecture x86_64: "__ZNKSs7compareEPKc" etc.

MacPorts noreply at macports.org
Thu Apr 4 02:11:04 UTC 2024


#69628: Gildas 202303a fails to link on 10.8: Undefined symbols for architecture
x86_64:   "__ZNKSs7compareEPKc" etc.
---------------------------+--------------------------
  Reporter:  barracuda156  |      Owner:  bardeau
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.1
Resolution:                |   Keywords:  mountainlion
      Port:  gildas        |
---------------------------+--------------------------

Comment (by ryandesign):

 Replying to [comment:3 barracuda156]:
 > > so you likely need to manually put {{{-stdlib=libc++}}} into the
 cxxflags.

 You should not ''literally'' write `-stdlib=libc++` in the Portfile, of
 course; you should use `-stdlib=${configure.cxx_stdlib}` since the user
 could conceivably change its value in macports.conf and its default
 differs based on the macOS version.

 > Did not know that. But why? Apple switched to `libc++` starting from
 10.7, didn’t it?

 Apple started including libc++ in /usr/lib in OS X 10.7 and switched its
 versions of clang to use it by default in OS X 10.9.

 On Mac OS X 10.6, MacPorts installs its own build of libc++ in /usr/lib
 since Apple didn't provide one, and by default MacPorts uses libc++ on Mac
 OS X 10.6 and later.

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


More information about the macports-tickets mailing list