[GRASSLIST:8061] compilation problem

Martin Landa landa at gama.fsv.cvut.cz
Thu Aug 25 06:55:27 EDT 2005


Hi all,

I cannot compile grass6 any more...

CFLAGS="-g -Wall -ansi -D_BSD_SOURCE=1 -D_SVID_SOURCE=1
-D_POSIX_SOURCE=1 -D_POSIX_C_SOURCE=199506L" \
./configure --prefix=/usr/local \
--with-tcltk-includes=/usr/include/tcl8.3
--with-tcltk-libs=/usr/lib/tcl8.3 \
--with-postgresql --with-postgres-includes=/usr/include/postgresql
--with-postgres-libs=/usr/lib/postgresql \
--with-gdal=/usr/local/bin/gdal-config  \
--with-proj --with-proj-includes=/usr/local/include
--with-proj-libs=/usr/local/lib \
--with-blas --with-motif --with-glw --with-nls --with-readline \
--with-lapack --with-lapack-libs=/usr/lib/atlas \
--with-cxx --enable-large-file \
--with-freetype --with-freetype-includes=/usr/include/freetype2

I get these errors:

Errors in:
/usr/src/gis/grass/grass6/lib/gmath
/usr/src/gis/grass/grass6/lib/imagery
/usr/src/gis/grass/grass6/lib/rst/interp_float
/usr/src/gis/grass/grass6/imagery/i.class
/usr/src/gis/grass/grass6/imagery/i.cluster
/usr/src/gis/grass/grass6/imagery/i.gensig
/usr/src/gis/grass/grass6/imagery/i.gensigset
/usr/src/gis/grass/grass6/imagery/i.group
/usr/src/gis/grass/grass6/imagery/i.his.rgb
/usr/src/gis/grass/grass6/imagery/i.maxlik
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/libes
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/menu
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/photo.2image
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/photo.2target
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/photo.camera
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/photo.elev
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/photo.init
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/photo.rectify
/usr/src/gis/grass/grass6/imagery/i.ortho.photo/photo.target
/usr/src/gis/grass/grass6/imagery/i.points
/usr/src/gis/grass/grass6/imagery/i.rectify
/usr/src/gis/grass/grass6/imagery/i.rgb.his

...

I am using Debian GNU/Linux - unstable ...

e.g.

$ cd /usr/src/gis/grass/grass6/lib/gmath
$ make

gcc -I/usr/src/gis/grass/grass6/include
-I/usr/src/gis/grass/grass6/dist.i686-pc-linux-gnu/include/grass  -g
-Wall -ansi -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_POSIX_SOURCE=1
-D_POSIX_C_SOURCE=199506L  -Wall -Wconversion -Wno-implicit-int
-fPIC    -DPACKAGE=\""grasslibs"\"      -DPACKAGE=\""grasslibs"\"
-I/usr/src/gis/grass/grass6/include
-I/usr/src/gis/grass/grass6/dist.i686-pc-linux-gnu/include/grass \
								 -o
								 OBJ.i686-pc-linux-gnu/del2g.o -c del2g.c
In file included from /usr/src/gis/grass/grass6/include/la.h:28,
                 from /usr/src/gis/grass/grass6/include/gmath.h:29,
                 from del2g.c:22:
/usr/include/g2c.h:21: error: syntax error before 'integer'
/usr/include/g2c.h:22: error: syntax error before 'uinteger'
/usr/include/g2c.h:29: error: syntax error before 'logical'
/usr/include/g2c.h:33: error: syntax error before 'longint'
/usr/include/g2c.h:34: error: syntax error before 'ulongint'
/usr/include/g2c.h:55: error: syntax error before 'flag'
/usr/include/g2c.h:56: error: syntax error before 'ftnlen'
/usr/include/g2c.h:57: error: syntax error before 'ftnint'
/usr/include/g2c.h:62: error: syntax error before 'flag'
/usr/include/g2c.h:64: error: syntax error before 'ciend'
/usr/include/g2c.h:66: error: syntax error before 'cirec'
/usr/include/g2c.h:71: error: syntax error before 'flag'
/usr/include/g2c.h:73: error: syntax error before 'iciend'
/usr/include/g2c.h:75: error: syntax error before 'icirlen'
/usr/include/g2c.h:76: error: syntax error before 'icirnum'
/usr/include/g2c.h:81: error: syntax error before 'flag'
/usr/include/g2c.h:84: error: syntax error before 'ofnmlen'
/usr/include/g2c.h:88: error: syntax error before 'orl'
/usr/include/g2c.h:90: error: syntax error before '}' token
/usr/include/g2c.h:94: error: syntax error before 'flag'
/usr/include/g2c.h:97: error: syntax error before '}' token
/usr/include/g2c.h:101: error: syntax error before 'flag'
/usr/include/g2c.h:107: error: syntax error before 'flag'
/usr/include/g2c.h:110: error: syntax error before 'infilen'
/usr/include/g2c.h:111: error: syntax error before '*' token
/usr/include/g2c.h:112: error: syntax error before '*' token
/usr/include/g2c.h:113: error: syntax error before '*' token
/usr/include/g2c.h:114: error: syntax error before '*' token
/usr/include/g2c.h:116: error: syntax error before 'innamlen'
/usr/include/g2c.h:118: error: syntax error before 'inacclen'
/usr/include/g2c.h:120: error: syntax error before 'inseqlen'
/usr/include/g2c.h:122: error: syntax error before 'indirlen'
/usr/include/g2c.h:124: error: syntax error before 'infmtlen'
/usr/include/g2c.h:126: error: syntax error before 'informlen'
/usr/include/g2c.h:128: error: syntax error before 'inunflen'
/usr/include/g2c.h:129: error: syntax error before '*' token
/usr/include/g2c.h:130: error: syntax error before '*' token
/usr/include/g2c.h:132: error: syntax error before 'inblanklen'
/usr/include/g2c.h:138: error: syntax error before 'integer'
/usr/include/g2c.h:144: error: syntax error before '}' token
/usr/include/g2c.h:153: error: syntax error before 'ftnlen'
/usr/include/g2c.h:155: error: syntax error before '}' token
/usr/include/g2c.h:193: error: syntax error before '*' token
/usr/include/g2c.h:193: error: 'integer' declared as function
returning a function
/usr/include/g2c.h:193: error: 'integer' redeclared as different kind
of symbol
/usr/include/g2c.h:21: error: previous declaration of 'integer' was
here
/usr/include/g2c.h:198: error: syntax error before '*' token
/usr/include/g2c.h:198: error: 'logical' declared as function
returning a function
/usr/include/g2c.h:198: error: 'logical' redeclared as different kind
of symbol
/usr/include/g2c.h:29: error: previous declaration of 'logical' was
here
In file included from /usr/src/gis/grass/grass6/include/la.h:46,
                 from /usr/src/gis/grass/grass6/include/gmath.h:29,
                 from del2g.c:22:
/usr/src/gis/grass/grass6/include/blas.h:8: error: syntax error before
'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:9: error: syntax error before
'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:10: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:13: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:14: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:15: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:16: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:17: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:18: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:19: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:20: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:21: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:22: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:28: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:29: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:30: error: syntax error
before 'ftnlen'
/usr/src/gis/grass/grass6/include/blas.h:31: error: syntax error
before 'ftnlen'

Can anyone help me please? Maybe problem with lapack3-dev and
refblas3-dev deb package??

Martin

--
Martin Landa <landa at gama.fsv.cvut.cz> * http://gama.fsv.cvut.cz/~landa *
CTU Prague, Faculty of Civil Engineering, Czech Republic




More information about the grass-user mailing list