Opened 12 months ago
Closed 12 months ago
New minor version.
/usr/bin/ld: src/bison-complain.o: in function `warnings_print_categories':
/tmp/bison-3.7/src/complain.c:457: undefined reference to `ostream_printf'
Already reported upstream by gentoo in thread which starts at https://lists.gnu.org/archive/html/bug-bison/2020-07/msg00033.html
Upstream is being too clever. There is one place that uses ostream_printf and another that uses styled_ostream_set_hyperlink, These are just used to format error messages in complain.c.
I was able to get bison to build by adding the following:
static inline ptrdiff_t
ostream_printf (ostream_t stream, const char *format, ...)
va_start (args, format);
ret = vasprintf (&temp_string, format, args);
if (ret >= 0)
if (ret > 0)
ostream_write_str (stream, temp_string);
to complain.c. I also needed to comment out styled_ostream_set_hyperlink in two places. I took the ostream_printf function from lib/textstyle.in.h.
I'd rather add a patch to bison rather than a new library.
Seems to build OK with gettext-0.21. Patch not needed. All tests pass.
GNU Bison NEWS
Fixed at revision 12007.
Powered by Trac 1.5.3.dev0
By Edgewall Software
© 1998-2021 Gerard Beekmans.