Dave,<div><br></div><div>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.</div>
<div><br></div><div>Best regards,<br><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 6:44 PM, David Burken <span dir="ltr"><<a href="mailto:dburken@comcast.net" target="_blank">dburken@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<br>
<br>
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.<br>

<br>
I got gdal to build by removing the libgeotiff installed cpl_serv.h and copying gdal/frmts/gtiff/libgeotiff/<u></u>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.<br>

<br>
Not an issue for me but I thought I'd report it...  Error from build below.<br>
<br>
Take care,<br>
Dave<br>
<br>
<br>
make[2]: Entering directory `/home/work/test/gdal/frmts/<u></u>gtiff'<br>
/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_<u></u>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<br>

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_<u></u>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<br>

In file included from /work/test/gdal/port/cpl_port.<u></u>h:84,<br>
                 from /work/test/gdal/ogr/ogr_core.<u></u>h:33,<br>
                 from /work/test/gdal/ogr/ogr_srs_<u></u>api.h:34,<br>
                 from /work/test/gdal/ogr/ogr_<u></u>spatialref.h:34,<br>
                 from gt_wkt_srs.cpp:38:<br>
/work/test/gdal/port/cpl_<u></u>config.h:106:1: warning: "HAVE_STDLIB_H" redefined<br>
In file included from /usr/local/ossim/include/cpl_<u></u>serv.h:36,<br>
                 from gt_wkt_srs.cpp:33:<br>
/usr/local/ossim/include/geo_<u></u>config.h:5:1: warning: this is the location of the previous definition<br>
In file included from /work/test/gdal/port/cpl_port.<u></u>h:84,<br>
                 from /work/test/gdal/ogr/ogr_core.<u></u>h:33,<br>
                 from /work/test/gdal/ogr/ogr_srs_<u></u>api.h:34,<br>
                 from /work/test/gdal/ogr/ogr_<u></u>spatialref.h:34,<br>
                 from gt_wkt_srs.cpp:38:<br>
/work/test/gdal/port/cpl_<u></u>config.h:112:1: warning: "HAVE_STRING_H" redefined<br>
In file included from /usr/local/ossim/include/cpl_<u></u>serv.h:36,<br>
                 from gt_wkt_srs.cpp:33:<br>
/usr/local/ossim/include/geo_<u></u>config.h:11:1: warning: this is the location of the previous definition<br>
gt_wkt_srs.cpp: In function 'CPLErr GTIFWktFromMemBuf(int, unsigned char*, char**, double*, int*, GDAL_GCP**)':<br>
gt_wkt_srs.cpp:2331: error: 'CPLString' was not declared in this scope<br>
gt_wkt_srs.cpp:2331: error: expected ';' before 'osFilename'<br>
gt_wkt_srs.cpp:2333: error: 'osFilename' was not declared in this scope<br>
make[2]: *** [../o/gt_wkt_srs.lo] Error 1<br>
make[2]: Leaving directory `/home/work/test/gdal/frmts/<u></u>gtiff'<br>
make[1]: *** [gtiff-install-obj] Error 2<br>
make[1]: Leaving directory `/home/work/test/gdal/frmts'<br>
make: *** [frmts-target] Error 2<br>
<br>
______________________________<u></u>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush    | Geospatial Software Developer<br><br>
</div>