Re: [geos-devel] GCC 6 build error

2016-03-07 Thread Sandro Santilli
On Thu, Mar 03, 2016 at 11:40:03AM +0100, Mateusz Loskot wrote: > > What would you think about removing all the many conditionals and: > > > > #define ISNAN(x) ((x)!=(x)) > > Or, > > namespage geos { bool is_nan(double x) { return x != x; } } FYI: I "accidentally" committed a change to configu

Re: [geos-devel] GCC 6 build error

2016-03-03 Thread Mateusz Loskot
On 3 March 2016 at 11:10, Sandro Santilli wrote: > On Thu, Mar 03, 2016 at 10:58:48AM +0100, Mateusz Loskot wrote: > >> However, we should be able to rely on that any C++11 compliant toolset >> seeing #include makes std::nan and std::isfinite available. > > And then what about OS/X and solaris ?

Re: [geos-devel] GCC 6 build error

2016-03-03 Thread Sandro Santilli
On Thu, Mar 03, 2016 at 10:58:48AM +0100, Mateusz Loskot wrote: > However, we should be able to rely on that any C++11 compliant toolset > seeing #include makes std::nan and std::isfinite available. And then what about OS/X and solaris ? What would you think about removing all the many condition

Re: [geos-devel] GCC 6 build error

2016-03-03 Thread Mateusz Loskot
On 3 March 2016 at 09:27, Sandro Santilli wrote: > On Wed, Mar 02, 2016 at 05:21:33PM +0100, Mateusz Loskot wrote: >> On 2 March 2016 at 17:13, Sandro Santilli wrote: >> > >> > This is the snippet, in configure.ac, to look for it: >> > >> > AC_LANG_PUSH([C++]) >> > AC_CACHE_CHECK([for isnan],

Re: [geos-devel] GCC 6 build error

2016-03-03 Thread Sandro Santilli
On Wed, Mar 02, 2016 at 05:21:33PM +0100, Mateusz Loskot wrote: > On 2 March 2016 at 17:13, Sandro Santilli wrote: > > > > This is the snippet, in configure.ac, to look for it: > > > > AC_LANG_PUSH([C++]) > > AC_CACHE_CHECK([for isnan], ac_cv_isnan, > >[AC_TRY_LINK([#include ], > >[dou

Re: [geos-devel] GCC 6 build error

2016-03-02 Thread Mateusz Loskot
On 2 March 2016 at 17:13, Sandro Santilli wrote: > > This is the snippet, in configure.ac, to look for it: > > AC_LANG_PUSH([C++]) > AC_CACHE_CHECK([for isnan], ac_cv_isnan, >[AC_TRY_LINK([#include ], >[double x; int y; y = isnan(x);], I presume the test fails because it does not look

Re: [geos-devel] GCC 6 build error

2016-03-02 Thread Sandro Santilli
On Wed, Mar 02, 2016 at 05:02:04PM +0200, Devrim GÜNDÜZ wrote: > Greetings first: I'm new to list, and I'm maintaining the community RPMS for > PostgreSQL and related software. Thank you Devrim ! > GeOS 4.5.0 is throwing errors with GCC 6.0.0 . GCC 6 is due with Fedora 24 on > June. ... > ../.

[geos-devel] GCC 6 build error

2016-03-02 Thread Devrim GÜNDÜZ
Hi, Greetings first: I'm new to list, and I'm maintaining the community RPMS for PostgreSQL and related software. GeOS 4.5.0 is throwing errors with GCC 6.0.0 . GCC 6 is due with Fedora 24 on June. Below is the error message. Regards, Devrim make[6]: Entering directory '/var/lib/pgsql/git/p