[GRASS-dev] compile errors for GRASS 7 in Mac OS X

Michael Barton michael.barton at asu.edu
Sun Dec 21 16:35:54 EST 2008


I just tried compiling GRASS 7 with OS X. Most went fine. I got a few  
errors

Error in...
/Users/cmbarton/grass_dev/grass7_src/lib/proj

Doesn't recognize the NAD2BIN environmental variable
Had to create symlink to /Library/Frameworks/PROJ.framework/Programs/ 
nad2bin in /usr/local
Then it compiled OK

Error in...
/Users/cmbarton/grass_dev/grass7_src/raster/r.statistics3

cmb-MBP-2:grass7_src cmbarton$ cd ./raster/r.statistics3
cmb-MBP-2:r.statistics3 cmbarton$ make
gcc -I/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.6.0/ 
include  -arch i386 -Os    -DPACKAGE=\""grassmods"\"   -I/Users/ 
cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.6.0/include -o  
OBJ.i386-apple-darwin9.6.0/main.o -c main.c
main.c:43: error: ‘fmin’ redeclared as different kind of symbol
main.c:43: error: ‘fmax’ redeclared as different kind of symbol
make: *** [OBJ.i386-apple-darwin9.6.0/main.o] Error 1

A bug that needs fixing I guess

Error in...
/Users/cmbarton/grass_dev/grass7_src/macosx/app

cd to ./macosx and ran make. No errors. Something in the make files  
messed up?


Michael



More information about the grass-dev mailing list