`man 3 asprintf` claims that asprintf() is available under both GNU and *BSD systems, but it is not available when using bsd/stdio.h. This provides the following QA notice when compiling a port of btxld:
* QA Notice: Package triggers severe warnings which indicate that it
* may exhibit random runtime failures.
* btxld.c:557:2: warning: implicit declaration of function 'asprintf' [-Wimplicit-function-declaration]
It looks like we can turn this on by setting __USE_GNU, but that would have consequences beyond providing asprintf(). It might be easier to patch the bsd/stdio.h header to provide a asprintf() function prototype, but the correct solution probably requires more thinking.
After filing this report to...
...please include the link in the "See also: " field and CC email@example.com in the upstream bugzilla.
I receive so much bug mail that I missed your responses. Anyway, I have filed the upstream bug as you requested.
(In reply to Samuli Suominen from comment #4)
Upstream closed the bug because of no response -> https://bugs.freedesktop.org/show_bug.cgi?id=57643#c2