[gdal-dev] GDAL 2.2.0 beta1 compile fails for SQLITE_VERSION_NUMBER 3006020

Andrew C Aitchison andrew at aitchison.me.uk
Sun Apr 16 05:21:23 PDT 2017


GDAL 2.2.0 beta1
Scientific Linux 6 (= CentOS6 =  Red Hat EL 6).
g++ 4.9.2 and g++ 5.3.1

This system has sqlite v 3.6.2:
/usr/include/sqlite3.h has
#define SQLITE_VERSION_NUMBER 3006020

cd /home/werdna/gdal2.2.0beta1/gdal-2.2.0/ogr/ogrsf_frmts/gpkg

/bin/sh /home/werdna/gdal2.2.0beta1/gdal-2.2.0/libtool --mode=compile --tag=CXX g++ -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/port -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/gcore -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/alg -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/ogr -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/ogr/ogrsf_frmts -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/gnm -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names  -I.. -I../sqlite -I../../../frmts/mem -I/usr/include -DGNM_ENABLED -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/port -I/usr/include -I/usr/include/cfitsio  -DGDAL_COMPILATION -DSQLITE_HAS_COLUMN_METADATA -c -o ../o/ogrgeopackagetablelayer
 .lo ogrgeopackagetablelayer.cpp
libtool: compile:  g++ -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/port -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/gcore -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/alg -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/ogr -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/ogr/ogrsf_frmts -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/gnm -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -I.. -I../sqlite -I../../../frmts/mem -I/usr/include -DGNM_ENABLED -I/home/werdna/gdal2.2.0beta1/gdal-2.2.0/port -I/usr/include -I/usr/include/cfitsio -DGDAL_COMPILATION -DSQLITE_HAS_COLUMN_METADATA -c ogrgeopackagetablelayer.cpp  -fPIC -DPIC -o ../o/.libs/ogrgeopackagetablelayer.o
ogrgeopackagetablelayer.cpp: In member function 'virtual OGRErr OGRGeoPackageTableLayer::ISetFeature(OGRFeature*)':
ogrgeopackagetablelayer.cpp:1650:75: error: no matching function for call to 'OGRGeoPackageTableLayer::FeatureGenerateInsertSQL(OGRFeature*&, bool)'
              CPLString osCommand = FeatureGenerateInsertSQL(poFeature, true);
                                                                            ^
ogrgeopackagetablelayer.cpp:1650:75: note: candidate is:
ogrgeopackagetablelayer.cpp:417:11: note: CPLString OGRGeoPackageTableLayer::FeatureGenerateInsertSQL(OGRFeature*, bool, bool)
  CPLString OGRGeoPackageTableLayer::FeatureGenerateInsertSQL( OGRFeature *poFeature,
            ^
ogrgeopackagetablelayer.cpp:417:11: note:   candidate expects 3 arguments, 2 provided
ogrgeopackagetablelayer.cpp:1673:82: error: no matching function for call to 'OGRGeoPackageTableLayer::FeatureBindInsertParameters(OGRFeature*&, sqlite3_stmt*&, bool)'
          errOgr = FeatureBindInsertParameters(poFeature, m_poUpdateStatement, true);
                                                                                   ^
ogrgeopackagetablelayer.cpp:1673:82: note: candidate is:
ogrgeopackagetablelayer.cpp:399:8: note: OGRErr OGRGeoPackageTableLayer::FeatureBindInsertParameters(OGRFeature*, sqlite3_stmt*, bool, bool)
  OGRErr OGRGeoPackageTableLayer::FeatureBindInsertParameters( OGRFeature *poFeature,
         ^
ogrgeopackagetablelayer.cpp:399:8: note:   candidate expects 4 arguments, 3 provided
make: *** [../o/ogrgeopackagetablelayer.lo] Error 1


More information about the gdal-dev mailing list