New problem compiling grass5.0beta7

Skip shaak at teleport.com
Mon Apr 24 19:19:05 EDT 2000


Hi Markus,

I installed the flex package as you indicated. Yacc was already installed. However, I still had the compile stop before completing. This is the error message produced:

if [ ! -d /usr/local/grass-5.0b ]; then mkdir /usr/local/grass-5.0b ; fi
if [ ! -d src/CMD/next_step ]; then mkdir src/CMD/next_step ; fi
UNIX_BIN=/usr/bin SRC=`pwd` GISBASE=/usr/local/grass-5.0b MACHINENAME=`uname -n`
 /bin/sh src/CMD/generic/CREATE_GMAKE.sh
mkdir -p -m 755 /usr/local/grass-5.0b
/bin/sh `pwd`/src/CMD/generic/is64bit.sh
echo "Now proceed with make install"
Now proceed with make install
GRASSSRC=`pwd`/src GMAKE=`pwd`/src/CMD/gmake5.0 /bin/sh src/CMD/generic/GISGEN.s
h
GISBASE=/usr/local/grass-5.0b
SRC=/usr/local/grass5.0beta/src
CMD=/usr/local/grass5.0beta/src/CMD
HEADER=head
ARCH=i686-linux-elf
####################################################################
GISGEN                              Mon Apr 24 12:41:46 PDT 2000
 GISBASE = /usr/local/grass-5.0b
 SRC     = /usr/local/grass5.0beta/src
 CMD     = /usr/local/grass5.0beta/src/CMD
 HEADER  = head
 ARCH    = i686-linux-elf

first step: src/raster/r.binfer

GISGEN: src/raster/r.binfer - Mon Apr 24 12:41:46 PDT 2000

  make -f OBJ.i686-linux-elf/make.rules
 
make[1]: Entering directory `/usr/local/grass5.0beta/src/raster/r.binfer'
rm -f lex.c gram.c
yacc binfer.y
rm -f gram.c
mv y.tab.c gram.c
rm -f OBJ.i686-linux-elf/gram.o
gcc -g -O2   -I/usr/local/grass5.0beta/src/include  -c gram.c
mv gram.o OBJ.i686-linux-elf/gram.o
lex binfer.l
rm -f lex.c
mv lex.yy.c lex.c
rm -f OBJ.i686-linux-elf/lex.o
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  

  >>  Hi Skip,


  >>  On Mon, Apr 24, 2000 at 07:40:10AM -0700, Skip wrote:

  >>  > #################################################################
  >>  > /usr/local/grass5.0beta/src/raster/r.binfer
  >>  >   mkdir OBJ.i686-linux-elf
  >>  >   make -f OBJ.i686-linux-elf/make.rules
  >>  >  
  >>  > make[1]: Entering directory
  >>   `/usr/local/grass5.0beta/src/raster/r.binfer'
  >>  > rm -f lex.c gram.c
  >>  > yacc binfer.y
  >>  > rm -f gram.c
  >>  > mv y.tab.c gram.c
  >>  > rm -f OBJ.i686-linux-elf/gram.o
  >>  > gcc -g -O2   -I/usr/local/grass5.0beta/src/include  -c gram.c
  >>  > mv gram.o OBJ.i686-linux-elf/gram.o
  >>  > lex binfer.l
  >>  > make[1]: lex: Command not found

  >>  ... this is easy: just install the "lex/flex" program. Using
  >>  SuSe use "YAST" to install "flex" and "yacc". lex is a requirement
  >>  to build GRASS.
  >>  Then run again

  >>  configure
  >>  make install

  >>  Hope this helps

  >>   Markus






=================================
Skip Haak
Natural Resource Solutions
950 Lloyd Center, Suite 48
Portland, OR 97232
Office: (503) 460-3198
Mobile: (503) 998-3267
Facsimile: (503) 460-3230
E-mail: shaak at teleport.com



More information about the grass-user mailing list