[GRASSLIST:4506] compiling GRASS 5.7.0

Ulrich Leopold uleopold at science.uva.nl
Tue Oct 12 07:24:06 EDT 2004


Dear list,

I have been trying to compile the source code for GRASS 5.7.0 on a ReHat
9 sytem with the following configure command:

CFLAGS="-g -Wall" ./configure --prefix=/scratch/usr/local
--bindir=/scratch/usr/local/bin --with-proj-libs=/scratch/usr/local/lib
--with-proj-includes=/scratch/usr/local/include --enable-64bit
--with-gdal=/scratch/usr/local/bin/gdal-config --without-postgres
--without-odbc --without-fftw

I end up getting the error message below. I have no idea what to do with
this... Any suggestions?

Cheers, Ulrich



----------8<-----------------------8<------------------------

make[2]: Entering directory
`/scratch/software/GIS/GRASS/grass-5.7.0/lib/proj'
gcc -I/scratch/software/GIS/GRASS/grass-5.7.0/include
-I/scratch/software/GIS/GRASS/grass-5.7.0/dist.i686-pc-linux-gnu/include
-g -Wall  -Wall -Wconversion -Wno-implicit-int   -fPIC  -rdynamic
-L/scratch/software/GIS/GRASS/grass-5.7.0/dist.i686-pc-linux-gnu/lib    
nad2bin.c   -o nad2bin
nad2bin.c:8:22: projects.h: No such file or directory
nad2bin.c:12: warning: return type of `main' is not `int'
nad2bin.c: In function `main':
nad2bin.c:13: storage size of `ct' isn't known
nad2bin.c:14: `FLP' undeclared (first use in this function)
nad2bin.c:14: (Each undeclared identifier is reported only once
nad2bin.c:14: for each function it appears in.)
nad2bin.c:14: `p' undeclared (first use in this function)
nad2bin.c:14: `t' undeclared (first use in this function)
nad2bin.c:14: warning: left-hand operand of comma expression has no
effect
nad2bin.c:24: `MAX_TAB_ID' undeclared (first use in this function)
nad2bin.c:27: parse error before ')' token
nad2bin.c:13: warning: unused variable `ct'
nad2bin.c:15: warning: unused variable `tsize'
nad2bin.c:16: warning: unused variable `i'
nad2bin.c:16: warning: unused variable `j'
nad2bin.c:16: warning: unused variable `ichk'
nad2bin.c:17: warning: unused variable `lam'
nad2bin.c:17: warning: unused variable `laml'
nad2bin.c:17: warning: unused variable `phi'
nad2bin.c:17: warning: unused variable `phil'
nad2bin.c:18: warning: unused variable `bin'
nad2bin.c: At top level:
nad2bin.c:32: parse error before '.' token
nad2bin.c:41: parse error before numeric constant
nad2bin.c:41: conflicting types for `exit'
/usr/include/stdlib.h:612: previous declaration of `exit'
nad2bin.c:41: warning: data definition has no type or storage class
nad2bin.c:45: parse error before '++' token
nad2bin.c:50: parse error before '++' token
nad2bin.c:55: parse error before numeric constant
nad2bin.c:55: warning: data definition has no type or storage class
nad2bin.c:59: parse error before numeric constant
nad2bin.c:59: warning: data definition has no type or storage class
nad2bin.c:64: parse error before numeric constant
nad2bin.c:64: warning: data definition has no type or storage class
nad2bin.c:66: parse error before numeric constant
nad2bin.c:66: warning: data definition has no type or storage class
make[2]: *** [nad2bin] Error 1
make[2]: Leaving directory
`/scratch/software/GIS/GRASS/grass-5.7.0/lib/proj'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/scratch/software/GIS/GRASS/grass-5.7.0/lib'
make: *** [default] Error 1




More information about the grass-user mailing list