[postgis-devel] 2.4.0beta1 build error against PostgreSQL 10 beta 4

Regina Obe lr at pcorp.us
Mon Sep 4 07:10:12 PDT 2017


Devrim,

Yikes.  I'll test this out on the PostgreSQL 10 beta4 tar ball.  I've been testing again PostgreSQL 10 head and assumed that would behave the same.

The error you have below with the numbering I thought we fixed a while ago.

Regarding the other errors have no clue about those.

Thanks,
Regina

-----Original Message-----
From: postgis-devel [mailto:postgis-devel-bounces at lists.osgeo.org] On Behalf Of Devrim Gündüz
Sent: Sunday, September 03, 2017 6:00 PM
To: postgis-devel <postgis-devel at lists.osgeo.org>
Subject: [postgis-devel] 2.4.0beta1 build error against PostgreSQL 10 beta 4


Hi,

I'm getting this build error while building PostGIS 2.4.0beta1 against PostgreSQL 10beta4, on Fedora 26:

=================================================================================
In file included from gserialized_gist.c:17:0:
../postgis_config.h:150:31: error: invalid suffix "PostgreSQL" on integer constant  #define POSTGIS_PGSQL_VERSION 10PostgreSQL 10beta4
                               ^
lwgeom_pg.h:142:5: note: in expansion of macro 'POSTGIS_PGSQL_VERSION'
 #if POSTGIS_PGSQL_VERSION >= 85
     ^~~~~~~~~~~~~~~~~~~~~
../postgis_config.h:150:44: error: missing binary operator before token "10beta4"
 #define POSTGIS_PGSQL_VERSION 10PostgreSQL 10beta4
                                            ^
lwgeom_pg.h:142:5: note: in expansion of macro 'POSTGIS_PGSQL_VERSION'
 #if POSTGIS_PGSQL_VERSION >= 85
     ^~~~~~~~~~~~~~~~~~~~~
In file included from gserialized_gist.c:23:0:
gserialized_gist.c: In function 'gidx_from_gbox_p':
gserialized_gist.c:98:25: error: 'FLT_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
     GIDX_SET_MIN(a,2,-1*FLT_MAX);
                         ^
gserialized_gist.h:84:75: note: in definition of macro 'GIDX_SET_MIN'
 #define GIDX_SET_MIN(gidx, dimension, value) ((gidx)->c[2*(dimension)] = (value))
                                                                           ^~~~~
gserialized_gist.c:98:25: note: each undeclared identifier is reported only once for each function it appears in
     GIDX_SET_MIN(a,2,-1*FLT_MAX);
                         ^
gserialized_gist.h:84:75: note: in definition of macro 'GIDX_SET_MIN'
 #define GIDX_SET_MIN(gidx, dimension, value) ((gidx)->c[2*(dimension)] = (value))
                                                                           ^~~~~
gserialized_gist.c: In function 'gserialized_datum_get_gidx_p':
gserialized_gist.c:277:27: error: 'FLT_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
    GIDX_SET_MIN(gidx,2,-1*FLT_MAX);
                           ^
gserialized_gist.h:84:75: note: in definition of macro 'GIDX_SET_MIN'
 #define GIDX_SET_MIN(gidx, dimension, value) ((gidx)->c[2*(dimension)] = (value))
                                                                           ^~~~~ =================================================================================

Regards,
--
Devrim G nd z
EnterpriseDB: https://www.enterprisedb.com PostgreSQL Danismani/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR




More information about the postgis-devel mailing list