[Gfoss] errore installazione Grass addons

Francesca Bader b.francesca a gmail.com
Mer 8 Dic 2010 16:34:07 CET


Buongiorno a tutti,

ho bisogno di installare 2 addon di Grass, in particolare r.seg e
r.evapo.PM(contenuto in HydroFOSS). Premetto che ho la possibilità di
usare sia una
macchina con Ubuntu 10.04 sia una con Win XP.
Siccome non mi intendo di programmazione, ho fatto delle prove con
g.extension su una macchina Ubuntu 10.04 con installati Grass 6.4 e
grass-dev (6.4) dai repository. Dando il comando

g.extension extension=r.seg

l'installazione non va a buon fine e mi da gli errori che riporto in
allegato.
Con r.evapo.PM dando il comando

g.extension extension=HydroFOSS/r.evapo.PM

succede la stessa cosa.

Qualcuno saprebbe dirmi come potrei risolvere? Devo installare qualche
componente mancante? C'è una maniera più semplice per installarli?
Cercando in rete ho trovato che potrebbe essere anche un problema del file
/usr/lib/grass64/include/Make/Platform.make, idee?

Grazie a tutti.
Saluti.
Francesca Bader.
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.gfoss.it/pipermail/gfoss/attachments/20101208/b1c66bb3/attachment.htm>
-------------- parte successiva --------------
GRASS 6.4.0 (dtm5m_3004):~ > g.extension extension=r.seg
Fetching <r.seg> from GRASS-Addons SVN (be patient)...
A    r.seg/main.c
A    r.seg/description.html
A    r.seg/varseg.c
A    r.seg/Makefile
A    r.seg/README
A    r.seg/varseg.h
 U   r.seg
