Changes in POSIX which were made in bison 3.8 cause builds of
OpenDoas to fail.
From the NEWS file:
To comply with the latest POSIX standard, in Yacc compatibility
mode (options -y/--yacc) Bison now generates prototypes for
yyerror and yylex. In some situations, this is breaking
compatibility: if the user has already declared these functions
but with some differences (e.g., to declare them as static, or
to use specific attributes), the generated parser will fail to
compile. To disable these prototypes, #define yyerror (to
yyerror), and likewise for yylex.
Changes in POSIX which were made in bison 3.8 cause builds of OpenDoas to fail.
From the NEWS file:
To comply with the latest POSIX standard, in Yacc compatibility mode (options
-y
/--yacc
) Bison now generates prototypes for yyerror and yylex. In some situations, this is breaking compatibility: if the user has already declared these functions but with some differences (e.g., to declare them as static, or to use specific attributes), the generated parser will fail to compile. To disable these prototypes, #define yyerror (toyyerror
), and likewise for yylex.More information:
https://lists.gnu.org/archive/html/bug-bison/2021-09/msg00006.html