Hi David,
it casually happens that
www.gaia-gis.it is hosted on
CentOS 6.9, so I've attempted to reproduce your issues
on this server. but I simply discovered that the whole
build process was absolutely uneventful.
here is the exact log of my operations:
----------------------------------------------------
building SQLite 3.20.1
======================
wget
https://www.sqlite.org/2017/sqlite-autoconf-3200100.tar.gz
tar zxvf sqlite-autoconf-3200100.tar.gz
cd sqlite-autoconf-3200100
./configure --prefix=/home/sandro/test
make -j8
make install
building libspatialite-4.3.0a
=============================
cd ..
wget
http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.3.0a.tar.gz
tar zxvf libspatialite-4.3.0a.tar.gz
./configure --prefix=/home/sandro/test --enable-freexl=no
make -j8
make install
building spatialite-tools-4.3.0
===============================
cd ..
wget
http://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-4.3.0.tar.gz
tar zxvf spatialite-tools-4.3.0.tar.gz
export "PKG_CONFIG_PATH=/home/sandro/test/lib/pkgconfig"
./configure --prefix=/home/sandro/test --enable-freexl=no
--enable-readosm=no
make -j8
make install
final check
===========
/home/sandro/test/bin/spatialite
spatialite> SELECT sqlite_version();
3.20.1
spatialite> SELECT spatialite_version();
4.3.0a
spatialite> SELECT spatialite_target_cpu();
x86_64-redhat-linux
----------------------------------------------------
note:
when building spatialite-tools I received a fatal error
caused by an undeclared XML_PARSE_BIG_LINES
(the version of libxml2 supported by CentOS is really
obsolete); I just replaced the constant with a 0
value and after applying this quick&dirty patch the
build was finally successful.
bye Sandro