svn build error...

Frank Warmerdam warmerdam at POBOX.COM
Wed Dec 19 11:39:22 EST 2007


Steve Lime wrote:
> I tried rebuilding everything, new configure, etc... An error keeps popping up:
> 
> g++ -c -O2 -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCAT      -DUSE_WMS_LYR   -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR  -DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_SDE  -DUSE_PROJ -DUSE_EPPL -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB   -I/usr/include -I/usr/local/src/agg-2.4/include -I/usr/local/src/agg-2.4/font_freetype -I/usr/include/freetype2  -I/usr/local/include    -I/usr/local/esri/sdeexe91/include -I/usr/local/include -I/usr/local/pgsql/include    -I/usr/include/oracle/10.2.0.1/client -I/usr/rdbms/demo -I/usr/rdbms/public -I/usr/local/include    -I/usr/include/libxml2 mapogr.cpp -o mapogr.o
> mapogr.cpp: In function `int msOGRFileWhichShapes(layerObj*, rectObj, 
>    msOGRFileInfo*)':
> mapogr.cpp:1080: error: `OGR_G_AddPoint_2D' undeclared (first use this 
>    function)
> mapogr.cpp:1080: error: (Each undeclared identifier is reported only once for 
>    each function it appears in.)
> mapogr.cpp: In function `void msOGRCleanup()':
> mapogr.cpp:2685: error: `OGRCleanupAll' undeclared (first use this function)
> make: *** [mapogr.o] Error 1

Steve,

It would appear you are using a fairly antique GDAL and that these functions
exist only in more modern ones.  I'll take a crack at making them version
conditional and you can confirm if my changes do the trick.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapserver-dev mailing list