Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

1.3.4, syntax error in conf_yacc.y

1.3.4, syntax error in conf_yacc.y

2004-05-27 by Cyril Guibourg

I just download the tarball and fail to compile under FreeBSD:

bison -y -p`echo conf_yacc.c|sed 's/^\([^_]\{1,\}_\).*$/\1/'` conf_yacc.y
conf_yacc.y:142.8: parse error, unexpected ":", expecting ";" or "|"
*** Error code 1


Fix:

Two semi-colon are missing in the grammar description.


--- conf_yacc.y.orig    Wed May 26 23:50:12 2004
+++ conf_yacc.y Thu May 27 16:47:57 2004
@@ -139,8 +139,10 @@
 dumpfreq:      DUMPFREQ TDELAY { conf.c_dumpfreq =
                                    (time_t)humanized_atoi($2);
                                }
+       ;
 timeout:       TIMEOUT TDELAY { conf.c_timeout =
                                    (time_t)humanized_atoi($2);
                                }
+       ;
 %%
 #include "conf_lex.c"

Re: [milter-greylist] 1.3.4, syntax error in conf_yacc.y

2004-05-27 by manu@netbsd.org

Cyril Guibourg <cg+milter-greylist@...> wrote:

> Two semi-colon are missing in the grammar description.

Thanks. I wonder how it can build at mine.

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.