Opened 14 years ago

Closed 14 years ago

#3750 closed defect (worksforme)

Possible unexpected GEOS version dependency

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: geos
Cc:

Description

A user reports:

I cleared out the FWTools from my install and downloaded the latest GDAL (1.7.2RC3). The gdal make eventually produces an error with libgdal.so - undefined reference to 'GEOSFree'. I currently have Geos-2.2.3 installed. Is that too old to work with the current version of GDAL?

I'm concerned that GDAL depends on features of newer GEOS' without proper checking.

Change History (2)

comment:1 by Even Rouault, 14 years ago

This shouldn't happen. The use of GEOSFree is protected by :

#if GEOS_CAPI_VERSION_MAJOR >= 2
(GEOS_CAPI_VERSION_MAJOR == 1 && GEOS_CAPI_VERSION_MINOR >= 6)

GEOSFree( pabyBuf );

#else

free( pabyBuf );

#endif

But for GEOS 2.2.3, we have GEOS_CAPI_VERSION_MAJOR == 1 and GEOS_CAPI_VERSION_MINOR == 1, so we should just use free().

What I suspect is a mismatch of headers on the user system...

comment:2 by warmerdam, 14 years ago

Resolution: worksforme
Status: newclosed

Excellent, thanks for looking into this. The user just mentioned it in passing, so I think I'll close the ticket.

Note: See TracTickets for help on using tickets.