[GRASS-user] Problems compiling Grass 6.4 and Grass addons under MacOS

David Montoya jdmonto0 at gmail.com
Tue May 29 20:52:15 PDT 2012


Hi

I installed Grass using the files from kyngchaos and I need to compile some
addons. I tried to install them by two ways, using g.extensions but it
doesn't work, and through modbuild following the instruction but I get the
following error:
My Os is MacOS Lion 10.7

MacBook-Pro-de-Jose:r.stream.extract jdmonto0$ make GRASS_HOME='~/modbuild'
 GRASS_APP='/Applications/GRASS-6.4.app'
../../include/Make/Module.make:25: warning: overriding commands for target
`install'
../../include/Make/Rules.make:90: warning: ignoring old commands for target
`install'
gcc -I~/modbuild/dist.i386-apple-darwin11.3.0/include
-I/Applications/GRASS-6.4.app/Contents/MacOS/include  -Os -fexceptions
-arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
-I/Library/Frameworks/GDAL.framework/Versions/1.9/Headers
-I/Library/Frameworks/GEOS.framework/Versions/3/unix/include
-DPACKAGE=\""grassmods"\"
 -I~/modbuild/dist.i386-apple-darwin11.3.0/include
-I/Applications/GRASS-6.4.app/Contents/MacOS/include -o
OBJ.i386-apple-darwin11.3.0/close.o -c close.c
In file included from close.c:1:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19:
error: stdio.h: No such file or directory
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:651,
                 from close.c:1:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:42:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:44:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:52:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘G_raster_size’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:385:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:609:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:610:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:698:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:699:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:749:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:750:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:760:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:762:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:842:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:843:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:844:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:845:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:851:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:852:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:854:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:855:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:906:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:929:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:930:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1061:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1088:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1089:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1113:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1114:
error: format string argument not a string type
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1153:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1154:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1248:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1249:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1252:
error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from close.c:3:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:153: error:
expected specifier-qualifier-list before ‘FILE’
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:300,
                 from close.c:3:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:231:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:233:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:234:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:332:
error: expected ‘)’ before ‘*’ token
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:16,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/shapefil.h:426:
error: expected ‘)’ before ‘*’ token
In file included from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:129:20:
error: stdlib.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:130:18:
error: math.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:132:20:
error: string.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:133:19:
error: ctype.h: No such file or directory
In file included from
/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:15,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:134,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:15:25:
error: no include path in which to search for limits.h
In file included from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:137:20:
error: time.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:145:21:
error: errno.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:149:22:
error: locale.h: No such file or directory
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:105:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:320:
error: expected declaration specifiers or ‘...’ before ‘FILE’
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:67:
error: expected specifier-qualifier-list before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:415:
error: expected specifier-qualifier-list before ‘FILE’
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:4,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:176:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:201:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:202:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:203:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:204:
error: expected ‘)’ before ‘*’ token
In file included from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:154: error:
expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:382: error:
expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:420: error:
expected declaration specifiers or ‘...’ before ‘FILE’
close.c: In function ‘close_streamvect’:
close.c:39: error: too many arguments to function ‘G__malloc’
close.c:98: error: too many arguments to function ‘G__realloc’
close.c:177: warning: incompatible implicit declaration of built-in
function ‘sprintf’
In file included from close.c:1:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19:
error: stdio.h: No such file or directory
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:651,
                 from close.c:1:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:42:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:44:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:52:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘G_raster_size’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:385:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:609:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:610:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:698:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:699:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:749:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:750:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:760:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:762:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:842:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:843:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:844:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:845:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:851:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:852:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:854:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:855:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:906:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:929:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:930:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1061:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1088:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1089:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1113:
error: expected declaration specifiers or ‘...’ before ‘size_t’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1114:
error: format string argument not a string type
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1153:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1154:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1248:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1249:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1252:
error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from close.c:3:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:153: error:
expected specifier-qualifier-list before ‘FILE’
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:300,
                 from close.c:3:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:231:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:233:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:234:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:332:
error: expected ‘)’ before ‘*’ token
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:16,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/shapefil.h:426:
error: expected ‘)’ before ‘*’ token
In file included from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:129:20:
error: stdlib.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:130:18:
error: math.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:132:20:
error: string.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:133:19:
error: ctype.h: No such file or directory
In file included from
/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:15,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:134,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:15:25:
error: no include path in which to search for limits.h
In file included from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,
                 from
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:137:20:
error: time.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:145:21:
error: errno.h: No such file or directory
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:149:22:
error: locale.h: No such file or directory
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:105:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:320:
error: expected declaration specifiers or ‘...’ before ‘FILE’
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:67:
error: expected specifier-qualifier-list before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:415:
error: expected specifier-qualifier-list before ‘FILE’
In file included from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:4,
                 from
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,
                 from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:176:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:201:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:202:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:203:
