Problems compiling Mapserver 5.0.0

William Hudspeth bhudspeth at EDAC.UNM.EDU
Wed Dec 5 10:34:23 EST 2007


Hello,

I am trying to install Mapserver 5.0.0 on a machine running Suse Linux
10.1. I have used the following configure statement with no errors:

./configure --with-freetype=/usr/bin/freetype-config
--with-zlib=/usr/local/zlib --with-png=/usr/local/png
--with-jpeg=/usr/local/jpeg --with-gd=/usr/local
--with-proj=/usr/local/proj --with-geos=/usr/local/geos/bin/geos-config
--with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config
--with-postgis=/usr/local/pgsql/bin/pg-config --with-wfs --with-wcs
--with-wmsclient --with-wfsclient
--with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/httpd2
--with-php=/usr/include/php5 

When I try to run make, I get the following errors (I have only included
the last few lines of the output):

mappostgis.c:1647: error: ‘PGresult’ undeclared (first use in this
function)
mappostgis.c:1647: error: ‘query_result’ undeclared (first use in this
function)
mappostgis.c:1735: error: ‘msPOSTGISLayerInfo’ has no member named
‘conn’
mappostgis.c:1743: error: ‘msPOSTGISLayerInfo’ has no member named
‘conn’
mappostgis.c:1744: error: ‘PGRES_TUPLES_OK’ undeclared (first use in
this function)
mappostgis.c:1794: warning: passing argument 2 of ‘strcpy’ makes pointer
from integer without a cast
make: *** [mappostgis.o] Error 1

Any help would be appreciated,

Bill



More information about the mapserver-users mailing list