[MacPorts] #67988: abseil: builds failing for 10.7/10.8; undeclared identifiers 'snprintf_l' and 'asprintf_l'

MacPorts noreply at macports.org
Sat Aug 19 00:36:13 UTC 2023


#67988: abseil: builds failing for 10.7/10.8; undeclared identifiers 'snprintf_l'
and 'asprintf_l'
----------------------+-------------------------------
  Reporter:  mascguy  |      Owner:  judaew
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.8.1
Resolution:           |   Keywords:  lion mountainlion
      Port:  abseil   |
----------------------+-------------------------------

Comment (by mascguy):

 Based on a `cmake` ticket from three years ago, these functions - provided
 by `xlocale.h` - may be guarded with `_DARWIN_C_SOURCE` [for 10.7/10.8].

 That ticket is: issue:60885

 With the ultimate fix being the following, still in place today:

 {{{
 platform darwin {
     if {${os.major} >= 11 && ${os.major} <= 12} {
         # some functions in xlocale.h are hidden without this define
         # https://trac.macports.org/ticket/60885
         configure.cxxflags-append -D_DARWIN_C_SOURCE
     }
 }
 }}}

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


More information about the macports-tickets mailing list