Dave, It seems to relate to my use of CPLString in this restricted file, a change I luckily didn't backport to 1.9. I have removed it, and made a note to myself to avoid this in the future. I'm sure I've done it before.
Best regards, On Wed, Oct 10, 2012 at 6:44 PM, David Burken <dbur...@comcast.net> wrote: > Hi Everyone, > > Just fyi, I can't build gdal with an external libgeotif without doing a > hack... Both gdal and libgeotiff from svn trunk. libtiff, geotiff were > installed in a fresh sandbox. Then configured gdal to use external > libtiff/geotiff. > > I got gdal to build by removing the libgeotiff installed cpl_serv.h and > copying gdal/frmts/gtiff/libgeotiff/**cpl_serv.h to gdal/port/cpl_serv.h > (in build include path). That's a hack I know but fixed. This was broken > before and fixed. Seems like it's back again. > > Not an issue for me but I thought I'd report it... Error from build below. > > Take care, > Dave > > > make[2]: Entering directory `/home/work/test/gdal/frmts/**gtiff' > /bin/sh /work/test/gdal/libtool --mode=compile --tag=CXX g++ -g -O2 -Wall > -I.. -I../jpeg -DHAVE_LIBJPEG -I/work/test/gdal/port > -I/work/test/gdal/gcore -I/work/test/gdal/alg -I/work/test/gdal/ogr > -I/work/test/gdal/ogr/ogrsf_**frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED > -D_REENTRANT -I/work/test/gdal/port -I/usr/local/ossim/include > -I/usr/local/ossim/include -c -o ../o/gt_wkt_srs.lo gt_wkt_srs.cpp > libtool: compile: g++ -g -O2 -Wall -I.. -I../jpeg -DHAVE_LIBJPEG > -I/work/test/gdal/port -I/work/test/gdal/gcore -I/work/test/gdal/alg > -I/work/test/gdal/ogr -I/work/test/gdal/ogr/ogrsf_**frmts > -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/test/gdal/port > -I/usr/local/ossim/include -I/usr/local/ossim/include -c gt_wkt_srs.cpp > -fPIC -DPIC -o ../o/.libs/gt_wkt_srs.o > In file included from /work/test/gdal/port/cpl_port.**h:84, > from /work/test/gdal/ogr/ogr_core.**h:33, > from /work/test/gdal/ogr/ogr_srs_**api.h:34, > from /work/test/gdal/ogr/ogr_**spatialref.h:34, > from gt_wkt_srs.cpp:38: > /work/test/gdal/port/cpl_**config.h:106:1: warning: "HAVE_STDLIB_H" > redefined > In file included from /usr/local/ossim/include/cpl_**serv.h:36, > from gt_wkt_srs.cpp:33: > /usr/local/ossim/include/geo_**config.h:5:1: warning: this is the > location of the previous definition > In file included from /work/test/gdal/port/cpl_port.**h:84, > from /work/test/gdal/ogr/ogr_core.**h:33, > from /work/test/gdal/ogr/ogr_srs_**api.h:34, > from /work/test/gdal/ogr/ogr_**spatialref.h:34, > from gt_wkt_srs.cpp:38: > /work/test/gdal/port/cpl_**config.h:112:1: warning: "HAVE_STRING_H" > redefined > In file included from /usr/local/ossim/include/cpl_**serv.h:36, > from gt_wkt_srs.cpp:33: > /usr/local/ossim/include/geo_**config.h:11:1: warning: this is the > location of the previous definition > gt_wkt_srs.cpp: In function 'CPLErr GTIFWktFromMemBuf(int, unsigned char*, > char**, double*, int*, GDAL_GCP**)': > gt_wkt_srs.cpp:2331: error: 'CPLString' was not declared in this scope > gt_wkt_srs.cpp:2331: error: expected ';' before 'osFilename' > gt_wkt_srs.cpp:2333: error: 'osFilename' was not declared in this scope > make[2]: *** [../o/gt_wkt_srs.lo] Error 1 > make[2]: Leaving directory `/home/work/test/gdal/frmts/**gtiff' > make[1]: *** [gtiff-install-obj] Error 2 > make[1]: Leaving directory `/home/work/test/gdal/frmts' > make: *** [frmts-target] Error 2 > > ______________________________**_________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/**mailman/listinfo/gdal-dev<http://lists.osgeo.org/mailman/listinfo/gdal-dev> > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev