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

Devrim Gündüz devrim at gunduz.org
Sun Sep 3 14:59:37 PDT 2017


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 Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20170903/81469b5d/attachment.sig>


More information about the postgis-devel mailing list