Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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 Changed 6 years ago by rouault

What is your GEOS version ?

comment:2 Changed 6 years ago by noog

ok i can compile after updating libgeos to 3.2.2 thks

comment:3 Changed 6 years ago by rouault

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.

comment:4 follow-up: Changed 6 years ago by rouault

  • Component changed from default to ConfigBuild
  • Milestone set to 1.8.1
  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from compilation problem in x86_64 to 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 in reply to: ↑ 4 Changed 6 years ago by noog

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 Changed 6 years ago by rouault

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...

Note: See TracTickets for help on using tickets.