#3990 closed defect (fixed)
compilation problem with GEOS 3.0.4
Reported by: | noog | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.8.1 |
Component: | ConfigBuild | Version: | 1.8.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
hello, in slackware 13.1 x86_64 i have this error during the compilation
/bin/sh /tmp/SBo/gdal-1.8.0/libtool --mode=compile --tag=CXX g++ -DHAVE_MITAB -O2 -fPIC -Wall -Iogrsf_frmts -I. -I/tmp/SBo/gdal-1.8.0/port -I/tmp/SBo/gdal-1.8.0/gcore -I/tmp/SBo/gdal-1.8.0/alg -I/tmp/SBo/gdal-1.8.0/ogr -I/tmp/SBo/gdal-1.8.0/ogr/ogrsf_frmts -DPROJ_STATIC -DHAVE_EXPAT -I/usr/include -DHAVE_GEOS=1 -I/usr/include -DOGR_ENABLED -I/tmp/SBo/gdal-1.8.0/port -I/usr/lib64 -I/usr/lib64/include -c -o ogrgeometry.lo ogrgeometry.cpp libtool: compile: g++ -DHAVE_MITAB -O2 -fPIC -Wall -Iogrsf_frmts -I. -I/tmp/SBo/gdal-1.8.0/port -I/tmp/SBo/gdal-1.8.0/gcore -I/tmp/SBo/gdal-1.8.0/alg -I/tmp/SBo/gdal-1.8.0/ogr -I/tmp/SBo/gdal-1.8.0/ogr/ogrsf_frmts -DPROJ_STATIC -DHAVE_EXPAT -I/usr/include -DHAVE_GEOS=1 -I/usr/include -DOGR_ENABLED -I/tmp/SBo/gdal-1.8.0/port -I/usr/lib64 -I/usr/lib64/include -c ogrgeometry.cpp -fPIC -DPIC -o .libs/ogrgeometry.o ogrgeometry.cpp: In member function 'virtual OGRGeometry* OGRGeometry::UnionCascaded() const': ogrgeometry.cpp:2554: erreur: 'GEOSUnionCascaded' was not declared in this scope
Change History (6)
comment:1 by , 13 years ago
comment:3 by , 13 years ago
my question was "what is your GEOS version" so we can try to improve the logic in GDAL to avoid using GEOSUnionCascaded for older GEOS versions, without requiring users to upgrade.
follow-up: 5 comment:4 by , 13 years ago
Component: | default → ConfigBuild |
---|---|
Milestone: | → 1.8.1 |
Resolution: | → fixed |
Status: | new → closed |
Summary: | compilation problem in x86_64 → compilation problem with GEOS 3.0.4 |
Ok, this reminded me of a report some months ago. I suspect that before upgrading you had GEOS 3.0.4, is that right ? This should be fixed by :
r21918 /trunk/gdal/ogr/ogrgeometry.cpp: Change how we check for GEOS >= 3.1 as GEOS 3.0.4 mistakenly advertized a CAPI 1.5 (#3990)
r21919 /branches/1.8/gdal/ogr/ogrgeometry.cpp: Change how we check for GEOS >= 3.1 as GEOS 3.0.4 mistakenly advertized a CAPI 1.5 (#3990)
Please reopen if it was not GEOS 3.0.4
comment:5 by , 13 years ago
hello i had the 3.0.2 version
Replying to rouault:
Ok, this reminded me of a report some months ago. I suspect that before upgrading you had GEOS 3.0.4, is that right ? This should be fixed by :
r21918 /trunk/gdal/ogr/ogrgeometry.cpp: Change how we check for GEOS >= 3.1 as GEOS 3.0.4 mistakenly advertized a CAPI 1.5 (#3990)
r21919 /branches/1.8/gdal/ogr/ogrgeometry.cpp: Change how we check for GEOS >= 3.1 as GEOS 3.0.4 mistakenly advertized a CAPI 1.5 (#3990)
Please reopen if it was not GEOS 3.0.4
comment:6 by , 13 years ago
That's weird. I've just downloaded GEOS 3.0.2 and from the geos_c.h I see, it should have build OK with it before the change. Oh well, the new way should be OK anyway...
What is your GEOS version ?