Opened 8 years ago

Closed 8 years ago

#4515 closed defect (fixed)

sqlite build error on SUSE Enterprise Server (in fact for SQLite >= 3.6.0 and < 3.6.7)

Reported by: dassau Owned by: warmerdam
Priority: normal Milestone: 1.9.1
Component: OGR_SF Version: 1.9.0
Severity: normal Keywords: ogr sqlite
Cc:

Description (last modified by Even Rouault)

Hi,

I try to build RPM packages for SUSE Enterprise Server 11 and 11 SP 1 on the OpensuseBuildServer? and get following error.

https://build.opensuse.org/package/show?package=libgdal&project=Application%3AGeo

For newer packages the sources compile without any problem. Could someone have a look and try to fix this? Or maybe the sqlite used in SLE is too old?

ogrsqlitevfs.cpp: In function 'void (* OGRSQLiteVFSDlSym(sqlite3_vfs*, void*, const char*))()':
ogrsqlitevfs.cpp:309: error: invalid conversion from 'void*' to 'void (*)()'
ogrsqlitevfs.cpp: In function 'sqlite3_vfs* OGRSQLiteCreateVFS()':
ogrsqlitevfs.cpp:362: error: invalid conversion from 'void (* (*)(sqlite3_vfs*, void*, const char*))()' to 'void* (*)(sqlite3_vfs*, void*, const char*)'
make[3]: *** [../o/ogrsqlitevfs.lo] Error 1
make[3]: Leaving directory `/usr/src/packages/BUILD/gdal-1.9.0/ogr/ogrsf_frmts/sqlite'
make[2]: *** [sqlite-target] Error 2
make[2]: Leaving directory `/usr/src/packages/BUILD/gdal-1.9.0/ogr/ogrsf_frmts'
make[1]: *** [sublibs] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/gdal-1.9.0/ogr'
make: *** [ogr-target] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.11916 (%build)

Regards Otto

Change History (4)

comment:1 Changed 8 years ago by Even Rouault

Description: modified (diff)

comment:2 Changed 8 years ago by Even Rouault

Otto,

Interesting... This is the same as #4492 that I thought was restricted to a niche compiler. Could you tell me which exact GCC version is used by SUSE Enterprise Server 11 ?

comment:3 Changed 8 years ago by dassau

Hi,

oh sorry, I didn't check that this already existed in #4492. SUSE Enterprise Server 11 uses gcc43-4.3.3_20081022-11.18.

Regards Otto

comment:4 Changed 8 years ago by Even Rouault

Component: defaultOGR_SF
Keywords: ogr sqlite added
Milestone: 1.9.1
Resolution: fixed
Status: newclosed
Summary: sqlite build error on SUSE Enterprise Serversqlite build error on SUSE Enterprise Server (in fact for SQLite >= 3.6.0 and < 3.6.7)

I tested with OpenSuse? 11.1 and reproduced the issue. It turns it was not a compiler problem but a change in the interface of sqlite3 ...

r23975 /trunk/gdal/ogr/ogrsf_frmts/sqlite/ogrsqlitevfs.cpp: SQLite: fix compilation problem with SQLite >= 3.6.0 and < 3.6.7 (#4515)

r23976 /branches/1.9/gdal/ogr/ogrsf_frmts/sqlite/ogrsqlitevfs.cpp: SQLite: fix compilation problem with SQLite >= 3.6.0 and < 3.6.7 (#4515)

Note: See TracTickets for help on using tickets.