[GRASS-user] grass-addons compilation probls
Francesco Mirabella
mirabell at unipg.it
Fri Sep 25 04:32:13 EDT 2009
Hi all,
I am trying to compile some grass-addons. I tried both "g.extension" and
compiling from the svn repository. For example, for r.stream.extract,
when running make I get:
------------------------------------------------------------------------------------------------------------------------------------
francesco at terra17:/usr/local/cvs/grass/grass-addons/raster/r.stream.extract$
make
MODULE_TOPDIR=/usr/local/cvs/grass/grass-7.0.svn_src_snapshot_2009_09_12/
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
gcc
-I/usr/local/cvs/grass/grass-7.0.svn_src_snapshot_2009_09_12/dist.i686-pc-linux-gnu/include
-I/usr/local/cvs/grass/grass-7.0.svn_src_snapshot_2009_09_12/dist.i686-pc-linux-gnu/include
-g -O2 -I/usr/include/gdal -DPACKAGE=\""grassmods"\"
-I/usr/local/cvs/grass/grass-7.0.svn_src_snapshot_2009_09_12/dist.i686-pc-linux-gnu/include
-I/usr/local/cvs/grass/grass-7.0.svn_src_snapshot_2009_09_12/dist.i686-pc-linux-gnu/include
-o OBJ.i686-pc-linux-gnu/close.o -c close.c
close.c:4:24: error: grass/Vect.h: No such file or directory
In file included from close.c:5:
local_proto.h:46: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
local_proto.h:47: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
local_proto.h:48: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
local_proto.h:63: error: expected declaration specifiers or '...' before
'CELL'
close.c: In function 'close_streamvect':
close.c:21: error: storage size of 'Out' isn't known
close.c:41: warning: assignment makes pointer from integer without a cast
close.c:42: warning: assignment makes pointer from integer without a cast
close.c:57: error: 'stream' undeclared (first use in this function)
close.c:57: error: (Each undeclared identifier is reported only once
close.c:57: error: for each function it appears in.)
close.c:67: error: 'GV_POINT' undeclared (first use in this function)
close.c:144: error: 'GV_LINE' undeclared (first use in this function)
close.c:162: error: 'GV_1TABLE' undeclared (first use in this function)
close.c:162: warning: assignment makes pointer from integer without a cast
close.c:163: error: dereferencing pointer to incomplete type
close.c:163: error: dereferencing pointer to incomplete type
close.c:165: error: dereferencing pointer to incomplete type
close.c:168: error: dereferencing pointer to incomplete type
close.c:169: error: dereferencing pointer to incomplete type
close.c:170: error: dereferencing pointer to incomplete type
close.c:174: error: dereferencing pointer to incomplete type
close.c:183: error: dereferencing pointer to incomplete type
close.c:186: error: dereferencing pointer to incomplete type
close.c:188: error: dereferencing pointer to incomplete type
close.c:196: error: dereferencing pointer to incomplete type
close.c:215: error: dereferencing pointer to incomplete type
close.c:216: error: dereferencing pointer to incomplete type
close.c:216: error: dereferencing pointer to incomplete type
close.c: In function 'close_maps':
close.c:233: error: 'CELL' undeclared (first use in this function)
close.c:233: error: 'cell_buf1' undeclared (first use in this function)
close.c:233: error: 'cell_buf2' undeclared (first use in this function)
close.c:235: error: storage size of 'history' isn't known
close.c:246: error: 'CELL_TYPE' undeclared (first use in this function)
close.c:263: error: 'stream' undeclared (first use in this function)
make: *** [OBJ.i686-pc-linux-gnu/close.o] Error 1
------------------------------------------------------------------------------------------------------------------------------------
Similar problems for other modules, e.g. v.profile
Can someone give hints??
best wishes
Francesco
--
**********************************************
Francesco Mirabella,
Geologia Strutturale e Geofisica
Universita' di Perugia,
Dipartimento di Scienze della Terra,
Piazza Universita' 1, 06100 Perugia (Italy)
**********************************************
More information about the grass-user
mailing list