Even Rouault <[email protected]> writes: > could you try instead applying the following patch (on top of unmodified > 2.4.1) ? > > <cmath> is supposed to be the official header for std::fabs. It might get > indirectly included on other systems by accident. > > diff --git a/gdal/ogr/ogrlinestring.cpp b/gdal/ogr/ogrlinestring.cpp > index 810ad2e..1d4da9c 100644 > --- a/gdal/ogr/ogrlinestring.cpp > +++ b/gdal/ogr/ogrlinestring.cpp > @@ -31,6 +31,7 @@ > #include "ogr_geos.h" > #include "ogr_p.h" > > +#include <cmath> > #include <cstdlib> > #include <algorithm> > #include <limits>
With that patch (and not my earlier one), 2.4.1 builds without errors, and postgis tests still pass. (I know I should run the gdal test suite, but haven't yet.) _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
