<div dir="ltr">Hi,<div>I'm trying to build GDAL 2.2.x, including most recent git, and I'm running into the following error.</div><div>I've tried adding throw() to the end of this line, but it just results in more (and bizarre) errors.</div><div><br></div><div>Would appreciate any insight on how to proceed.</div><div><br></div><div>Cheers</div><div>Chris</div><div><br></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In file included from /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/gcore/gdal_frmts.h:34:0,<br>                 from mbtilesdataset.cpp:29:<br>/home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/port/cpl_port.h:1101:85: error: declaration of 'int sprintf(char*, const char*, ...)' has a different exception specifier<br>     #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated))<br>                                                                                     ^<br>/home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/port/cpl_port.h:1121:5: note: in expansion of macro 'CPL_WARN_DEPRECATED'<br>     CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");<br>     ^<br>In file included from /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/port/cpl_port.h:137:0,<br>                 from /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/gcore/gdal_frmts.h:34,<br>                 from mbtilesdataset.cpp:29:<br>/usr/include/stdio.h:364:12: error: from previous declaration 'int sprintf(char*, const char*, ...) throw ()'<br> extern int sprintf (char *__restrict __s,<br>            ^<br>In file included from /usr/include/features.h:375:0,<br>                 from /usr/include/stdio.h:27,<br>                 from /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/port/cpl_port.h:137,<br>                 from /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/gcore/gdal_frmts.h:34,<br>                 from mbtilesdataset.cpp:29:</blockquote><div><br></div><div><br></div><div>gcc -v</div><div>Using built-in specs.</div><div>COLLECT_GCC=gcc</div><div>COLLECT_LTO_WRAPPER=/cvmfs/<a href="http://soft.computecanada.ca/nix/store/lvjwgn6hpngyy6k4xqcqa9h2cxy3fl30-gfortran-5.4.0/libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/lto-wrapper">soft.computecanada.ca/nix/store/lvjwgn6hpngyy6k4xqcqa9h2cxy3fl30-gfortran-5.4.0/libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/lto-wrapper</a></div><div>Target: x86_64-unknown-linux-gnu</div><div>Configured with:</div><div>Thread model: posix</div><div>gcc version 5.4.0 (GCC) </div></div></div>