Hi, I'm trying to build GDAL 2.2.x, including most recent git, and I'm running into the following error. I've tried adding throw() to the end of this line, but it just results in more (and bizarre) errors.
Would appreciate any insight on how to proceed. Cheers Chris In file included from > /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/gcore/gdal_frmts.h:34:0, > from mbtilesdataset.cpp:29: > /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 > #define CPL_WARN_DEPRECATED(x) __attribute__ > ((deprecated)) > > ^ > /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' > CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead"); > ^ > In file included from > /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/port/cpl_port.h:137:0, > from > /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/gcore/gdal_frmts.h:34, > from mbtilesdataset.cpp:29: > /usr/include/stdio.h:364:12: error: from previous declaration 'int > sprintf(char*, const char*, ...) throw ()' > extern int sprintf (char *__restrict __s, > ^ > In file included from /usr/include/features.h:375:0, > from /usr/include/stdio.h:27, > from > /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/port/cpl_port.h:137, > from > /home/cmarsh/CHM/build-release/lib/GDAL-prefix/src/GDAL/gdal/gcore/gdal_frmts.h:34, > from mbtilesdataset.cpp:29: gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/cvmfs/ soft.computecanada.ca/nix/store/lvjwgn6hpngyy6k4xqcqa9h2cxy3fl30-gfortran-5.4.0/libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix gcc version 5.4.0 (GCC)
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev