<div>Hi </div><div><br></div><div>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:</div>

<div>My Os is MacOS Lion 10.7</div><div><br></div><div>MacBook-Pro-de-Jose:r.stream.extract jdmonto0$ make GRASS_HOME='~/modbuild'  GRASS_APP='/Applications/GRASS-6.4.app'</div><div>../../include/Make/Module.make:25: warning: overriding commands for target `install'</div>

<div>../../include/Make/Rules.make:90: warning: ignoring old commands for target `install'</div><div>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</div>

<div>In file included from close.c:1:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19: error: stdio.h: No such file or directory</div><div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:651,</div>

<div>                 from close.c:1:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:42: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:44: error: expected declaration specifiers or ‘...’ before ‘size_t’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘G_raster_size’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:385: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:609: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:610: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:698: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:699: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:749: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:750: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:760: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:762: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:842: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:843: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:844: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:845: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:851: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:852: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:854: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:855: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:906: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:929: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:930: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1061: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1088: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1089: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1113: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1114: error: format string argument not a string type</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1153: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1154: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1248: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1249: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1252: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>In file included from close.c:3:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:153: error: expected specifier-qualifier-list before ‘FILE’</div>

<div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:300,</div><div>                 from close.c:3:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:231: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:233: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:234: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:332: error: expected ‘)’ before ‘*’ token</div><div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:16,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/shapefil.h:426: error: expected ‘)’ before ‘*’ token</div><div>In file included from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,</div>

<div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:129:20: error: stdlib.h: No such file or directory</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:130:18: error: math.h: No such file or directory</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:132:20: error: string.h: No such file or directory</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:133:19: error: ctype.h: No such file or directory</div><div>In file included from /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:15,</div>

<div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:134,</div><div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,</div><div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>

                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div><div>/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</div>

<div>In file included from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,</div><div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:137:20: error: time.h: No such file or directory</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:145:21: error: errno.h: No such file or directory</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:149:22: error: locale.h: No such file or directory</div><div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:105: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:320: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:67: error: expected specifier-qualifier-list before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:415: error: expected specifier-qualifier-list before ‘FILE’</div>

<div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:4,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:176: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:201: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:202: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:203: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:204: error: expected ‘)’ before ‘*’ token</div><div>In file included from close.c:4:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:154: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:382: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:420: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>close.c: In function ‘close_streamvect’:</div><div>close.c:39: error: too many arguments to function ‘G__malloc’</div><div>close.c:98: error: too many arguments to function ‘G__realloc’</div><div>close.c:177: warning: incompatible implicit declaration of built-in function ‘sprintf’</div>

<div>In file included from close.c:1:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19: error: stdio.h: No such file or directory</div><div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:651,</div>

<div>                 from close.c:1:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:42: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:44: error: expected declaration specifiers or ‘...’ before ‘size_t’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘G_raster_size’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:385: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:609: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:610: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:698: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:699: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:749: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:750: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:760: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:762: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:842: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:843: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:844: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:845: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:851: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:852: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:854: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:855: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:906: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:929: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:930: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1061: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1088: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1089: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1113: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1114: error: format string argument not a string type</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1153: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1154: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1248: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1249: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gisdefs.h:1252: error: expected declaration specifiers or ‘...’ before ‘size_t’</div><div>In file included from close.c:3:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:153: error: expected specifier-qualifier-list before ‘FILE’</div>

<div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/dbmi.h:300,</div><div>                 from close.c:3:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:231: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:233: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:234: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/proto_dbmi.h:332: error: expected ‘)’ before ‘*’ token</div><div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:16,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/shapefil.h:426: error: expected ‘)’ before ‘*’ token</div><div>In file included from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,</div>

<div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:129:20: error: stdlib.h: No such file or directory</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:130:18: error: math.h: No such file or directory</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:132:20: error: string.h: No such file or directory</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:133:19: error: ctype.h: No such file or directory</div><div>In file included from /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:15,</div>

<div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:134,</div><div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,</div><div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>

                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div><div>/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</div>

<div>In file included from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_core.h:33,</div><div>                 from /Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:42,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:137:20: error: time.h: No such file or directory</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:145:21: error: errno.h: No such file or directory</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/cpl_port.h:149:22: error: locale.h: No such file or directory</div><div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:22,</div>

<div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:105: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Library/Frameworks/GDAL.framework/Versions/1.9/Headers/ogr_api.h:320: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:3,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:67: error: expected specifier-qualifier-list before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_structs.h:415: error: expected specifier-qualifier-list before ‘FILE’</div>

<div>In file included from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/digit.h:4,</div><div>                 from /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:4,</div><div>                 from close.c:4:</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:176: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:201: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:202: error: expected ‘)’ before ‘*’ token</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:203: error: expected ‘)’ before ‘*’ token</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/vect/dig_externs.h:204: error: expected ‘)’ before ‘*’ token</div><div>In file included from close.c:4:</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:154: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:382: error: expected declaration specifiers or ‘...’ before ‘FILE’</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/include/grass/Vect.h:420: error: expected declaration specifiers or ‘...’ before ‘FILE’</div>

<div>close.c: In function ‘close_streamvect’:</div><div>close.c:39: error: too many arguments to function ‘G__malloc’</div><div>close.c:98: error: too many arguments to function ‘G__realloc’</div><div>close.c:177: warning: incompatible implicit declaration of built-in function ‘sprintf’</div>

<div>lipo: can't figure out the architecture type of: /var/folders/5j/jb8xwzg57kbcpw6sq69_s_gc0000gn/T//cclKMSOW.out</div><div>make: *** [OBJ.i386-apple-darwin11.3.0/close.o] Error 1</div><div><br></div><div>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:</div>

