[Gdal-dev] Build error with GRASS vector in GCC 3.3 but not GCC 4

William Kyngesburye woklist at kyngchaos.com
Mon Sep 19 23:28:27 EDT 2005

I got it - it seems that the definition of GPJ_grass_to_wkt in the  
GRASS headers depends on GRASS being built with OGR support.  I was  
building a trimmed down GRASS just for GDAL/OGR to get the libraries,  
leaving out everything I could, including GDAL.  For some odd reason  
I didn't have a problem with that in Mac OS 10.4/GCC 4.

Rebuilt GRASS for both, jsut to be sure.  All OK now so far.

On Sep 19, 2005, at 12:25 PM, William Kyngesburye wrote:

> I'm trying to add GRASS vector support to GDAL/OGR.  It works on  
> Mac OS 10.4 with GCC 4.  But with Mac OS 10.3/GCC 3.3 I have a  
> problem with ogrgrasslayer.cpp:
>  cp ../o/.libs/ogrgrassdatasource.o ../o/ogrgrassdatasource.o
> /bin/sh ../../../libtool --mode=compile g++ -Wall  -I/Users/Shared/ 
> src/grass/grass-6.0.1z/dist.powerpc-apple-darwin7.8.0/include   - 
> DUSE_CPL -DGRASS_GISBASE=\"/usr/local/gislibs\" -I.. -I../.. -I/usr/ 
> local/gislibs/include -I../../../port -I../../../gcore -I../../../ 
> alg -I../../../ogr -I../../../ogr/ogrsf_frmts -I../../../port -I/ 
> usr/local/graphicslibs -I/usr/local/graphicslibs/include -I/usr/ 
> local/graphicslibs -I/usr/local/graphicslibs/include -I/usr/local/ 
> graphicslibs -I/usr/local/graphicslibs/include -I/usr/local/gislibs/ 
> include -I/usr/local/graphicslibs/include -I/usr/local/graphicslibs  
> -I/usr/local/graphicslibs/include -I/Users/Shared/src/netcdf/ 
> netcdf-3.6.0-p1 -I/Users/Shared/src/netcdf/netcdf-3.6.0-p1/include - 
> I/usr/local/gislibs -I/usr/local/gislibs/include  -c -o ../o/ 
> ogrgrasslayer.o ogrgrasslayer.cpp
>  g++ -Wall -I/Users/Shared/src/grass/grass-6.0.1z/dist.powerpc- 
> apple-darwin7.8.0/include -DUSE_CPL -DGRASS_GISBASE=\"/usr/local/ 
> gislibs\" -I.. -I../.. -I/usr/local/gislibs/include -I../../../port  
> -I../../../gcore -I../../../alg -I../../../ogr -I../../../ogr/ 
> ogrsf_frmts -I../../../port -I/usr/local/graphicslibs -I/usr/local/ 
> graphicslibs/include -I/usr/local/graphicslibs -I/usr/local/ 
> graphicslibs/include -I/usr/local/graphicslibs -I/usr/local/ 
> graphicslibs/include -I/usr/local/gislibs/include -I/usr/local/ 
> graphicslibs/include -I/usr/local/graphicslibs -I/usr/local/ 
> graphicslibs/include -I/Users/Shared/src/netcdf/netcdf-3.6.0-p1 -I/ 
> Users/Shared/src/netcdf/netcdf-3.6.0-p1/include -I/usr/local/ 
> gislibs -I/usr/local/gislibs/include -c ogrgrasslayer.cpp  -fno- 
> common -DPIC -o ../o/.libs/ogrgrasslayer.o
> ogrgrasslayer.cpp: In constructor `OGRGRASSLayer::OGRGRASSLayer 
> (int, Map_info*)
>    ':
> ogrgrasslayer.cpp:210: error: `GPJ_grass_to_wkt' undeclared (first  
> use this
>    function)
> ogrgrasslayer.cpp:210: error: (Each undeclared identifier is  
> reported only once
>    for each function it appears in.)
> make[3]: *** [../o/ogrgrasslayer.o] Error 1
> make[2]: *** [grass-target] Error 2
> make[1]: *** [sublibs] Error 2
> make: *** [ogr-target] Error 2
> It's odd because it's not complaining that it can't find  
> gprojects.h (where GPJ_grass_to_wkt is defined).
> -----
> William Kyngesburye <kyngchaos at kyngchaos.com>
> http://www.kyngchaos.com/
> "Oh, look, I seem to have fallen down a deep, dark hole.  Now what  
> does that remind me of?  Ah, yes - life."
> - Marvin
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev

William Kyngesburye <kyngchaos at kyngchaos.com>

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly  
what the universe is for and why it is here, it will instantly  
disappear and be replaced by something even more bizarrely  
inexplicable.  There is another theory which states that this has  
already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro

More information about the Gdal-dev mailing list