[GRASS5] r.mapcalc compile error on Solaris

Paul Kelly paul-grass at stjohnspoint.co.uk
Fri Oct 8 07:35:02 EDT 2004


I've been doing a few test builds on different platforms (IRIX, Cygwin, 
Solaris and MacOSX) to try and get 5.3 ready for a 5.3.1 release in a few
days, then we can have a week or so of testing and get 5.4.0 out quite 
soon. Things are going well and the shared library build is now working on 
MacOSX and Solaris, and r.terraflow can be compiled with the Alternate 
Build system (which will be the default for 5.3.1 onwards).

However I'm having a problem with src/raster/r.mapcalc3 (and 
src.contrib/GMSL/r3.mapcalc, although that isn't used any more so doesn't 
matter) and yacc/lex that I don't have a clue about:

Using GNU bison 1.875d:

[pkelly at jebediah]/home/pkelly/grass/gbld(53): ./gmake53 src/raster/r.mapcalc3
make: Entering directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
mkdir -p /home/pkelly/grass/gbld/src/raster/r.mapcalc3
make -f makefile
make[1]: Entering directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
bison -y -b /home/pkelly/grass/gbld/src/raster/r.mapcalc3/y -d mapcalc.y
make[1]: *** [/home/pkelly/grass/gbld/src/raster/r.mapcalc3/y.tab.c] Broken Pipe
make[1]: Leaving directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
make: *** [dir] Error 2
make: Leaving directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
[pkelly at jebediah]/home/pkelly/grass/gbld(54):


Using the default yacc in Solaris 8:

[pkelly at jebediah]/home/pkelly/grass/gbld(60): ./gmake53 src/raster/r.mapcalc3
make: Entering directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
mkdir -p /home/pkelly/grass/gbld/src/raster/r.mapcalc3
make -f makefile
make[1]: Entering directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
/usr/ccs/bin/yacc -b /home/pkelly/grass/gbld/src/raster/r.mapcalc3/y -d mapcalc.y
gcc -I/home/pkelly/grass/gbld/src/raster/r.mapcalc3 -I/home/pkelly/grass/grass/src/raster/r.mapcalc3 -I/home/pkelly/grass/grass/src/include -I/home/pkelly/grass/gbld/src/include -O2     -fPIC   -c -o /home/pkelly/grass/gbld/src/raster/r.mapcalc3/y.tab.o /home/pkelly/grass/gbld/src/raster/r.mapcalc3/y.tab.c
lex -t mapcalc.l > /home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c
"mapcalc.l":line 126: Warning: Non-portable Character Class
gcc -I/home/pkelly/grass/gbld/src/raster/r.mapcalc3 -I/home/pkelly/grass/grass/src/raster/r.mapcalc3 -I/home/pkelly/grass/grass/src/include -I/home/pkelly/grass/gbld/src/include -O2     -fPIC   -c -o /home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.o /home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c
/home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c: In function `get_input_string':
/home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c:112: error: `YY_NULL' undeclared (first use in this function)
/home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c:112: error: (Each undeclared identifier is reported only once
/home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c:112: error: for each function it appears in.)
/home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c: In function `get_input_stream':
/home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.c:124: error: `YY_NULL' undeclared (first use in this function)
make[1]: *** [/home/pkelly/grass/gbld/src/raster/r.mapcalc3/lex.yy.o] Error 1
make[1]: Leaving directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
make: *** [dir] Error 2
make: Leaving directory `/home/pkelly/grass/grass/src/raster/r.mapcalc3'
[pkelly at jebediah]/home/pkelly/grass/gbld(61):

If anybody has an idea it would be nice to get this fixed before the 
release.

Paul




More information about the grass-dev mailing list