<div dir="ltr">Hi Even,<div><br></div><div>2.2.0beta2 fails to build on my macbook. Here is the error:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>cpl_conv.cpp:2060:9: error: use of undeclared identifier 'isnan'; did you mean 'std::isnan'?</div></div><div><div>    if( CPLIsNan(dfAngle) )</div></div><div><div>        ^</div></div><div><div>/Users/sean/code/frs-wheel-builds/parts/gdal__compile__/gdal-2.2.0/port/cpl_port.h:687:23: note: expanded from macro 'CPLIsNan'</div></div><div><div>#  define CPLIsNan(x) isnan(x)</div></div><div><div>                      ^</div></div><div><div>/usr/include/c++/4.2.1/cmath:551:5: note: 'std::isnan' declared here</div></div><div><div>    isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }</div></div><div><div>    ^</div></div><div><div>1 error generated.</div></div></blockquote><div><br></div><div>My compiler details:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>$ gcc -v</div></div><div><div>Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1</div></div><div><div>Apple LLVM version 8.0.0 (clang-800.0.42.1)</div></div><div><div>Target: x86_64-apple-darwin16.4.0</div></div><div><div>Thread model: posix</div></div><div><div>InstalledDir: /Library/Developer/CommandLineTools/usr/bin</div></div><div><br></div></blockquote>Perhaps related to the changes at <a href="https://github.com/OSGeo/gdal/blame/trunk/gdal/port/cpl_port.h#L656-L667">https://github.com/OSGeo/gdal/blame/trunk/gdal/port/cpl_port.h#L656-L667</a>? 2.1.3 builds with no errors, only a few warnings about redefinition of HAVE_LONG_LONG (in combination with Python).<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 23, 2017 at 2:58 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'monospace';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hi,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">As there have already been a number of changes, I have prepared a Beta 2 for GDAL/OGR 2.2.0. I think we can still aim for a RC1 at end of the week.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">The source is available at:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    <a href="http://download.osgeo.org/gdal/2.2.0/gdal-2.2.0beta2.tar.xz" target="_blank">http://download.osgeo.org/<wbr>gdal/2.2.0/gdal-2.2.0beta2.<wbr>tar.xz</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    <a href="http://download.osgeo.org/gdal/2.2.0/gdal-2.2.0beta2.tar.gz" target="_blank">http://download.osgeo.org/<wbr>gdal/2.2.0/gdal-2.2.0beta2.<wbr>tar.gz</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    <a href="http://download.osgeo.org/gdal/2.2.0/gdal220beta2.zip" target="_blank">http://download.osgeo.org/<wbr>gdal/2.2.0/gdal220beta2.zip</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">A snapshot of the Python autotest suite can be downloaded from:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    <a href="http://download.osgeo.org/gdal/2.2.0/gdalautotest-2.2.0beta2.tar.gz" target="_blank">http://download.osgeo.org/<wbr>gdal/2.2.0/gdalautotest-2.2.<wbr>0beta2.tar.gz</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    <a href="http://download.osgeo.org/gdal/2.2.0/gdalautotest-2.2.0beta2.zip" target="_blank">http://download.osgeo.org/<wbr>gdal/2.2.0/gdalautotest-2.2.<wbr>0beta2.zip</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Changes since beta1 :</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GeoJSON: improve/fix field type promotion</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- OGRGeometryFactory::<wbr>organizePolygons(): return POLYGON EMPTY when - nPolygonCount == 0</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Remove all direct uses of json_tokener_parse_ex(); use OGRJSonParse() instead</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Set string length for libjson parser in OGRJSonParse.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GeoJSON: fix crash if NATIVE_MEDIA_TYPE creation option is specified alone</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- validate_gpkg: fix validation of req 62</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Python bindings: accept unicode strings as field name argument in Feature (like SetField, GetField, etc...) and FeatureDefn methods</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- javadoc.java: fix signature for get/set datetime methods</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">gdalwarp: fix crash when -multi and -to RPC_DEM are used together (fixes #6869)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- NITF: add support for writing JPEG2000 compressed images with JP2OpenJPEG driver; fix writing with JP2KAK driver (emit codestream only instead of JP2 format); fix setting of NBPR/NBPC/NPPBH/NPPBV fields for JPEG2000 (fixes #4322); in JP2ECW case, make sure that the default PROFILE=NPJE implies 1024 block size at the NITF level</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Fix hErrorMutex leak if GDALAllRegister is not called</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- OGRParse: fix parsing logic to avoid false positive detection of string as datetime (#6867)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GMLAS: improve swe:DataArray support and add swe:DataRecord support</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- PDF: fix compilation with C++11 compiler and Poppler 0.15 from CentOS/RHEL 6</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Add CPLString(const char*, n) constructor (and some cleanup for ancient unsupported MSVC versions)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GeoRaster driver: support for JP2-F compression, support direct loading of - - JPEG-F when blocking=no, default blocking increased from 256x256 to 512x512 (#6861)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- OpenJpeg driver: support direct extracting of GeoRaster JP2-F BLOB (#6861)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- OCI driver: support for long identifiers (up to 128 long) when running of 12.2 or +  (#6866)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- OCILOB VSIL driver: new driver to streams in and out of Oracle BLOB as a GDAL large virtual file system (#6861)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- netCDF: fix compilation with VS2015</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GTX: fix behaviour of SHIFT_ORIGIN_IN_MINUS_180_<wbr>PLUS_180=YES when origin is at -180</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GTiff: map D_North_American_1927 datum citation name to OGC North_American_Datum_1927 so that datum is properly recognized (fixes #6863)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- MBTiles: fix setting of minzoom when computing overviews out of order</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Fix runtime of Python VRT derived bands with numpy 1.3 of RHEL 6</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GPKG: fix compilation error with sqlite3 < 3.7.8</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- OSM: rename constant variable to knPAGE_SIZE to avoid clash with Cygwin's #define PAGE_SIZE in /usr/include/limits.h</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- CSV: fix comparison broken in r36979 (fixes #6862)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- MBTiles: do not open .mbtiles that contain vector tiles, which are not supported by the driver</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- netCDF: add a HONOUR_VALID_RANGE=YES/NO open option to control whether pixel values outside of the validity range should be set to the nodata value (#6857)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- DTED: correctly create files at latitudes -80, -75, -70 and -50 (#6859)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Internal libgeotiff: hide symbols in --with-hide-internal-symbols mode</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- configure: propagate -fvisibility=hidden in --with-hide-internal-symbols mode in CFLAGS_NOFTRAPV, CXXFLAGS_NOFTRAPV, CXXFLAGS_NO_LTO_IF_AVX_<wbr>NONDEFAULT and CXXFLAGS_NO_LTO_IF_SSSE3_<wbr>NONDEFAULT</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- Shape: do not export Shapelib symbols for builds --with-hide-internal-symbols (#6860)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GPKG: do not change application_id/user_version when appending a raster to an existing database</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">- GPKG: do not warn on gpkg_schema extension</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Even</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div><br>______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Sean Gillies</div></div>
</div>