[mapserver-users] Installation problem under RedHat 7.3

Jim Butcher jbutcher at ci.collierville.tn.us
Wed Jul 17 11:20:11 PDT 2002


(A desperate cry for help rises from the deep, black hole of another 
mapserver installation problem.)

Okay, I'm trying to compile Mapserver 3.6.1 under RedHat 7.3.  Before 
anyone asks I've also tried this with the nightly build.  I'm using the 
following configuration:

./configure --with-gd=/usr/local/lib --with-tiff=/usr/include
--with-jpeg=/usr/lib --with-zlib=/usr/lib --without-eppl
--with-png=/usr/lib --with-freetype=/usr/lib
--with-proj=/usr/local/lib --with-ogr=/usr/local/include
--with-gdal=/usr/local/bin --with-postgis=/usr/local/pgsql/bin
--with-wmsclient --with-php=/usr/include/php/main

Everything seems to configure fine, however.....  during make I get the 
following errors:

/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o): 
In function `OGRPGDataSource::CreateLayer(char const *, OGRSpatialReference 
*, OGRwkbGeometryType, char **)':
ogrpgdatasource.o(.text+0x8e1): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0x8eb): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0x933): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0x93d): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0x951): undefined reference to `PQerrorMessage'
ogrpgdatasource.o(.text+0x96e): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0x981): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xa55): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xa67): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0xa8a): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xa9e): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xaa8): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xac5): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xacf): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o): 
In function `OGRPGDataSource::FetchSRSId(OGRSpatialReference *)':
ogrpgdatasource.o(.text+0xc4c): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xc73): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xc85): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0xc96): undefined reference to `PQntuples'
ogrpgdatasource.o(.text+0xca8): undefined reference to `PQgetvalue'
ogrpgdatasource.o(.text+0xcc5): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xceb): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0xd13): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xd1d): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xd55): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xd5f): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xd70): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xd82): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0xd95): undefined reference to `PQgetvalue'
ogrpgdatasource.o(.text+0xdb3): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xde0): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xdea): undefined reference to `PQclear'
ogrpgdatasource.o(.text+0xdfa): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xe04): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o): 
In function `OGRPGDataSource::SoftStartTransaction(void)':
ogrpgdatasource.o(.text+0xe44): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xe56): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0xe6d): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o): 
In function `OGRPGDataSource::SoftCommit(void)':
ogrpgdatasource.o(.text+0xece): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xee0): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0xeef): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o): 
In function `OGRPGDataSource::SoftRollback(void)':
ogrpgdatasource.o(.text+0xf4d): undefined reference to `PQexec'
ogrpgdatasource.o(.text+0xf5f): undefined reference to `PQresultStatus'
ogrpgdatasource.o(.text+0xf6e): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::ReadTableDefinition(char const *)':
ogrpglayer.o(.text+0x1fb): undefined reference to `PQexec'
ogrpglayer.o(.text+0x211): undefined reference to `PQresultStatus'
ogrpglayer.o(.text+0x225): undefined reference to `PQclear'
ogrpglayer.o(.text+0x24a): undefined reference to `PQexec'
ogrpglayer.o(.text+0x26b): undefined reference to `PQresultStatus'
ogrpglayer.o(.text+0x27f): undefined reference to `PQclear'
ogrpglayer.o(.text+0x293): undefined reference to `PQexec'
ogrpglayer.o(.text+0x2b4): undefined reference to `PQresultStatus'
ogrpglayer.o(.text+0x2ca): undefined reference to `PQerrorMessage'
ogrpglayer.o(.text+0x32d): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0x359): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0x4b4): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0x502): undefined reference to `PQntuples'
ogrpglayer.o(.text+0x51f): undefined reference to `PQclear'
ogrpglayer.o(.text+0x533): undefined reference to `PQexec'
ogrpglayer.o(.text+0x53b): undefined reference to `PQclear'
ogrpglayer.o(.text+0x54f): undefined reference to `PQexec'
ogrpglayer.o(.text+0x557): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::ResetReading(void)':
ogrpglayer.o(.text+0x986): undefined reference to `PQclear'
ogrpglayer.o(.text+0x9ad): undefined reference to `PQexec'
ogrpglayer.o(.text+0x9b8): undefined reference to `PQclear'
ogrpglayer.o(.text+0x9cc): undefined reference to `PQexec'
ogrpglayer.o(.text+0x9d7): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::GetNextRawFeature(void)':
ogrpglayer.o(.text+0xade): undefined reference to `PQexec'
ogrpglayer.o(.text+0xae9): undefined reference to `PQclear'
ogrpglayer.o(.text+0xb43): undefined reference to `PQexec'
ogrpglayer.o(.text+0xb4e): undefined reference to `PQclear'
ogrpglayer.o(.text+0xb6f): undefined reference to `PQexec'
ogrpglayer.o(.text+0xb8c): undefined reference to `PQresultStatus'
ogrpglayer.o(.text+0xbab): undefined reference to `PQntuples'
ogrpglayer.o(.text+0xbbe): undefined reference to `PQclear'
ogrpglayer.o(.text+0xbe5): undefined reference to `PQexec'
ogrpglayer.o(.text+0xbfd): undefined reference to `PQntuples'
ogrpglayer.o(.text+0xc10): undefined reference to `PQclear'
ogrpglayer.o(.text+0xc37): undefined reference to `PQexec'
ogrpglayer.o(.text+0xc42): undefined reference to `PQclear'
ogrpglayer.o(.text+0xc56): undefined reference to `PQexec'
ogrpglayer.o(.text+0xc61): undefined reference to `PQclear'
ogrpglayer.o(.text+0xcab): undefined reference to `PQfname'
ogrpglayer.o(.text+0xccf): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0xd34): undefined reference to `PQfname'
ogrpglayer.o(.text+0xd57): undefined reference to `PQfname'
ogrpglayer.o(.text+0xd89): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0xddd): undefined reference to `PQfname'
ogrpglayer.o(.text+0xe0c): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0xe48): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0xe75): undefined reference to `PQfname'
ogrpglayer.o(.text+0xe9b): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0xebf): undefined reference to `PQnfields'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::OIDToGeometry(unsigned int)':
ogrpglayer.o(.text+0x1137): undefined reference to `lo_open'
ogrpglayer.o(.text+0x1163): undefined reference to `lo_read'
ogrpglayer.o(.text+0x1171): undefined reference to `lo_close'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::GeometryToOID(OGRGeometry *)':
ogrpglayer.o(.text+0x1202): undefined reference to `lo_creat'
ogrpglayer.o(.text+0x1214): undefined reference to `lo_open'
ogrpglayer.o(.text+0x1223): undefined reference to `lo_write'
ogrpglayer.o(.text+0x1230): undefined reference to `lo_close'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::CreateFeature(OGRFeature *)':
ogrpglayer.o(.text+0x17fb): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1805): undefined reference to `PQresultStatus'
ogrpglayer.o(.text+0x1836): undefined reference to `PQerrorMessage'
ogrpglayer.o(.text+0x1853): undefined reference to `PQclear'
ogrpglayer.o(.text+0x187b): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::GetFeatureCount(int)':
ogrpglayer.o(.text+0x18ff): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1909): undefined reference to `PQclear'
ogrpglayer.o(.text+0x194d): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1957): undefined reference to `PQclear'
ogrpglayer.o(.text+0x196b): undefined reference to `PQexec'
ogrpglayer.o(.text+0x197d): undefined reference to `PQresultStatus'
ogrpglayer.o(.text+0x1990): undefined reference to `PQgetvalue'
ogrpglayer.o(.text+0x19cd): undefined reference to `PQclear'
ogrpglayer.o(.text+0x19e1): undefined reference to `PQexec'
ogrpglayer.o(.text+0x19eb): undefined reference to `PQclear'
ogrpglayer.o(.text+0x19ff): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1a09): undefined reference to `PQclear'
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o): In 
function `OGRPGLayer::CreateField(OGRFieldDefn *, int)':
ogrpglayer.o(.text+0x1c0a): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1c14): undefined reference to `PQclear'
ogrpglayer.o(.text+0x1c4d): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1c57): undefined reference to `PQresultStatus'
ogrpglayer.o(.text+0x1c6b): undefined reference to `PQerrorMessage'
ogrpglayer.o(.text+0x1c88): undefined reference to `PQclear'
ogrpglayer.o(.text+0x1c9c): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1ca6): undefined reference to `PQclear'
ogrpglayer.o(.text+0x1cb9): undefined reference to `PQclear'
ogrpglayer.o(.text+0x1ccd): undefined reference to `PQexec'
ogrpglayer.o(.text+0x1cd7): undefined reference to `PQclear'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

Does anyone have any idea what I've done wrong.  Could it be that I have 
Postgresql 7.2.1 installed?
I hate to embarrass myself, but I'm on my knees begging for help.

James H. Butcher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020717/9f05a93d/attachment.htm>


More information about the MapServer-users mailing list