<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve installed QGIS 2.14.3-Essen on an i386 Toughbook running Fedora 25.  The Processing plugin is missing the pyspatialite module, so I followed directions at
<a href="http://blog.oddbit.com/2015/11/17/installing-pyspatialite-on-fedora/">http://blog.oddbit.com/2015/11/17/installing-pyspatialite-on-fedora/</a> to install the dependencies and pyspatialite itself. 
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">All’s good until I get to the CFLAGS=-I/usr/include pip install pyspatialite line of the instructions.  I get this back:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"># CFLAGS=-I/usr/include pip install pyspatialite<br>
Collecting pyspatialite<br>
  Using cached pyspatialite-3.0.1-alpha-0.tar.gz<br>
Installing collected packages: pyspatialite<br>
  Running setup.py install for pyspatialite ... error<br>
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ZUHKMv/pyspatialite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__,
 'exec'))" install --record /tmp/pip-3kvpOW-record/install-record.txt --single-version-externally-managed --compile:<br>
    /usr/lib/python2.7/site-packages/setuptools/dist.py:364: UserWarning: Normalizing '3.0.1-alpha-0' to '3.0.1a0'<br>
      normalized_version,<br>
    running install<br>
    running build<br>
    running build_py<br>
    creating build<br>
    creating build/lib.linux-i686-2.7<br>
    creating build/lib.linux-i686-2.7/pyspatialite<br>
    copying lib/pyspatialite/dump.py -> build/lib.linux-i686-2.7/pyspatialite<br>
    copying lib/pyspatialite/dbapi2.py -> build/lib.linux-i686-2.7/pyspatialite<br>
    copying lib/pyspatialite/__init__.py -> build/lib.linux-i686-2.7/pyspatialite<br>
    running build_ext<br>
    creating tmp<br>
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -I/usr/include -c /tmp/pj_init_plus1zSZm0.c -o tmp/pj_init_plus1zSZm0.o<br>
    /tmp/pj_init_plus1zSZm0.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]<br>
     main (int argc, char **argv) {<br>
     ^~~~<br>
    /tmp/pj_init_plus1zSZm0.c: In function ‘main’:<br>
    /tmp/pj_init_plus1zSZm0.c:2:5: warning: implicit declaration of function ‘pj_init_plus’ [-Wimplicit-function-declaration]<br>
         pj_init_plus();<br>
         ^~~~~~~~~~~~<br>
    gcc -pthread tmp/pj_init_plus1zSZm0.o -L/usr/lib -L/usr/lib -lm -lproj -o a.out<br>
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -I/usr/include -c /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c -o tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.o<br>
    /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]<br>
     main (int argc, char **argv) {<br>
     ^~~~<br>
    /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c: In function ‘main’:<br>
    /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c:2:5: warning: implicit declaration of function ‘GEOSTopologyPreserveSimplify’ [-Wimplicit-function-declaration]<br>
         GEOSTopologyPreserveSimplify();<br>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
    gcc -pthread tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.o -L/usr/lib -L/usr/lib -lm -lgeos -lgeos_c -o a.out<br>
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -I/usr/include -c /tmp/iconvzp2nyR.c -o tmp/iconvzp2nyR.o<br>
    /tmp/iconvzp2nyR.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]<br>
     main (int argc, char **argv) {<br>
     ^~~~<br>
    /tmp/iconvzp2nyR.c: In function ‘main’:<br>
    /tmp/iconvzp2nyR.c:2:5: warning: implicit declaration of function ‘iconv’ [-Wimplicit-function-declaration]<br>
         iconv();<br>
         ^~~~~<br>
    building 'pyspatialite._spatialite' extension<br>
    creating build/temp.linux-i686-2.7<br>
    creating build/temp.linux-i686-2.7/src<br>
    creating build/temp.linux-i686-2.7/amalgamation<br>
    creating build/temp.linux-i686-2.7/amalgamation/libspatialite-amalgamation-3.0.1<br>
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DVERSION="3.0.1" -DSQLITE_ENABLE_RTREE=1 -DNDEBUG=1 -DSPL_AMALGAMATION=1 -DMODULE_NAME="spatialite.dbapi2" -DHAVE_PROJ_API_H=1 -DHAVE_GEOS_C_H=1 -Iamalgamation/libspatialite-amalgamation-3.0.1/headers
 -I/usr/include/python2.7 -I/usr/include -c src/module.c -o build/temp.linux-i686-2.7/src/module.o -DOMIT_FREEXL<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:648:8: error: redefinition of ‘struct sqlite3_file’<br>
     struct sqlite3_file {<br>
            ^~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:818:16: note: originally defined here<br>
     typedef struct sqlite3_file sqlite3_file;<br>
                    ^~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:743:8: error: redefinition of ‘struct sqlite3_io_methods’<br>
     struct sqlite3_io_methods {<br>
            ^~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:820:16: note: originally defined here<br>
       const struct sqlite3_io_methods *pMethods;  /* Methods for an open file */<br>
                    ^~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:1217:8: error: redefinition of ‘struct sqlite3_vfs’<br>
     struct sqlite3_vfs {<br>
            ^~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:1198:16: note: originally defined here<br>
     typedef struct sqlite3_vfs sqlite3_vfs;<br>
                    ^~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:1514:8: error: redefinition of ‘struct sqlite3_mem_methods’<br>
     struct sqlite3_mem_methods {<br>
            ^~~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:1493:16: note: originally defined here<br>
     typedef struct sqlite3_mem_methods sqlite3_mem_methods;<br>
                    ^~~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:5776:8: error: redefinition of ‘struct sqlite3_module’<br>
     struct sqlite3_module {<br>
            ^~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5012:16: note: originally defined here<br>
     typedef struct sqlite3_module sqlite3_module;<br>
                    ^~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:5905:8: error: redefinition of ‘struct sqlite3_index_info’<br>
     struct sqlite3_index_info {<br>
            ^~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5010:16: note: originally defined here<br>
     typedef struct sqlite3_index_info sqlite3_index_info;<br>
                    ^~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:5908:10: error: redefinition of ‘struct sqlite3_index_constraint’<br>
       struct sqlite3_index_constraint {<br>
              ^~~~~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5121:10: note: originally defined here<br>
       struct sqlite3_index_constraint {<br>
              ^~~~~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:5915:10: error: redefinition of ‘struct sqlite3_index_orderby’<br>
       struct sqlite3_index_orderby {<br>
              ^~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5128:10: note: originally defined here<br>
       struct sqlite3_index_orderby {<br>
              ^~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:5920:10: error: redefinition of ‘struct sqlite3_index_constraint_usage’<br>
       struct sqlite3_index_constraint_usage {<br>
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5133:10: note: originally defined here<br>
       struct sqlite3_index_constraint_usage {<br>
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:6018:8: error: redefinition of ‘struct sqlite3_vtab’<br>
     struct sqlite3_vtab {<br>
            ^~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5009:16: note: originally defined here<br>
     typedef struct sqlite3_vtab sqlite3_vtab;<br>
                    ^~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:6042:8: error: redefinition of ‘struct sqlite3_vtab_cursor’<br>
     struct sqlite3_vtab_cursor {<br>
            ^~~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5011:16: note: originally defined here<br>
     typedef struct sqlite3_vtab_cursor sqlite3_vtab_cursor;<br>
                    ^~~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:6537:8: error: redefinition of ‘struct sqlite3_mutex_methods’<br>
     struct sqlite3_mutex_methods {<br>
            ^~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:5710:16: note: originally defined here<br>
     typedef struct sqlite3_mutex_methods sqlite3_mutex_methods;<br>
                    ^~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/statement.h:29:0,<br>
                     from src/module.c:25:<br>
    /usr/include/sqlite3.h:7262:8: error: redefinition of ‘struct sqlite3_pcache_methods’<br>
     struct sqlite3_pcache_methods {<br>
            ^~~~~~~~~~~~~~~~~~~~~~<br>
    In file included from src/connection.h:33:0,<br>
                     from src/module.c:24:<br>
    amalgamation/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h:6325:16: note: originally defined here<br>
     typedef struct sqlite3_pcache_methods sqlite3_pcache_methods;<br>
                    ^~~~~~~~~~~~~~~~~~~~~~<br>
    error: command 'gcc' failed with exit status 1<br>
    <br>
    ----------------------------------------<br>
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ZUHKMv/pyspatialite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
 /tmp/pip-3kvpOW-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ZUHKMv/pyspatialite/<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sqlite3 imports into python, and the other dependencies seem to be fine.  Any advice on this much appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Bill Guthe<o:p></o:p></p>
<p class="MsoNormal">Research Computing/ OIT<o:p></o:p></p>
<p class="MsoNormal">Princeton University<o:p></o:p></p>
<p class="MsoNormal">Princeton, NJ  USA<o:p></o:p></p>
</div>
</body>
</html>