[postgis-tickets] [PostGIS] #3206: winnie crashing with topology ST_AddModeFace in C commit 9.3 w32 bit run

PostGIS trac at osgeo.org
Mon Jul 20 17:20:13 PDT 2015


#3206: winnie crashing with topology ST_AddModeFace in C commit 9.3 w32 bit run
-----------------------+---------------------------
  Reporter:  robe      |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  blocker   |  Milestone:  PostGIS 2.2.0
 Component:  topology  |    Version:  trunk
Resolution:            |   Keywords:
-----------------------+---------------------------

Comment (by robe):

 nope didn't work even for my 64-bit.

 still get the

 {{{
 +ERROR:  syntax error at or near "d" at character 72
 }}}

 and my compile gives these warnings if I put back in those lines


 {{{
 postgis_topology.c: In function 'cb_getRingEdges':
 postgis_topology.c:919:5: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'LWT_ELEMID' [-Wformat=]
      edge, topo->name, ABS(edge), topo->name);
      ^
 postgis_topology.c:919:5: warning: format '%d' expects argument of type
 'int', but argument 5 has type 'LWT_ELEMID' [-Wformat=]
 postgis_topology.c: In function 'cb_getNodeById':
 postgis_topology.c:985:5: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'LWT_ELEMID' [-Wformat=]
      appendStringInfo(sql, "%s%" PRId64, (i?",":""), ids[i]);
      ^
 postgis_topology.c: In function 'cb_getNodeByFace':
 postgis_topology.c:1030:5: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'LWT_ELEMID' [-Wformat=]
      appendStringInfo(sql, "%s%" PRId64, (i?",":""), ids[i]);
      ^
 postgis_topology.c: In function 'cb_updateFacesById':
 postgis_topology.c:1534:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'LWT_ELEMID' [-Wformat=]
        face->mbr->xmax, face->mbr->ymax, topo->srid);
        ^
 postgis_topology.c: In function 'cb_updateTopoGeomEdgeSplit':
 postgis_topology.c:1726:5: warning: format '%d' expects argument of type
 'int', but argument 6 has type 'LWT_ELEMID' [-Wformat=]
      topo->name, (new_edge2 == -1 ? "," : "USING" ), topo->id, split_edge
 );
      ^
 postgis_topology.c:1790:7: warning: format '%d' expects argument of type
 'int', but argument 6 has type 'LWT_ELEMID' [-Wformat=]
        topogeo_id, layer_id, negate ? -new_edge1 : new_edge1,
 element_type);
        ^
 postgis_topology.c:1803:9: warning: format '%d' expects argument of type
 'int', but argument 6 has type 'LWT_ELEMID' [-Wformat=]
          topogeo_id, layer_id, negate ? -new_edge2 : new_edge2,
 element_type);
          ^
 postgis_topology.c: In function 'cb_updateTopoGeomFaceSplit':
 postgis_topology.c:1843:5: warning: format '%d' expects argument of type
 'int', but argument 6 has type 'LWT_ELEMID' [-Wformat=]
      topo->name, (new_face2 == -1 ? "," : "USING" ), topo->id, split_face
 );
      ^
 postgis_topology.c:1906:7: warning: format '%d' expects argument of type
 'int', but argument 6 has type 'LWT_ELEMID' [-Wformat=]
        topogeo_id, layer_id, negate ? -new_face1 : new_face1,
 element_type);
        ^
 postgis_topology.c:1922:9: warning: format '%d' expects argument of type
 'int', but argument 6 has type 'LWT_ELEMID' [-Wformat=]
          topogeo_id, layer_id, negate ? -new_face2 : new_face2,
 element_type);
          ^
 postgis_topology.c: In function 'cb_deleteFacesById':
 postgis_topology.c:1997:5: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'LWT_ELEMID' [-Wformat=]
      appendStringInfo(sql, "%s%" PRId64, (i?",":""), ids[i]);
 }}}


 Please revert if you can so at least I have a 64-bit working install.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3206#comment:19>
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