Package: bison Version: 2:3.6.1+dfsg-2 Severity: serious Control: block 960410 with -1 Control: block 960371 with -1
At least two packages FTBFS with the latest bison with some yyerror related error message. I had a short look into the libexplain failure and found the following: In libexplain/acl_grammar.yacc.c (generated from libexplain/acl_grammar.y), these bits are new in 3.6.1 (they were not generated by 3.5.3): ... enum acl_grammar_tokentype { acl_grammar_EMPTY = -2, acl_grammar_EOF = 0, /* "end of file" */ acl_grammar_error = 256, /* error */ acl_grammar_UNDEF = 257, /* "invalid token" */ ... }; ... #define acl_grammar_EOF 0 #define acl_grammar_error 256 #define acl_grammar_UNDEF 257 ... and acl_grammar_error clashes with the existing (generated by 3.6.1 and 3.5.3, in acl_grammar.y this is yyerror()) ... static void acl_grammar_error(const char *text) { ... } which causes this error during compilation: y.tab.c:152:27: error: expected identifier or '(' before numeric constant libexplain/acl_grammar.y:128:1: note: in expansion of macro 'acl_grammar_error' 128 | yyerror(const char *text) | ^~~~~~~~~~~~~~~~~ libexplain/acl_grammar.y: In function 'acl_grammar_errorf': y.tab.c:152:27: error: called object is not a function or function pointer libexplain/acl_grammar.y:155:5: note: in expansion of macro 'acl_grammar_error' 155 | yyerror(buf); | ^~~~~~~~~~~~~ libexplain/acl_grammar.y: In function 'acl_grammar_parse': y.tab.c:152:27: error: called object is not a function or function pointer libexplain/acl_grammar.y:470:13: note: in expansion of macro 'acl_grammar_error' 470 | yyerror | ^~~~~~~ y.tab.c:152:27: error: called object is not a function or function pointer y.tab.c:1720:7: note: in expansion of macro 'acl_grammar_error' y.tab.c:152:27: error: called object is not a function or function pointer y.tab.c:1831:3: note: in expansion of macro 'acl_grammar_error' At top level: libexplain/acl_grammar.y:105:1: warning: 'result_append' defined but not used [-Wunused-function] 105 | result_append(const char *text) | ^~~~~~~~~~~~~ This does not look like it is an error in libexplain. Andreas