grass-devel is installed. Below the error message is I try to use make with MODULE_TOPDIR=/path/to/grass instead of g.extension.
thank you very much! Laura ================================================== gcc -I/usr/src/packages/BUILD/grass-6.4.0/dist.x86_64-unknown-linux-gnu/include -O2 -I/usr/include/gdal/ -DPACKAGE=\""grassmods"\" -I/usr/src/packages/BUILD/grass-6.4.0/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/io.o -c io.c io.c:1:27: error: grass/glocale.h: No such file or directory In file included from io.c:2: global.h:5:23: error: grass/gis.h: No such file or directory global.h:6:24: error: grass/Vect.h: No such file or directory global.h:7:24: error: grass/dbmi.h: No such file or directory In file included from io.c:2: global.h:80: error: expected ‘)’ before ‘*’ token global.h:81: error: expected ‘)’ before ‘*’ token In file included from io.c:2: global.h:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token global.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token io.c: In function ‘open_raster’: io.c:8: error: storage size of ‘cellhd’ isn’t known io.c:10: warning: assignment makes pointer from integer without a cast io.c:16: error: ‘CELL_TYPE’ undeclared (first use in this function) io.c:16: error: (Each undeclared identifier is reported only once io.c:16: error: for each function it appears in.) io.c:26: error: invalid use of undefined type ‘struct Cell_head’ io.c:26: error: invalid use of undefined type ‘struct Cell_head’ io.c: In function ‘create_base_maps’: io.c:37: error: ‘CELL’ undeclared (first use in this function) io.c:37: error: ‘r_dirs’ undeclared (first use in this function) io.c:37: error: ‘r_streams’ undeclared (first use in this function) io.c:38: error: ‘DCELL’ undeclared (first use in this function) io.c:38: error: ‘r_accum’ undeclared (first use in this function) io.c:47: error: ‘dirs’ undeclared (first use in this function) io.c:47: error: expected expression before ‘)’ token io.c:48: error: ‘streams’ undeclared (first use in this function) io.c:48: error: expected expression before ‘)’ token io.c:50: error: ‘accum’ undeclared (first use in this function) io.c:50: error: expected expression before ‘)’ token io.c:52: error: expected expression before ‘)’ token io.c:53: error: expected expression before ‘)’ token io.c:55: error: expected expression before ‘)’ token io.c:73: error: expected expression before ‘)’ token io.c: In function ‘stream_number’: io.c:120: error: ‘CELL’ undeclared (first use in this function) io.c:120: error: expected ‘;’ before ‘c_min’ io.c:121: error: storage size of ‘stream_range’ isn’t known io.c:124: warning: assignment makes pointer from integer without a cast io.c:126: error: ‘c_min’ undeclared (first use in this function) io.c:126: error: ‘c_max’ undeclared (first use in this function) io.c: In function ‘write_maps’: io.c:136: error: ‘CELL’ undeclared (first use in this function) io.c:136: error: ‘strahler_buf’ undeclared (first use in this function) io.c:136: error: ‘shreeve_buf’ undeclared (first use in this function) io.c:136: error: ‘hack_buf’ undeclared (first use in this function) io.c:136: error: ‘horton_buf’ undeclared (first use in this function) io.c:136: error: ‘topo_buf’ undeclared (first use in this function) io.c:138: error: storage size of ‘history’ isn’t known io.c:142: error: ‘CELL_TYPE’ undeclared (first use in this function) io.c:190: error: ‘streams’ undeclared (first use in this function) io.c: In function ‘create_table’: io.c:285: error: ‘dbConnection’ undeclared (first use in this function) io.c:285: error: expected ‘;’ before ‘conn’ io.c:286: error: ‘dbDriver’ undeclared (first use in this function) io.c:286: error: ‘driver’ undeclared (first use in this function) io.c:287: error: ‘dbHandle’ undeclared (first use in this function) io.c:287: error: expected ‘;’ before ‘handle’ io.c:288: error: ‘dbString’ undeclared (first use in this function) io.c:288: error: expected ‘;’ before ‘table_name’ io.c:334: error: ‘db_sql’ undeclared (first use in this function) io.c:335: error: ‘val_string’ undeclared (first use in this function) io.c:336: error: ‘table_name’ undeclared (first use in this function) io.c:337: error: ‘handle’ undeclared (first use in this function) io.c:341: error: ‘conn’ undeclared (first use in this function) io.c:383: error: ‘DB_OK’ undeclared (first use in this function) io.c:393: error: ‘DB_PRIV_SELECT’ undeclared (first use in this function) io.c:393: error: ‘DB_GROUP’ undeclared (first use in this function) io.c:393: error: ‘DB_PUBLIC’ undeclared (first use in this function) make: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1 On 20 October 2010 16:45, Maris Nartiss <[email protected]> wrote: > Hello, > if SUSE provides separate -dev packages, install grass-dev package. > Then You have to run Your make commands with > MODULE_TOPDIR=/path/to/grass. > > See this issue for details: http://trac.osgeo.org/grass/ticket/620 > > Still error You had when compiling 6.5 from source must be a different > one, as provided error message makes sense only to addons and not > compilation of whole GRASS. > > Maris. > > > 2010/10/20, Laura Poggio <[email protected]>: > > Yes I have gcc, g++, make. > > The full error message for one extension is pasted below (for one > extension > > as example). > > > > Thank you very much > > > > Laura > > > > =================================================== > > Checked out revision 43978. > > Compiling <r.stream.basins>... > > In file included from catchment.c:1: > > global.h:5:23: error: grass/gis.h: No such file or directory > > global.h:6:24: error: grass/Vect.h: No such file or > > directory > > global.h:7:27: error: grass/glocale.h: No such file or > > directory > > In file included from catchment.c:1: > > global.h:64: error: expected ‘=’, ‘,’, ‘;’, > > ‘asm’ or ‘__attribute__’ before ‘*’ token > > catchment.c: In function ‘find_outlets’: > > catchment.c:29: warning: cast to pointer from integer of > > different size > > catchment.c:36: error: ‘streams’ undeclared (first use > > in this function) > > catchment.c:36: error: (Each undeclared identifier is > > reported only once > > catchment.c:36: error: for each function it appears in.) > > catchment.c:45: warning: cast to pointer from integer of > > different size > > catchment.c:48: error: ‘dirs’ undeclared (first use in > > this function) > > catchment.c: In function ‘reset_catchments’: > > catchment.c:115: error: ‘streams’ undeclared (first use > > in this function) > > catchment.c: In function ‘fill_catchments’: > > catchment.c:147: error: ‘streams’ undeclared (first use > > in this function) > > catchment.c:159: error: ‘dirs’ undeclared (first use in > > this function) > > make: *** [OBJ.x86_64-unknown-linux-gnu/catchment.o] Error 1 > > ERROR: Compilation failed, sorry. Please check above error messages. > > test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p > > OBJ.x86_64-unknown-linux-gnu > > gcc > > > -I/usr/src/packages/BUILD/grass-6.4.0/dist.x86_64-unknown-linux-gnu/include > > -O2 -I/usr/include/gdal/ -DPACKAGE=\""grassmods"\" > > > -I/usr/src/packages/BUILD/grass-6.4.0/dist.x86_64-unknown-linux-gnu/include > > -o OBJ.x86_64-unknown-linux-gnu/catchment.o -c catchment.c > > (Wed Oct 20 11:56:21 2010) Command finished (6 > > sec) > > > > > > On 20 October 2010 14:38, <[email protected]> wrote: > > > >> Have you got the following packges installed? > >> gcc > >> g++ > >> make > >> > >> > >> Cheers > >> Sab > >> > >> > Hello, > >> > You have to provide whole error message. Without exact error text, > >> > it's impossible to tell what kind of problem You have. > >> > > >> > WBR, > >> > Maris. > >> > > >> > > >> > 2010/10/20, Laura Poggio <[email protected]>: > >> >> Dear all, > >> >> I installed grass6.4 on a machine with Suse11.2 64 bit from the > >> >> official > >> >> repository. Then I tried to install some addons with g.extension and > >> >> using > >> >> the usual configure/make/make install. > >> >> In both cases I get the following error: > >> >> > >> >> make: *** [OBJ.x86_64-unknown-linux-gnu/[...]] Error 1 > >> >> ERROR: Compilation failed, sorry. Please check above error messages. > >> >> > >> >> I also tried to compile grass65 from svn and I am getting the same > >> >> error. > >> >> > >> >> Please let me know and I can provide more details. Sorry but I do not > >> >> know > >> >> what would be useful for better understanding the problem. > >> >> > >> >> > >> >> Thank you very much in advance > >> >> > >> >> Laura > >> >> > >> > _______________________________________________ > >> > grass-user mailing list > >> > [email protected] > >> > http://lists.osgeo.org/mailman/listinfo/grass-user > >> > > >> > >> > >> > > >
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
