[GRASS5] GMSL/g3d error on OSX compile

Kirk R. Wythers kwythers at umn.edu
Wed Dec 10 11:16:19 EST 2003


I'm building GRASS53 on Mac OSX. Here is my configure script:
./configure \
--with-postgres-includes=/sw/include/postgresql \
--with-postgres-libs=/sw/lib/postgresql \
--with-gdal=/usr/local/bin/gdal-config \
--with-includes=/sw/include \
--with-libs=/sw/lib \
--with-opengl-includes=/usr/X11R6/include \
--with-readline \
--with-proj

I'm getting an error:
Compilation error in module: src.contrib/GMSL/g3d (ignored)

Running gmake5 on /src.contrib/GMSL/g3d/src3d/raster/ gives:
showdspf.openGL
#################################################################
/Users/kirkw/tmp/grass53_exp_2003_12_06/src.contrib/GMSL/g3d/src3d/ 
raster/r3.showdspf.openGL
   make -f OBJ.powerpc-apple-darwin7.0.0/make.rules

gcc -I/Users/kirkw/tmp/grass53_exp_2003_12_06/src/include -I/sw/include  
-g -O2   -I/sw/include  
-I/Users/kirkw/tmp/grass53_exp_2003_12_06/src/libes/dspf  
-I/Users/kirkw/tmp/grass53_exp_2003_12_06/src/libes/ogsf  
-I/usr/X11R6/include  -I/usr/X11R6/include   -c main_ogl.c -o  
OBJ.powerpc-apple-darwin7.0.0/main_ogl.o
In file included from main_ogl.c:20:
kns_defines.h:4: error: parse error before "GLXContext"
kns_defines.h:4: warning: no semicolon at end of struct or union
kns_defines.h:13: error: parse error before '}' token
kns_defines.h:13: warning: data definition has no type or storage class
In file included from main_ogl.c:21:
kns_globals.h:11: error: parse error before "MainOGLWindow"
kns_globals.h:11: warning: data definition has no type or storage class
kns_globals.h:12: error: parse error before "ColormapWindow"
kns_globals.h:12: warning: data definition has no type or storage class
main_ogl.c: In function `main':
main_ogl.c:131: warning: passing arg 1 of `G3d_setErrorFun' from  
incompatible pointer type
make[3]: *** [OBJ.powerpc-apple-darwin7.0.0/main_ogl.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 1
make: *** [all] Error 2
truffula:~/tmp/grass53_exp_2003_12_06/src.contrib/GMSL/g3d kirkw$

Can this be fixed by trying to compile with GLX or MOTIF? Or is this  
just not a big deal?

Thanks,

Kirk




More information about the grass-dev mailing list