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

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

On Wed, May 30, 2012 at 5:52 AM, David Montoya <jdmonto0@gmail.com> wrote:

I installed Grass using the files from kyngchaos and I need to compile some
addons.

Please tell us which.

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

This is a fundamental system file. On my Linux box, it is in a
package called "glibc-headers". No idea how that's called on MacOSX.
The lack of this file causes all subsequent errors.

...

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 \

...

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

...

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'.

--> please do this and report the errors.

Markus

David wrote:

> /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19:
> error: stdio.h: No such file or directory

MarkusN:

This is a fundamental system file. On my Linux box, it is in a
package called "glibc-headers". No idea how that's called on MacOSX.
The lack of this file causes all subsequent errors.

perhaps install Xcode development tools from the Mac install DVD ?

(just a guess)

Hamish

This is a problem I've seen before (those headers are in the Xcode installation). I think Apple's -isysroot SDK flag is a bit broken in Xcode 4.1 (or 4.2? before the app store release) so the system is not looking in the right place.

The new Xcode 4.3 seems to be fixed, though I haven't paid close attention to it. There are 2 parts now to Xcode - the app and the CLI tools. Both can be downloaded free (the app was available only from the app store for a while) You really only need the CLI tools, but it doesn't have the SDKs.

The app has the SDKs, but they're in the wrong place for GRASS to see them. You need to dig into the Xcode app package Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs and copy the MacOSX10.6.sdk to /Developer/SDKs on your Mac.

On May 30, 2012, at 6:01 AM, Hamish wrote:

David wrote:

/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19:
error: stdio.h: No such file or directory

MarkusN:

This is a fundamental system file. On my Linux box, it is in a
package called "glibc-headers". No idea how that's called on MacOSX.
The lack of this file causes all subsequent errors.

perhaps install Xcode development tools from the Mac install DVD ?

(just a guess)

Hamish
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"I ache, therefore I am. Or in my case - I am, therefore I ache."

- Marvin

I’m trying to install r.stream.extract, r.stream.basin, r.stream.order and r.fuzzy but I get always the same error line at the end:

lipo: can’t figure out the architecture type of: /var/folders/5j/jb8xwzg57kbcpw6sq69_s_gc0000gn/T//cce8ZQSk.out
make: *** [OBJ.i386-apple-darwin11.3.0/close.o] Error 1

I was working as well with the compilation of Grass and I’ve make some changes to the configuration file, I’ve erased these lines:

–with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include
–with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib
–with-cxx
–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 \

And as result I get less errors:

GRASS GIS compilation log

Started compilation: Thu May 31 22:22:07 COT 2012

Errors in:
/Users/jdmonto0/Downloads/grass/grass64_release/gui/wxpython
/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.

I ran make into both directories. The first one ran without problem, the second one has this result:

Undefined symbols for architecture x86_64:
“_GetPortBounds”, referenced from:
_SetMacBufRect in togl.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [nvwish] Error 1
make: *** [default] Error 2

The version of Xcode that I have is the 4.3.2 with the CLI tools. I tried to follow the recommendations of William, but I don’t get it, Where should I paste the folder MacOSX10.6.sdk?

Thanks

On Wed, May 30, 2012 at 4:23 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Wed, May 30, 2012 at 5:52 AM, David Montoya <jdmonto0@gmail.com> wrote:

I installed Grass using the files from kyngchaos and I need to compile some
addons.

Please tell us which.

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

This is a fundamental system file. On my Linux box, it is in a
package called “glibc-headers”. No idea how that’s called on MacOSX.
The lack of this file causes all subsequent errors.

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 \

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

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’.

→ please do this and report the errors.

Markus


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin

Thanks for your help, finally I was able to install some addons using the recommendations from William.

On Sat, Jun 2, 2012 at 5:20 PM, William Kyngesburye <kyngchaos@kyngchaos.com> wrote:

Put it in that /Developr/SDKs folder.

On Jun 2, 2012, at 5:00 PM, David Montoya wrote:

Hi, thanks for your help, but I did not understand pretty well where I should paste the folder MacOSX10.6.sdk. The path that you give me is the same path where I found the directory. Did I misunderstood your instructions? Could you give please a hand due to I need the program on my computer full working with some addons (r.stream.extract, r.stream.order, r.fuzzy, r.stream.basin and others that I wrote).

Thanks in advance for your help

On Wed, May 30, 2012 at 9:32 AM, William Kyngesburye <woklist@kyngchaos.com> wrote:
This is a problem I’ve seen before (those headers are in the Xcode installation). I think Apple’s -isysroot SDK flag is a bit broken in Xcode 4.1 (or 4.2? before the app store release) so the system is not looking in the right place.

The new Xcode 4.3 seems to be fixed, though I haven’t paid close attention to it. There are 2 parts now to Xcode - the app and the CLI tools. Both can be downloaded free (the app was available only from the app store for a while) You really only need the CLI tools, but it doesn’t have the SDKs.

The app has the SDKs, but they’re in the wrong place for GRASS to see them. You need to dig into the Xcode app package Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs and copy the MacOSX10.6.sdk to /Developer/SDKs on your Mac.

On May 30, 2012, at 6:01 AM, Hamish wrote:

David wrote:

/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19:
error: stdio.h: No such file or directory
MarkusN:
This is a fundamental system file. On my Linux box, it is in a
package called “glibc-headers”. No idea how that’s called on MacOSX.
The lack of this file causes all subsequent errors.

perhaps install Xcode development tools from the Mac install DVD ?

(just a guess)

Hamish


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


William Kyngesburye <kyngchaosatkyngchaosdotcom>
http://www.kyngchaos.com/

“I ache, therefore I am. Or in my case - I am, therefore I ache.”

  • Marvin


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin


William Kyngesburye <kyngchaosatkyngchaosdotcom>
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin