After a fresh cvs checkout from the new cvs, autogen.sh and configure run without warnings, I get:

$ make
make all-recursive
make[1]: Entering directory `/home/richard/tmp/aide/aide'
Making all in src
make[2]: Entering directory `/home/richard/tmp/aide/aide/src'
bison -y -d -p conf -o conf_yacc.c /home/richard/tmp/aide/aide/src/conf_yacc.y
/home/richard/tmp/aide/aide/src/conf_yacc.y:147.8: parse error, unexpected "|"
/home/richard/tmp/aide/aide/src/conf_yacc.y:152.8: parse error, unexpected "|"
/home/richard/tmp/aide/aide/src/conf_yacc.y:156.8: parse error, unexpected "|"
/home/richard/tmp/aide/aide/src/conf_yacc.y:159.8: parse error, unexpected "|"
make[2]: *** [conf_yacc.c] Error 1
make[2]: Leaving directory `/home/richard/tmp/aide/aide/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/richard/tmp/aide/aide'
make: *** [all-recursive-am] Error 2

Now I am not a yacc/bison guru, but the first error points to the | before TNEWLINE in this piece of code:

line : rule | equrule | negrule | definestmt | undefstmt
| ifdefstmt | ifndefstmt | ifhoststmt | ifnhoststmt
| groupdef | db_in | db_out | db_new | verbose | config_version
| report | gzipdbout | recursion_stopper | warn_dead_symlinks
| acl_no_symlink_follow | beginconfigstmt | endconfigstmt
| TEOF {
newlinelastinconfig=1;
YYACCEPT;
} ;
| TNEWLINE
| TDBSPEC {
error(220,"Got @@dbspec.Stopping\n");
YYACCEPT;
} ;

Is an "|" allowed to follow a "};" ?

$ bison --version
bison (GNU Bison) 1.75

Sincerely,

Richard van den Berg

Reply via email to