Opened 11 years ago
Closed 11 years ago
#5244 closed defect (fixed)
SQLite: compilation error because redefinition of sqlite3_backup
Reported by: | jorgearevalo | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | sqlite, mac |
Cc: | jorgearevalo |
Description (last modified by )
In r26299, this line was added to ogrsqlite3ext.h:
typedef struct sqlite3_backup sqlite3_backup;
But this causes a compilation error with some SQLite versions because redefinition of sqlite3_backup (it is previously defined at sqlite.h, from SQLite3 library). Commenting that line in ogrsqlite3ext.h, it compiles. My environment:
- OS: Mac OS X 10.6.8 (Snow Leopard)
- SQLite3 v3.7.17
I'd suggest conditional definition of sqlite3_backup.
Change History (2)
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Yes, I've also reproduced it. All this messy stuff is due to still supporting spatialite amalgamation, which is deprecated in recenet spatialite versions. At some point we could also drop support for it.
r26445 "SQLite: fix compilation problem (trunk only, #5244)"