If there are any experts on using lex & yacc out there, maybe you can
help me.

I'm trying to compile Grass5.0beta2 and I'm getting an error.  The
other errors I've found, I was able to fix, and send off bug reports. 
But, since I don't really understand lex/yacc, I'm a little stumped.
Here's the output of make, if that will help any.

make[2]: Entering directory 
`/usr/local/src/grass5.0beta/src/raster/r.mapcalc/polish'
rm -f lex.yy.c y.tab.c
flex pol.l
yacc pol.y
conflicts:  14 shift/reduce, 17 reduce/reduce
rm -f OBJ.i686-pc-linux-gnu/y.tab.o
gcc -g -O2   -I/usr/local/src/grass5.0beta/src/include  -c y.tab.c
pol.y: In function `yyparse':
pol.y:53: `storage' undeclared (first use in this function)
pol.y:53: (Each undeclared identifier is reported only once
pol.y:53: for each function it appears in.)
/usr/include/stdlib.h: At top level:
In file included from pol.y:73:
/usr/include/stdlib.h:484: warning: type mismatch with previous implicit 
declaration
/usr/share/misc/bison.simple:753: warning: previous implicit declaration of 
`free'
/usr/include/stdlib.h:484: warning: `free' was previously implicitly declared 
to return `int'
In file included from pol.y:75:
local_proto.h:6: warning: type mismatch with previous implicit declaration
pol.y:43: warning: previous implicit declaration of `mapname'
pol.y:89: `storage' used prior to declaration
make[2]: *** [OBJ.i686-pc-linux-gnu/y.tab.o] Error 1
make[2]: Leaving directory 
`/usr/local/src/grass5.0beta/src/raster/r.mapcalc/polish'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/src/grass5.0beta/src/raster/r.mapcalc'
GISGEN failure at STEP: src/raster/r.mapcalc
make: *** [do-install] Error 1

-- 

Eric G. Miller
Powered by the POTATO (http://www.debian.org)!

Reply via email to