Re: [gdal-dev] build error from svn
Resolved thank you. On 07/17/2011 01:58 PM, Even Rouault wrote: Selon David Burkendbur...@comcast.net: Even, See below with more info, looks like there are multiple defined things including external cpl_serv.h. Hope this helps. Dave Yes, this was helpful. Should be fixed now. See http://trac.osgeo.org/gdal/ticket/4162#comment:2 Please svn update and retry (after undoing your changes). On 07/16/2011 03:12 PM, Frank Warmerdam wrote: Folks, I should have mentioned more widely, I have written up a ticket on this issue at: http://trac.osgeo.org/gdal/ticket/4162 I presume the problem occurs with an external libgeotiff but haven't yet tried to reproduce the problem. Best regards, On Sat, Jul 16, 2011 at 7:06 AM, Even Rouault even.roua...@mines-paris.org wrote: Selon David Burkendbur...@comcast.net: Dave, I presume you build GDAL against external libgeotiff, and not internal libgeotiff. In any case, it is weird because cpl_serv.h should be installed when installing libgeotiff (I've just verified it with libgeotiff from svn). So I presume the include paths in the GDAL compilation line might miss a directory ? Can you give more elements ? I have a third party directory that I install libtiff, libgeotiff, geos, proj4 to. It's /work/osgeo/local. To avoid confusion I totally removed my /work/osgeo/local/include directory and did make installs from scratch. This is a Fedora 14 build. My gdal is configured with: #!/bin/sh # File: mygdalconfig.sh # Note: Python needed for QGIS. prefix=/work/osgeo/local ./configure --prefix=${prefix} --with-kakadu=/work/drb/kakadu/latest --with-geos=/work/osgeo/local/bin/geos-config --with-libtiff=/work/osgeo/local --with-geotiff=/work/osgeo/local --with-mrsid=/work/drb/mrsid/Geo_DSDK-7.0.0.2167 --with-python $ svn update At revision 22734. $ svn status ? mygdalconfig.sh // my gdal configure script only $ make libtool: compile: g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c gt_wkt_srs.cpp -fPIC -DPIC -o ../o/.libs/gt_wkt_srs.o In file included from /work/osgeo/gdal/port/cpl_port.h:83:0, from /work/osgeo/gdal/ogr/ogr_core.h:33, from /work/osgeo/gdal/ogr/ogr_srs_api.h:34, from /work/osgeo/gdal/ogr/ogr_spatialref.h:34, from gt_wkt_srs.cpp:38: /work/osgeo/gdal/port/cpl_config.h:106:0: warning: HAVE_STDLIB_H redefined /work/osgeo/local/include/geo_config.h:5:0: note: this is the location of the previous definition /work/osgeo/gdal/port/cpl_config.h:112:0: warning: HAVE_STRING_H redefined /work/osgeo/local/include/geo_config.h:11:0: note: this is the location of the previous definition gt_wkt_srs.cpp: In function 'int GTIFSetFromOGISDefn(GTIF*, const char*)': gt_wkt_srs.cpp:2018:54: error: 'CSLTestBoolean' was not declared in this scope gt_wkt_srs.cpp:2083:57: error: 'CSLTestBoolean' was not declared in this scope gt_wkt_srs.cpp:2206:58: error: 'CSLTestBoolean' was not declared in this scope make[2]: *** [../o/gt_wkt_srs.lo] Error 1 make[2]: Leaving directory `/home/work/osgeo/gdal/frmts/gtiff' make[1]: *** [gtiff-install-obj] Error 2 So I add #include cpl_string.h below CPL_ERROR_H_INCLUDED in gt_wkt_srs.cpp to pick up CSLTestBoolean and then: make -C gtiff install-obj make[2]: Entering directory `/home/work/osgeo/gdal/frmts/gtiff' /bin/sh /work/osgeo/gdal/libtool --mode=compile --tag=CXX g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c -o ../o/gt_wkt_srs.lo gt_wkt_srs.cpp libtool: compile: g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c gt_wkt_srs.cpp -fPIC -DPIC -o ../o/.libs/gt_wkt_srs.o In file included from /work/osgeo/gdal/port/cpl_port.h:83:0, from /work/osgeo/gdal/port/cpl_vsi.h:34, from /work/osgeo/gdal/port/cpl_string.h:34, from gt_wkt_srs.cpp:37: /work/osgeo/gdal/port/cpl_config.h:106:0: warning: HAVE_STDLIB_H redefined /work/osgeo/local/include/geo_config.h:5:0: note: this is the location of the previous definition /work/osgeo/gdal/port/cpl_config.h:112:0: warning: HAVE_STRING_H redefined /work/osgeo/local/include/geo_config.h:11:0: note: this is the location of the previous definition In file included from /work/osgeo/gdal/port/cpl_string.h:36:0, from gt_wkt_srs.cpp:37:
Re: [gdal-dev] build error from svn
Even, See below with more info, looks like there are multiple defined things including external cpl_serv.h. Hope this helps. Dave On 07/16/2011 03:12 PM, Frank Warmerdam wrote: Folks, I should have mentioned more widely, I have written up a ticket on this issue at: http://trac.osgeo.org/gdal/ticket/4162 I presume the problem occurs with an external libgeotiff but haven't yet tried to reproduce the problem. Best regards, On Sat, Jul 16, 2011 at 7:06 AM, Even Rouault even.roua...@mines-paris.org wrote: Selon David Burkendbur...@comcast.net: Dave, I presume you build GDAL against external libgeotiff, and not internal libgeotiff. In any case, it is weird because cpl_serv.h should be installed when installing libgeotiff (I've just verified it with libgeotiff from svn). So I presume the include paths in the GDAL compilation line might miss a directory ? Can you give more elements ? I have a third party directory that I install libtiff, libgeotiff, geos, proj4 to. It's /work/osgeo/local. To avoid confusion I totally removed my /work/osgeo/local/include directory and did make installs from scratch. This is a Fedora 14 build. My gdal is configured with: #!/bin/sh # File: mygdalconfig.sh # Note: Python needed for QGIS. prefix=/work/osgeo/local ./configure --prefix=${prefix} --with-kakadu=/work/drb/kakadu/latest --with-geos=/work/osgeo/local/bin/geos-config --with-libtiff=/work/osgeo/local --with-geotiff=/work/osgeo/local --with-mrsid=/work/drb/mrsid/Geo_DSDK-7.0.0.2167 --with-python $ svn update At revision 22734. $ svn status ? mygdalconfig.sh // my gdal configure script only $ make libtool: compile: g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c gt_wkt_srs.cpp -fPIC -DPIC -o ../o/.libs/gt_wkt_srs.o In file included from /work/osgeo/gdal/port/cpl_port.h:83:0, from /work/osgeo/gdal/ogr/ogr_core.h:33, from /work/osgeo/gdal/ogr/ogr_srs_api.h:34, from /work/osgeo/gdal/ogr/ogr_spatialref.h:34, from gt_wkt_srs.cpp:38: /work/osgeo/gdal/port/cpl_config.h:106:0: warning: HAVE_STDLIB_H redefined /work/osgeo/local/include/geo_config.h:5:0: note: this is the location of the previous definition /work/osgeo/gdal/port/cpl_config.h:112:0: warning: HAVE_STRING_H redefined /work/osgeo/local/include/geo_config.h:11:0: note: this is the location of the previous definition gt_wkt_srs.cpp: In function 'int GTIFSetFromOGISDefn(GTIF*, const char*)': gt_wkt_srs.cpp:2018:54: error: 'CSLTestBoolean' was not declared in this scope gt_wkt_srs.cpp:2083:57: error: 'CSLTestBoolean' was not declared in this scope gt_wkt_srs.cpp:2206:58: error: 'CSLTestBoolean' was not declared in this scope make[2]: *** [../o/gt_wkt_srs.lo] Error 1 make[2]: Leaving directory `/home/work/osgeo/gdal/frmts/gtiff' make[1]: *** [gtiff-install-obj] Error 2 So I add #include cpl_string.h below CPL_ERROR_H_INCLUDED in gt_wkt_srs.cpp to pick up CSLTestBoolean and then: make -C gtiff install-obj make[2]: Entering directory `/home/work/osgeo/gdal/frmts/gtiff' /bin/sh /work/osgeo/gdal/libtool --mode=compile --tag=CXX g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c -o ../o/gt_wkt_srs.lo gt_wkt_srs.cpp libtool: compile: g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c gt_wkt_srs.cpp -fPIC -DPIC -o ../o/.libs/gt_wkt_srs.o In file included from /work/osgeo/gdal/port/cpl_port.h:83:0, from /work/osgeo/gdal/port/cpl_vsi.h:34, from /work/osgeo/gdal/port/cpl_string.h:34, from gt_wkt_srs.cpp:37: /work/osgeo/gdal/port/cpl_config.h:106:0: warning: HAVE_STDLIB_H redefined /work/osgeo/local/include/geo_config.h:5:0: note: this is the location of the previous definition /work/osgeo/gdal/port/cpl_config.h:112:0: warning: HAVE_STRING_H redefined /work/osgeo/local/include/geo_config.h:11:0: note: this is the location of the previous definition In file included from /work/osgeo/gdal/port/cpl_string.h:36:0, from gt_wkt_srs.cpp:37: /work/osgeo/gdal/port/cpl_conv.h:69:0: warning: CPLFree redefined /work/osgeo/local/include/cpl_serv.h:163:0: note: this is the location of the previous definition In file included from /work/osgeo/gdal/port/cpl_string.h:34:0, from gt_wkt_srs.cpp:37:
Re: [gdal-dev] build error from svn
Selon David Burken dbur...@comcast.net: Even, See below with more info, looks like there are multiple defined things including external cpl_serv.h. Hope this helps. Dave Yes, this was helpful. Should be fixed now. See http://trac.osgeo.org/gdal/ticket/4162#comment:2 Please svn update and retry (after undoing your changes). On 07/16/2011 03:12 PM, Frank Warmerdam wrote: Folks, I should have mentioned more widely, I have written up a ticket on this issue at: http://trac.osgeo.org/gdal/ticket/4162 I presume the problem occurs with an external libgeotiff but haven't yet tried to reproduce the problem. Best regards, On Sat, Jul 16, 2011 at 7:06 AM, Even Rouault even.roua...@mines-paris.org wrote: Selon David Burkendbur...@comcast.net: Dave, I presume you build GDAL against external libgeotiff, and not internal libgeotiff. In any case, it is weird because cpl_serv.h should be installed when installing libgeotiff (I've just verified it with libgeotiff from svn). So I presume the include paths in the GDAL compilation line might miss a directory ? Can you give more elements ? I have a third party directory that I install libtiff, libgeotiff, geos, proj4 to. It's /work/osgeo/local. To avoid confusion I totally removed my /work/osgeo/local/include directory and did make installs from scratch. This is a Fedora 14 build. My gdal is configured with: #!/bin/sh # File: mygdalconfig.sh # Note: Python needed for QGIS. prefix=/work/osgeo/local ./configure --prefix=${prefix} --with-kakadu=/work/drb/kakadu/latest --with-geos=/work/osgeo/local/bin/geos-config --with-libtiff=/work/osgeo/local --with-geotiff=/work/osgeo/local --with-mrsid=/work/drb/mrsid/Geo_DSDK-7.0.0.2167 --with-python $ svn update At revision 22734. $ svn status ? mygdalconfig.sh // my gdal configure script only $ make libtool: compile: g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c gt_wkt_srs.cpp -fPIC -DPIC -o ../o/.libs/gt_wkt_srs.o In file included from /work/osgeo/gdal/port/cpl_port.h:83:0, from /work/osgeo/gdal/ogr/ogr_core.h:33, from /work/osgeo/gdal/ogr/ogr_srs_api.h:34, from /work/osgeo/gdal/ogr/ogr_spatialref.h:34, from gt_wkt_srs.cpp:38: /work/osgeo/gdal/port/cpl_config.h:106:0: warning: HAVE_STDLIB_H redefined /work/osgeo/local/include/geo_config.h:5:0: note: this is the location of the previous definition /work/osgeo/gdal/port/cpl_config.h:112:0: warning: HAVE_STRING_H redefined /work/osgeo/local/include/geo_config.h:11:0: note: this is the location of the previous definition gt_wkt_srs.cpp: In function 'int GTIFSetFromOGISDefn(GTIF*, const char*)': gt_wkt_srs.cpp:2018:54: error: 'CSLTestBoolean' was not declared in this scope gt_wkt_srs.cpp:2083:57: error: 'CSLTestBoolean' was not declared in this scope gt_wkt_srs.cpp:2206:58: error: 'CSLTestBoolean' was not declared in this scope make[2]: *** [../o/gt_wkt_srs.lo] Error 1 make[2]: Leaving directory `/home/work/osgeo/gdal/frmts/gtiff' make[1]: *** [gtiff-install-obj] Error 2 So I add #include cpl_string.h below CPL_ERROR_H_INCLUDED in gt_wkt_srs.cpp to pick up CSLTestBoolean and then: make -C gtiff install-obj make[2]: Entering directory `/home/work/osgeo/gdal/frmts/gtiff' /bin/sh /work/osgeo/gdal/libtool --mode=compile --tag=CXX g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c -o ../o/gt_wkt_srs.lo gt_wkt_srs.cpp libtool: compile: g++ -g -O2 -Wall -I/work/osgeo/gdal/port -I/work/osgeo/gdal/gcore -I/work/osgeo/gdal/alg -I/work/osgeo/gdal/ogr -I/work/osgeo/gdal/ogr/ogrsf_frmts -DBIGTIFF_SUPPORT -DOGR_ENABLED -D_REENTRANT -I/work/osgeo/gdal/port -I/work/osgeo/local/include -I/work/osgeo/local/include -c gt_wkt_srs.cpp -fPIC -DPIC -o ../o/.libs/gt_wkt_srs.o In file included from /work/osgeo/gdal/port/cpl_port.h:83:0, from /work/osgeo/gdal/port/cpl_vsi.h:34, from /work/osgeo/gdal/port/cpl_string.h:34, from gt_wkt_srs.cpp:37: /work/osgeo/gdal/port/cpl_config.h:106:0: warning: HAVE_STDLIB_H redefined /work/osgeo/local/include/geo_config.h:5:0: note: this is the location of the previous definition /work/osgeo/gdal/port/cpl_config.h:112:0: warning: HAVE_STRING_H redefined /work/osgeo/local/include/geo_config.h:11:0: note: this is the location of the previous definition In file included from /work/osgeo/gdal/port/cpl_string.h:36:0, from gt_wkt_srs.cpp:37:
Re: [gdal-dev] build error from svn
David, Revision 22725 builds just fine for me. I normally do a make clean before every build. Maybe something went wrong in your build system. -marius On Fri, 2011-07-15 at 15:15 -0400, David Burken wrote: Hi Frank, all, Just fyi, getting build error from svn. Looks like cpl_serv.h is gone now. See below for minor patch. Take care, Dave $ svn update At revision 22725. gt_wkt_srs.cpp:33:22: fatal error: cpl_serv.h: No such file or directory compilation terminated. make[1]: *** [../o/gt_wkt_srs.lo] Error 1 make[1]: Leaving directory `/home/work/osgeo/gdal/frmts/gtiff' make: *** [gtiff-install-obj] Error 2 Compilation exited abnormally with code 2 at Fri Jul 15 15:06:55 Patch: svn diff frmts/gtiff/gt_wkt_srs.cpp Index: frmts/gtiff/gt_wkt_srs.cpp === --- frmts/gtiff/gt_wkt_srs.cpp(revision 22725) +++ frmts/gtiff/gt_wkt_srs.cpp(working copy) @@ -30,7 +30,9 @@ * DEALINGS IN THE SOFTWARE. / -#include cpl_serv.h +// #include cpl_serv.h + #include cpl_csv.h + #include geo_tiffp.h #define CPL_ERROR_H_INCLUDED ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev