Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3342 closed defect (fixed)

Compilation problem on Ubuntu 9.10 when ./configure --with-spatialite=/usr

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.7.1
Component: ConfigBuild Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

Currently, when linking against libspatialite, we add -I$spatialite_prefix/include -I$spatialite_prefix/include/spatialite.

We need indeed to include $spatialite_prefix/include/spatialite.h and $spatialite_prefix/include/spatialite/sqlite3.h. The issue is that there's also a spatialite.h in $spatialite_prefix/include/spatialite, which is not the same as the one in the upper level and which we don't want to include !

Probably due to newer GCC in Ubuntu 9.10, the wrong spatialite.h is picked up which cause a compilation error.

The fix is to remove -I$spatialite_prefix/include/spatialite in GDALmake.opt and do #include <spatialite/sqlite3.h> in the spatialite case.

Change History (2)

comment:1 by Even Rouault, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk (r18612) and in branches/1.7 (r18613)

comment:2 by Even Rouault, 14 years ago

Milestone: 1.7.1
Note: See TracTickets for help on using tickets.