<div><br></div><div><div>./configure \</div><div>--enable-64bit \</div><div>--enable-largefile \</div><div>--with-freetype \</div><div>--with-freetype-includes="/Library/Frameworks/FreeType.framework/unix/include/freetype2 /Library/Frameworks/FreeType.framework/unix/include" \</div>

<div>--with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib \</div><div>--with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config \</div><div>--with-proj \</div><div>--with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include \</div>

<div>--with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib \</div><div>--with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj \</div><div>--with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include \</div>

<div>--with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \</div><div>--with-png-includes=/Library/Frameworks/UnixImageIO.framework/unix/include \</div><div>--with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \</div>

<div>--with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include \</div><div>--with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \</div><div>--with-postgres \</div><div>--with-postgres-includes="/usr/include/postgresql /usr/include/postgresql/internal" \</div>

<div>--without-mysql \</div><div>--with-odbc \</div><div>--with-sqlite \</div><div>--with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib \</div><div>--with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include \</div>

<div>--with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include \</div><div>--with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib \</div><div>--with-cxx \</div><div>--with-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders" \</div>

<div>--with-x \</div><div>--without-glw \</div><div>--with-opengl=aqua \</div><div>--with-python \</div><div>--with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.1/bin/wx-config \</div><div>--with-ffmpeg \</div><div>--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" \</div>

<div>--with-ffmpeg-libs=/usr/local/lib \</div><div>--with-cairo \</div><div>--with-cairo-includes="/Library/Frameworks/cairo.framework/unix/include/cairo /Library/Frameworks/cairo.framework/unix/include" \</div>

<div>--with-cairo-libs=/Library/Frameworks/cairo.framework/unix/lib \</div><div>--with-fftw-includes=/usr/local/include \</div><div>--with-fftw-libs=/usr/local/lib \</div><div>--with-geos=/Library/Frameworks/GEOS.framework/unix/bin/geos-config \</div>

<div>--with-cairo-ldflags=-lcairo \</div><div>--with-blas \</div><div>--with-lapack \</div><div>--without-readline \</div><div>--without-motif \</div><div>--without-x11 \</div><div>--prefix=/Applications \</div><div>--enable-macosx-app</div>

</div><div><br></div><div>And the result is:</div><div><br></div><div><div>GRASS is now configured for:  x86_64-apple-darwin11.4.0</div><div><br></div><div>  Source directory:             /Users/jdmonto0/Downloads/grass/grass64_release</div>

<div>  Build directory:                /Users/jdmonto0/Downloads/grass/grass64_release</div><div>  Installation directory:       ${prefix}/GRASS-6.4.app/Contents/MacOS</div><div>  Startup script in directory: ${exec_prefix}/bin</div>

<div>  C compiler:                     gcc -g -O2 </div><div>  C++ compiler:                c++ -g -O2</div><div>  Building shared libraries:   yes</div><div>  64bit support:                   yes</div><div>  OpenGL platform:             Aqua</div>

<div><br></div><div>  MacOSX application:         yes</div><div>  MacOSX architectures:       </div><div>  MacOSX SDK:                 </div><div><br></div><div>  Tcl/Tk NVIZ:                yes</div><div><br></div><div>
  BLAS support:               yes</div>
<div>  C++ support:                yes</div><div>  Cairo support:               yes</div><div>  DWG support:                no</div><div>  FFMPEG support:             yes</div><div>  FFTW support:               yes</div>
<div>
  FreeType support:           yes</div><div>  GDAL support:               yes</div><div>  GEOS support:               yes</div><div>  GLw support:                no</div><div>  LAPACK support:             yes</div><div>  Large File support (LFS):   yes</div>

<div>  Motif support:              no</div><div>  MySQL support:              no</div><div>  NLS support:                no</div><div>  ODBC support:               yes</div><div>  OGR support:                yes</div><div>

  OpenGL support:             yes</div><div>  PNG support:                yes</div><div>  PostgreSQL support:         yes</div><div>  Python support:             yes</div><div>  Readline support:           no</div><div>  SQLite support:             yes</div>

<div>  Tcl/Tk support:             yes</div><div>  wxWidgets support:          yes</div><div>  TIFF support:               yes</div><div>  X11 support:                no</div></div><div><br></div><div>At this point, everything seems to be ok, but when I run make, I get this error:</div>

<div><br></div><div><div>-------------------------</div></div><div><div>GRASS GIS compilation log</div><div>-------------------------</div><div>Started compilation: Tue May 29 22:19:23 COT 2012</div><div>--</div><div>Errors in:</div>

<div>/Users/jdmonto0/Downloads/grass/grass64_release/lib/iostream</div><div>/Users/jdmonto0/Downloads/grass/grass64_release/gui/wxpython</div><div>/Users/jdmonto0/Downloads/grass/grass64_release/raster/r.terraflow</div><div>

/Users/jdmonto0/Downloads/grass/grass64_release/visualization/nviz</div><div>--</div><div>In case of errors please change into the directory with error and run 'make'.</div><div>If you get multiple errors, you need to deal with them in the order they</div>

<div>appear in the error log. If you get an error building a library, you will</div><div>also get errors from anything which uses the library.</div><div>--</div><div>Finished compilation: Tue May 29 22:26:19 COT 2012</div>

<div>make: *** [default] Error 1</div></div>-- <div><br></div><div>I don't know if I'm missing something</div><div><br></div><div>Thanks for your help</div><div><br></div><div><br>David Montoya González<br>Ing. Forestal, Universidad Nacional de Colombia<br>

Laboratorio de Sistemas Complejos, UNAL Medellin<br><br>
</div>