New problem compiling grass5.0beta7

Eric G . Miller egm2 at jps.net
Mon Apr 24 22:31:17 EDT 2000


On Mon, Apr 24, 2000 at 04:39:22PM -0700, Rich Shepard wrote:
> On Mon, 24 Apr 2000, Skip wrote:
> 
> > gcc -g -O2   -I/usr/local/grass5.0beta/src/include  -c lex.c
> > binfer.l:41: redefinition of `yylineno'
> > lex.c:271: `yylineno' previously defined here
> > make[1]: *** [OBJ.i686-linux-elf/lex.o] Error 1
> > make[1]: Leaving directory `/usr/local/grass5.0beta/src/raster/r.binfer'
> > GISGEN failure at STEP: src/raster/r.binfer
> > make: *** [do-install] Error 1  
> 
> Skip,
> 
>   This came up within the past fortnight. I don't remember the solution, but
> there is a simple one.

Replace /usr/bin/lex (which should be a symlink to /usr/bin/flex), with
a shell script that calls flex with the '-l' option.

#/bin/sh
# Compatibility mode... lex-flex
flex -l $*

Make sure to chmod +x the script. Note: I'm not a programmer, but I play
one on mailing lists! Caveat Emptor!

-- 
¶ One·should·only·use·the·ASCII·character­set·when·compos­

» ing·email·messages.





More information about the grass-user mailing list