[GRASS5] [PATCH] Compile grass 5.7.0 on Mac OS X (Fink)

Blair Zajac blair at orcaware.com
Sat Jun 26 23:13:39 EDT 2004


Hello,

I'm working on getting grass 5.7.0 into the Fink tree for Mac OS X and had to 
apply this one minor patch to get grass to compile.  On Fink, the readline 
include files are normally in /sw/include.

This patch fixes this compile error:

Makefile:96: warning: overriding commands for target `htmlcmd'
../../include/Make/Rules.make:37: warning: ignoring old commands for target 
`htmlcmd'
mkdir -p OBJ.powerpc-apple-darwin7.4.0
bison -y -b y -d mapcalc.y
gcc -L/sw/lib 
-L/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0/lib 
-I/sw/src/grass-5.7.0-1/grass-5.7.0/include 
-I/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0
/include  -o OBJ.powerpc-apple-darwin7.4.0/y.tab.o -c y.tab.c
rm -f lex.yy.c y.output lex.backup
flex -t mapcalc.l > lex.yy.c
gcc -L/sw/lib 
-L/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0/lib 
-I/sw/src/grass-5.7.0-1/grass-5.7.0/include 
-I/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0
/include  -o OBJ.powerpc-apple-darwin7.4.0/lex.yy.o -c lex.yy.c
mapcalc.l:10:31: readline/readline.h: No such file or directory
mapcalc.l:11:30: readline/history.h: No such file or directory
mapcalc.l: In function `get_input_stream':
mapcalc.l:51: warning: assignment makes pointer from integer without a cast
make[2]: *** [lex.yy.c] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1
### execution of (export failed, exit code 2
Failed: compiling grass-5.7.0-1 failed

Regards,
Blair

-- 
Blair Zajac <blair at orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

-------------- next part --------------
--- grass-5.7.0/raster/r.mapcalc/Makefile.orig	2004-05-24 09:18:28.000000000 -0700
+++ grass-5.7.0/raster/r.mapcalc/Makefile	2004-06-26 11:29:52.000000000 -0700
@@ -87,7 +87,7 @@
 lex.yy.c: mapcalc.l y.tab.h
 	rm -f lex.yy.c y.output lex.backup
 	$(LEX) -t mapcalc.l > $@
-	$(CC) $(LDFLAGS) $(INC) $(XTRA_LDFLAGS) -o $(OBJDIR)/$*.o -c $*.c
+	$(CC) $(EXTRA_CFLAGS) $(LDFLAGS) $(INC) $(XTRA_LDFLAGS) -o $(OBJDIR)/$*.o -c $*.c
 
 #clean:
 #	rm -f y.tab.c y.tab.h lex.yy.c y.output lex.backup *~


More information about the grass-dev mailing list