Ethereal-dev: Re: [Ethereal-dev] compile error epan/dfilter/grammar.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Gisle Vanem" <giva@xxxxxxxxx>
Date: Mon, 26 Jul 2004 19:10:03 +0200
"Thomas Anders" said:

> Compiling latest nightly build on SuSE Linux 9.0 gives an error in
> epan/dfilter/grammar.c:
> 
...
> -MF .deps/grammar.Tpo -c grammar.c  -fPIC -DPIC -o .libs/grammar.o
> grammar.c: In function `yy_reduce':
> grammar.c:1035: too many arguments to function `yy_accept'


I noted this on MingW too. Fix by changing the prototype in
tools/lemon/lempar.c to:

static void yy_accept();  /* Forward declaration */

at around line 362. Doesn't work for C++ if you'd like to
try... 

--gv