[MacPorts] #60655: flatbuffers: error: use of undeclared identifier 'asprintf_l'

MacPorts noreply at macports.org
Fri Aug 18 23:18:53 UTC 2023


#60655: flatbuffers: error: use of undeclared identifier 'asprintf_l'
--------------------------+--------------------------
  Reporter:  ryandesign   |      Owner:  herbygillot
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.2
Resolution:               |   Keywords:  mountainlion
      Port:  flatbuffers  |
--------------------------+--------------------------

Comment (by mascguy):

 Replying to [comment:3 mascguy]:
 > Add another port to the list: `abseil`. We're now seeing the following,
 for 10.8 and earlier:
 >
 > {{{
 > 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,
 >         ^
 > }}}

 Sorry, that was for `snprintf_l`, albeit with the same general pattern.
 And also for `asprintf_l`:

 {{{
 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/60655#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list