[postgis-tickets] [PostGIS] #3758: PosdtgreSQL 10 beta1 fails compile in gserialized_estimate

PostGIS trac at osgeo.org
Sat May 20 10:54:44 PDT 2017


#3758: PosdtgreSQL 10 beta1 fails compile in gserialized_estimate
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  blocker  |  Milestone:  PostGIS 2.4.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 Looks like they changed API in PostgreSQL 10 now.

 On compile get error:


 {{{
 gserialized_estimate.c:1:0: warning: -fPIC ignored for target (all code is
 position independent)
  /**********************************************************************
  ^
 gserialized_estimate.c: In function 'pg_nd_stats_from_tuple':
 gserialized_estimate.c:829:25: warning: passing argument 1 of
 'get_attstatsslot' from incompatible pointer type
    rv = get_attstatsslot(stats_tuple, 0, 0, stats_kind, InvalidOid,
                          ^
 In file included from gserialized_estimate.c:69:0:
 C:/MING64~1/projects/POSTGR~1/rel/PG10W6~1/include/server/utils/lsyscache.h:173:13:
 note: expected 'struct AttStatsSlot *' but argument is of type 'HeapTuple'
  extern bool get_attstatsslot(AttStatsSlot *sslot, HeapTuple statstuple,
              ^
 gserialized_estimate.c:829:8: error: too many arguments to function
 'get_attstatsslot'
    rv = get_attstatsslot(stats_tuple, 0, 0, stats_kind, InvalidOid,
         ^
 In file included from gserialized_estimate.c:69:0:
 C:/MING64~1/projects/POSTGR~1/rel/PG10W6~1/include/server/utils/lsyscache.h:173:13:
 note: declared here
  extern bool get_attstatsslot(AttStatsSlot *sslot, HeapTuple statstuple,
              ^
 gserialized_estimate.c:842:3: error: too many arguments to function
 'free_attstatsslot'
    free_attstatsslot(0, NULL, 0, floatptr, nvalues);
    ^
 In file included from gserialized_estimate.c:69:0:
 C:/MING64~1/projects/POSTGR~1/rel/PG10W6~1/include/server/utils/lsyscache.h:175:13:
 note: declared here
  extern void free_attstatsslot(AttStatsSlot *sslot);
              ^

 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3758>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list