Duncaen / OpenDoas

A portable fork of the OpenBSD `doas` command
Other
610 stars 35 forks source link

fix build with bison 3.8 #73

Closed dylanaraps closed 2 years ago

dylanaraps commented 2 years ago

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.

More information:

https://lists.gnu.org/archive/html/bug-bison/2021-09/msg00006.html

dylanaraps commented 2 years ago

Not needed as of bison 3.8.1.