error: expected ‘)’ before ‘*’ token
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:204:
error: expected ‘)’ before ‘*’ token
In file included from close.c:4:
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:154: error:
expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:382: error:
expected declaration specifiers or ‘...’ before ‘FILE’
/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:420: error:
expected declaration specifiers or ‘...’ before ‘FILE’
close.c: In function ‘close_streamvect’:
close.c:39: error: too many arguments to function ‘G__malloc’
close.c:98: error: too many arguments to function ‘G__realloc’
close.c:177: warning: incompatible implicit declaration of built-in
function ‘sprintf’
lipo: can't figure out the architecture type of:
/var/folders/5j/jb8xwzg57kbcpw6sq69_s_gc0000gn/T//cclKMSOW.out
make: *** [OBJ.i386-apple-darwin11.3.0/close.o] Error 1

I tried also to compile Grass by my own, but I get some errors when I run
the command make. The configuration that I use is as follow:

./configure \
--enable-64bit \
--enable-largefile \
--with-freetype \
--with-freetype-includes="/Library/Frameworks/FreeType.framework/unix/include/freetype2
/Library/Frameworks/FreeType.framework/unix/include" \
--with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib \
--with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config \
--with-proj \
--with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include \
--with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib \
--with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj \
--with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
\
--with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \
--with-png-includes=/Library/Frameworks/UnixImageIO.framework/unix/include \
--with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \
--with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
\
--with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \
--with-postgres \
--with-postgres-includes="/usr/include/postgresql
/usr/include/postgresql/internal" \
--without-mysql \
--with-odbc \
--with-sqlite \
--with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib \
--with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include \
--with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include \
--with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib \
--with-cxx \
--with-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers
/Library/Frameworks/Tk.framework/Headers
/Library/Frameworks/Tk.framework/PrivateHeaders" \
--with-x \
--without-glw \
--with-opengl=aqua \
--with-python \
--with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.1/bin/wx-config \
--with-ffmpeg \
--with-ffmpeg-includes="/usr/local/include /usr/local/include/libavcodec
/usr/local/include/libavdevice /usr/local/include/libavformat
/usr/local/include/libavutil /usr/local/include/libswscale" \
--with-ffmpeg-libs=/usr/local/lib \
--with-cairo \
--with-cairo-includes="/Library/Frameworks/cairo.framework/unix/include/cairo
/Library/Frameworks/cairo.framework/unix/include" \
--with-cairo-libs=/Library/Frameworks/cairo.framework/unix/lib \
--with-fftw-includes=/usr/local/include \
--with-fftw-libs=/usr/local/lib \
--with-geos=/Library/Frameworks/GEOS.framework/unix/bin/geos-config \
--with-cairo-ldflags=-lcairo \
--with-blas \
--with-lapack \
--without-readline \
--without-motif \
--without-x11 \
--prefix=/Applications \
--enable-macosx-app

And the result is:

GRASS is now configured for:  x86_64-apple-darwin11.4.0

  Source directory:
/Users/jdmonto0/Downloads/grass/grass64_release
  Build directory:
 /Users/jdmonto0/Downloads/grass/grass64_release
  Installation directory:       ${prefix}/GRASS-6.4.app/Contents/MacOS
  Startup script in directory: ${exec_prefix}/bin
  C compiler:                     gcc -g -O2
  C++ compiler:                c++ -g -O2
  Building shared libraries:   yes
  64bit support:                   yes
  OpenGL platform:             Aqua

  MacOSX application:         yes
  MacOSX architectures:
  MacOSX SDK:

  Tcl/Tk NVIZ:                yes

  BLAS support:               yes
  C++ support:                yes
  Cairo support:               yes
  DWG support:                no
  FFMPEG support:             yes
  FFTW support:               yes
  FreeType support:           yes
  GDAL support:               yes
  GEOS support:               yes
  GLw support:                no
  LAPACK support:             yes
  Large File support (LFS):   yes
  Motif support:              no
  MySQL support:              no
  NLS support:                no
  ODBC support:               yes
  OGR support:                yes
  OpenGL support:             yes
  PNG support:                yes
  PostgreSQL support:         yes
  Python support:             yes
  Readline support:           no
  SQLite support:             yes
  Tcl/Tk support:             yes
  wxWidgets support:          yes
  TIFF support:               yes
  X11 support:                no

At this point, everything seems to be ok, but when I run make, I get this
error:

-------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Tue May 29 22:19:23 COT 2012
--
Errors in:
/Users/jdmonto0/Downloads/grass/grass64_release/lib/iostream
/Users/jdmonto0/Downloads/grass/grass64_release/gui/wxpython
/Users/jdmonto0/Downloads/grass/grass64_release/raster/r.terraflow
/Users/jdmonto0/Downloads/grass/grass64_release/visualization/nviz
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Tue May 29 22:26:19 COT 2012
make: *** [default] Error 1
-- 

I don't know if I'm missing something

Thanks for your help


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120529/f591e19a/attachment-0001.html>


More information about the grass-user mailing list