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