[GRASS5] [bug #1382] (grass) r.mapcalc3 compilation error

Request Tracker grass-bugs at intevation.de
Sat Oct 26 11:52:34 EDT 2002


this bug's URL: http://intevation.de/rt/webrt?serial_num=1382
-------------------------------------------------------------------------

Subject: r.mapcalc3 compilation error

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources

Hi,

I compiled the today's CVS HEAD (using the new makefile system from
mk/ directory), but got an error in r.mapcalc:

make[1]: Entering directory `/home/neteler/ggg/src/raster/r.mapcalc3'
gcc -L/home/neteler/ggg/src/libes -Wl,-rpath-link,/home/neteler/ggg/src/libes  -o /home/neteler/ggg/dist.i686-pc-linux-gnu/etc/bin/cmd/r.mapcalc /home/neteler/ggg/src/raster/r.mapcalc3/y.tab.o /home/neteler/ggg/src/raster/r.mapcalc3/lex.yy.o 
[...]
/home/neteler/ggg/src/raster/r.mapcalc3/xsqrt.o /home/neteler/ggg/src/raster/r.mapcalc3/xsub.o /home/neteler/ggg/src/raster/r.mapcalc3/xtan.o -lgrass_gis -lgrass_btree -lgrass_rowio -lreadline  -lhistory  -lm  -lz  
/home/neteler/ggg/src/raster/r.mapcalc3/expression.o: In function `function':
/home/neteler/ggg/src/raster/r.mapcalc3/expression.o(.text+0x2a3): undefined reference to `syntax_error'
/home/neteler/ggg/src/raster/r.mapcalc3/expression.o: In function `variable':
/home/neteler/ggg/src/raster/r.mapcalc3/expression.o(.text+0x748): undefined reference to `syntax_error'
/home/neteler/ggg/src/raster/r.mapcalc3/expression.o: In function `mapname':
/home/neteler/ggg/src/raster/r.mapcalc3/expression.o(.text+0x7e6): undefined reference to `syntax_error'
collect2: ld returned 1 exit status
make[1]: *** [/home/neteler/ggg/dist.i686-pc-linux-gnu/etc/bin/cmd/r.mapcalc] Error 1
make[1]: Leaving directory `/home/neteler/ggg/src/raster/r.mapcalc3'

I am using
CC                  = gcc
FC                  = g77
LEX                 = flex
YACC                = bison -y
PERL                = /usr/bin/perl
MAKE                = make

It seems to be a problem with yacc/bison, which does not generate `syntax_error' from the mapcalc.y file.Unfortunaltely I have no idea
how to solve this.

bison --version
GNU Bison version 1.28

Thanks for a hint,

 Markus


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list