[mapserver-users] Disabling postgis in for cvs build

Paul Ramsey pramsey at refractions.net
Tue Oct 2 12:39:00 EDT 2001


This change may have already been committed to the mapserver CVS, but if
not, simple replace the prototype definitions for postgis in map.h with
these ones. Sorry, this is a result of our being able to update the
mappostgis.c file, but not the map.h file, so they got briefly out of
synch. We will err on the side of caution henceforth.


int msPOSTGISLayerOpen(layerObj *layer);
void msPOSTGISLayerFreeItemInfo(layerObj *layer);
int msPOSTGISLayerInitItemInfo(layerObj *layer);
int msPOSTGISLayerWhichShapes(layerObj *layer, rectObj rect);
int msPOSTGISLayerClose(layerObj *layer);
int msPOSTGISLayerNextShape(layerObj *layer, shapeObj *shape);
int msPOSTGISLayerGetShape(layerObj *layer, shapeObj *shape, long
record);
int msPOSTGISLayerGetExtent(layerObj *layer, rectObj *extent);
int msPOSTGISLayerGetShapeRandom(layerObj *layer, shapeObj *shape, long
*record);
int msPOSTGISLayerGetItems(layerObj *layer);


Rodrigo Becke Cabral wrote:
> 
> Hi Tim,
> 
> Postgis package IS disabled, otherwise it would appear -DUSE_POSTGIS in your
> gcc's call. My guess is that either your map.h or mappostgis.c are from
> different versions. The error appears to indicate a mismatch between the
> function's prototype (msPOSTGISLayerGetShapeRandom) in map.h and its
> definition in mappostgis.c. You could compare lines 1163 (mappostgis.c) and
> 805 (map.h) to confirm whether the function's prototype and definition
> differ (I just checked mapserver's nightly.tar.gz, and they match - no
> errors). Why don't you try compiling the nightly.tar.gz version?
> 
> Rod.
> 
> ----- Original Message -----
> From: "Tim Sutton" <sutton_t at giug.net>
> To: "MapServer Mailing List" <mapserver-users at lists.gis.umn.edu>
> Sent: Tuesday, October 02, 2001 7:53 AM
> Subject: [mapserver-users] Disabling postgis in for cvs build
> 
> Hi
> 
> Can anyone tell me how to either disable the postgis package
> compilation or fix the problem below when compiling the cvs (checked
> out today) version of mapserver? I tried --without-postgis but that
> didnt help.
> 
> Thanks
> 
> Tim
> 
> Error message repeated below:
> 
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL   -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF
> -I/usr/include            mappostgis.c -o mappostgis.o
> mappostgis.c:1163: conflicting types for
> `msPOSTGISLayerGetShapeRandom'
> map.h:805: previous declaration of `msPOSTGISLayerGetShapeRandom'
> make: *** [mappostgis.o] Error 1

-- 
      __
     /
     | Paul Ramsey
     | Refractions Research
     | Email: pramsey at refractions.net
     | Phone: (250) 885-0632
     \_



More information about the mapserver-users mailing list