Estratta revisione 44563.
Compiling <r.seg>...
test -d OBJ.i486-pc-linux-gnu || mkdir -p OBJ.i486-pc-linux-gnu
gcc -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include  -Wall -g -O       -DPACKAGE=\""grassmods"\"  -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include -o OBJ.i486-pc-linux-gnu/main.o -c main.c
main.c:25:23: error: grass/gis.h: Nessun file o directory
main.c:26:26: error: grass/config.h: Nessun file o directory
main.c:27:27: error: grass/glocale.h: Nessun file o directory
main.c: In function ?main?:
main.c:32: error: storage size of ?cellhd? isn?t known
main.c:52: error: ?RASTER_MAP_TYPE? undeclared (first use in this function)
main.c:52: error: (Each undeclared identifier is reported only once
main.c:52: error: for each function it appears in.)
main.c:52: error: expected ?;? before ?dcell_data_type?
main.c:55: error: storage size of ?history? isn?t known
main.c:69: warning: implicit declaration of function ?G_gisinit?
main.c:73: warning: implicit declaration of function ?G_define_module?
main.c:73: warning: assignment makes pointer from integer without a cast
main.c:74: error: dereferencing pointer to incomplete type
main.c:74: warning: implicit declaration of function ?_?
main.c:75: error: dereferencing pointer to incomplete type
main.c:78: warning: implicit declaration of function ?G_define_option?
main.c:78: warning: assignment makes pointer from integer without a cast
main.c:79: error: dereferencing pointer to incomplete type
main.c:80: error: dereferencing pointer to incomplete type
main.c:80: error: ?TYPE_STRING? undeclared (first use in this function)
main.c:81: error: dereferencing pointer to incomplete type
main.c:81: error: ?YES? undeclared (first use in this function)
main.c:82: error: dereferencing pointer to incomplete type
main.c:83: error: dereferencing pointer to incomplete type
main.c:85: warning: assignment makes pointer from integer without a cast
main.c:86: error: dereferencing pointer to incomplete type
main.c:87: error: dereferencing pointer to incomplete type
main.c:88: error: dereferencing pointer to incomplete type
main.c:89: error: dereferencing pointer to incomplete type
main.c:90: error: dereferencing pointer to incomplete type
main.c:92: warning: assignment makes pointer from integer without a cast
main.c:93: error: dereferencing pointer to incomplete type
main.c:94: error: dereferencing pointer to incomplete type
main.c:95: error: dereferencing pointer to incomplete type
main.c:96: error: dereferencing pointer to incomplete type
main.c:98: error: dereferencing pointer to incomplete type
main.c:100: warning: assignment makes pointer from integer without a cast
main.c:101: error: dereferencing pointer to incomplete type
main.c:102: error: dereferencing pointer to incomplete type
main.c:102: error: ?TYPE_DOUBLE? undeclared (first use in this function)
main.c:103: error: dereferencing pointer to incomplete type
main.c:103: error: ?NO? undeclared (first use in this function)
main.c:104: error: dereferencing pointer to incomplete type
main.c:105: error: dereferencing pointer to incomplete type
main.c:107: warning: assignment makes pointer from integer without a cast
main.c:108: error: dereferencing pointer to incomplete type
main.c:109: error: dereferencing pointer to incomplete type
main.c:110: error: dereferencing pointer to incomplete type
main.c:111: error: dereferencing pointer to incomplete type
main.c:112: error: dereferencing pointer to incomplete type
main.c:114: warning: assignment makes pointer from integer without a cast
main.c:115: error: dereferencing pointer to incomplete type
main.c:116: error: dereferencing pointer to incomplete type
main.c:116: error: ?TYPE_INTEGER? undeclared (first use in this function)
main.c:117: error: dereferencing pointer to incomplete type
main.c:118: error: dereferencing pointer to incomplete type
main.c:119: error: dereferencing pointer to incomplete type
main.c:122: warning: assignment makes pointer from integer without a cast
main.c:123: error: dereferencing pointer to incomplete type
main.c:124: error: dereferencing pointer to incomplete type
main.c:125: error: dereferencing pointer to incomplete type
main.c:126: error: dereferencing pointer to incomplete type
main.c:127: error: dereferencing pointer to incomplete type
main.c:129: warning: assignment makes pointer from integer without a cast
main.c:130: error: dereferencing pointer to incomplete type
main.c:131: error: dereferencing pointer to incomplete type
main.c:132: error: dereferencing pointer to incomplete type
main.c:133: error: dereferencing pointer to incomplete type
main.c:134: error: dereferencing pointer to incomplete type
main.c:137: warning: assignment makes pointer from integer without a cast
main.c:138: error: dereferencing pointer to incomplete type
main.c:139: error: dereferencing pointer to incomplete type
main.c:140: error: dereferencing pointer to incomplete type
main.c:141: error: dereferencing pointer to incomplete type
main.c:142: error: dereferencing pointer to incomplete type
main.c:151: warning: implicit declaration of function ?G_define_flag?
main.c:151: warning: assignment makes pointer from integer without a cast
main.c:152: error: dereferencing pointer to incomplete type
main.c:153: error: dereferencing pointer to incomplete type
main.c:157: warning: implicit declaration of function ?G_parser?
main.c:161: error: dereferencing pointer to incomplete type
main.c:162: error: dereferencing pointer to incomplete type
main.c:163: error: dereferencing pointer to incomplete type
main.c:165: error: dereferencing pointer to incomplete type
main.c:166: error: dereferencing pointer to incomplete type
main.c:167: error: dereferencing pointer to incomplete type
main.c:168: error: dereferencing pointer to incomplete type
main.c:169: error: dereferencing pointer to incomplete type
main.c:170: error: dereferencing pointer to incomplete type
main.c:172: error: dereferencing pointer to incomplete type
main.c:173: warning: implicit declaration of function ?G_warning?
main.c:177: error: dereferencing pointer to incomplete type
main.c:183: warning: implicit declaration of function ?G_find_cell2?
main.c:183: warning: assignment makes pointer from integer without a cast
main.c:185: warning: implicit declaration of function ?G_fatal_error?
main.c:186: warning: implicit declaration of function ?G_legal_filename?
main.c:188: warning: implicit declaration of function ?G_check_input_output_name?
main.c:188: error: ?GR_FATAL_EXIT? undeclared (first use in this function)
main.c:201: error: ?dcell_data_type? undeclared (first use in this function)
main.c:201: error: ?DCELL_TYPE? undeclared (first use in this function)
main.c:205: warning: implicit declaration of function ?G_window_rows?
main.c:206: warning: implicit declaration of function ?G_window_cols?
main.c:211: error: ?DCELL? undeclared (first use in this function)
main.c:211: error: expected expression before ?)? token
main.c:212: error: expected expression before ?)? token
main.c:213: error: expected expression before ?)? token
main.c:219: warning: implicit declaration of function ?G_open_cell_old?
main.c:221: warning: implicit declaration of function ?G_get_cellhd?
main.c:226: warning: implicit declaration of function ?G_allocate_raster_buf?
main.c:233: warning: implicit declaration of function ?G_get_raster_row?
main.c:237: error: expected expression before ?)? token
main.c:238: error: expected expression before ?)? token
main.c:245: warning: implicit declaration of function ?G_close_cell?
main.c:246: warning: implicit declaration of function ?G_free?
main.c:275: warning: implicit declaration of function ?G_message?
main.c:279: warning: implicit declaration of function ?G_open_raster_new?
main.c:294: error: expected expression before ?)? token
main.c:295: error: expected expression before ?)? token
main.c:297: warning: implicit declaration of function ?G_put_raster_row?
main.c:315: warning: implicit declaration of function ?G_short_history?
main.c:316: warning: implicit declaration of function ?G_command_history?
main.c:319: warning: implicit declaration of function ?G_write_history?
main.c:55: warning: unused variable ?history?
main.c:32: warning: unused variable ?cellhd?
make: *** [OBJ.i486-pc-linux-gnu/main.o] Errore 1
ERRORE: Compilation failed, sorry. Please check above error messages.
-------------- parte successiva --------------
GRASS 6.4.0 (dtm5m_3004):~ > g.extension extension=HydroFOSS/r.evapo.PM
Fetching <r.evapo.PM> from GRASS-Addons SVN (be patient)...
A    r.evapo.PM/local_proto.h
A    r.evapo.PM/main.c
A    r.evapo.PM/description.html
A    r.evapo.PM/functions.c
A    r.evapo.PM/Makefile
Estratta revisione 44563.
Compiling <r.evapo.PM>...
test -d OBJ.i486-pc-linux-gnu || mkdir -p OBJ.i486-pc-linux-gnu
gcc -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include  -Wall -g -O       -DPACKAGE=\""grassmods"\"  -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include -o OBJ.i486-pc-linux-gnu/functions.o -c functions.c
functions.c:4:23: error: grass/gis.h: Nessun file o directory
In file included from functions.c:6:
local_proto.h:2: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_Delta?
local_proto.h:3: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_g?
local_proto.h:4: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_Eo?
local_proto.h:5: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_Ea?
local_proto.h:6: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_G?
local_proto.h:7: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_ETp?
local_proto.h:8: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_openwaterETp?
functions.c:8: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?f_c?
functions.c:9: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?f_f?
functions.c:10: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?f_d?
functions.c:31: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_ETp?
functions.c:102: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?calc_openwaterETp?
functions.c:124:2: warning: "/*" within comment
make: *** [OBJ.i486-pc-linux-gnu/functions.o] Errore 1
ERRORE: Compilation failed, sorry. Please check above error messages.


Maggiori informazioni sulla lista Gfoss