[GRASS5] compile error grass6 CVS lib/gis/grid_dist[12].c MacOSX

Scott Mitchell smitch at mac.com
Mon Feb 20 10:22:07 EST 2006


On MacOS 10.4.4, this morning's CVS GRASS6, I'm getting the following  
error (it compiled fine on a Fedora Linux system).  Increasingly  
rusty C skills are preventing successful self-fix.  Suggestions?

Looks like the only change in this file recently was on Jan 30,  
Markus logged that he removed some "unused stuff" - could that be  
related?

Thanks!

[OmarSosa:grass6/lib/gis] smitch% make
gcc -I/Volumes/smitchDataBank/src/grass6/dist.powerpc-apple- 
darwin8.4.0/include -I/usr/X11R6/include -I/sw/include -g -O2  -Wall - 
Wconversion -Wno-implicit-int -I/usr/X11R6/include -I/sw/include  - 
fno-common    -DPACKAGE=\""grasslibs"\" -D_FILE_OFFSET_BITS=64    - 
DPACKAGE=\""grasslibs"\"  -I/Volumes/smitchDataBank/src/grass6/ 
dist.powerpc-apple-darwin8.4.0/include \
         -o OBJ.powerpc-apple-darwin8.4.0/grid_dist1.o -c grid_dist1.c
grid_dist1.c:93: error: static declaration of 'sc' follows non-static  
declaration
grid_dist1.c:20: error: previous declaration of 'sc' was here
make: *** [OBJ.powerpc-apple-darwin8.4.0/grid_dist1.o] Error 1


Scott Mitchell
smitch AT mac dot com




More information about the grass-dev mailing list