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

MacPorts noreply at macports.org
Fri Aug 18 23:46:33 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
 Keywords:  lion mountainlion  |       Port:  abseil
-------------------------------+----------------------
 Details, which are similar to issue:60655, are as follows:

 {{{
 In file included from
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/ostream:172:
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/locale:1627:16: error:
 use of undeclared identifier 'snprintf_l'; did you mean 'vswprintf_l'?
     int __nc = __libcpp_snprintf_l(__nar, sizeof(__nar),
 _LIBCPP_GET_C_LOCALE, "%p", __v);
                ^
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/__bsd_locale_defaults.h:32:61:
 note: expanded from macro '__libcpp_snprintf_l'
 #define __libcpp_snprintf_l(...)
 snprintf_l(__VA_ARGS__)
                                                             ^
 /usr/include/xlocale/_wchar.h:54:5: note: 'vswprintf_l' declared here
 int     vswprintf_l(wchar_t * __restrict, size_t n, locale_t,
         ^

 [...]

 In file included from
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/ostream:172:
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/locale:3365:15: error:
 use of undeclared identifier 'asprintf_l'; did you mean 'vsprintf_l'?
         __n = __libcpp_asprintf_l(&__bb, _LIBCPP_GET_C_LOCALE, "%.0Lf",
 __units);
               ^
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/__bsd_locale_defaults.h:33:61:
 note: expanded from macro '__libcpp_asprintf_l'
 #define __libcpp_asprintf_l(...)
 asprintf_l(__VA_ARGS__)
                                                             ^
 /usr/include/xlocale/_stdio.h:45:6: note: 'vsprintf_l' declared here
 int      vsprintf_l(char * __restrict, locale_t, const char * __restrict,
 va_list)
          ^
 }}}

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


More information about the macports-tickets mailing list