Opened 12 years ago

Closed 12 years ago

#4418 closed defect (fixed)

gdal 1.9.0RC1 doesn't compile on CentOS 5 (and 4) when sqlite3 support is asked

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: gml sqlite centos
Cc:

Description

Compilation fails in the OGR SQLite and GML driver due to the use of methods such as sqlite_open_v2(), sqlite_prepare_v2() and sqlite3_clear_bindings() that are not available in the ancient version of sqlite (3.3.6) that ships with those 2 OS versions.

We can use sqlite_open() and sqlite_prepare() as a workaround if sqlite < 3.6 for example. As far as sqlite3_clear_bindings() is concerned, it is used by the OGR GML hugeresolver, which is a new thing and an optional one, so let's just disable it if sqlite < 3.6

Change History (2)

comment:1 by Even Rouault, 12 years ago

Fixed in trunk (r23675) and in branches/1.9 (r23676)

comment:2 by Even Rouault, 12 years ago

Milestone: 1.9.0
Resolution: fixed
Status: newclosed
Version: unspecifiedsvn-trunk

Pushed in time for RC2.

Note: See TracTickets for help on using tickets.