[MacPorts] #60655: flatbuffers: error: use of undeclared identifier 'asprintf_l'
MacPorts
noreply at macports.org
Sun Jun 14 21:57:55 UTC 2020
#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
Keywords: mountainlion | Port: flatbuffers
--------------------------+-------------------------
[https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/16191/steps
/install-port/logs/stdio flatbuffers fails to build on Mountain Lion] with
this error:
{{{
In file included from
/opt/local/libexec/llvm-9.0/bin/../include/c++/v1/sstream:173:
In file included from
/opt/local/libexec/llvm-9.0/bin/../include/c++/v1/ostream:140:
/opt/local/libexec/llvm-9.0/bin/../include/c++/v1/locale:1571:20: error:
use of undeclared identifier 'asprintf_l'
__nc = __libcpp_asprintf_l(&__nb, _LIBCPP_GET_C_LOCALE, __fmt,
(int)__iob.precision(), __v);
^
/opt/local/libexec/llvm-9.0/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__)
^
}}}
[https://bugs.llvm.org/show_bug.cgi?id=10478 this llvm bug report]
suggests defining `_DARWIN_C_SOURCE` is the solution.
--
Ticket URL: <https://trac.macports.org/ticket/60655>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list