<html>
(A desperate cry for help rises from the deep, black hole of another
mapserver installation problem.)<br><br>
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:<br><br>
<font face="Courier New, Courier">./configure --with-gd=/usr/local/lib
--with-tiff=/usr/include <br>
--with-jpeg=/usr/lib --with-zlib=/usr/lib --without-eppl <br>
--with-png=/usr/lib --with-freetype=/usr/lib <br>
--with-proj=/usr/local/lib --with-ogr=/usr/local/include <br>
--with-gdal=/usr/local/bin --with-postgis=/usr/local/pgsql/bin <br>
--with-wmsclient --with-php=/usr/include/php/main<br><br>
</font>Everything seems to configure fine, however..... during make
I get the following errors:<br><br>
<font face="Courier New, Courier">/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o):
In function `OGRPGDataSource::CreateLayer(char const *,
OGRSpatialReference *, OGRwkbGeometryType, char **)':<br>
ogrpgdatasource.o(.text+0x8e1): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0x8eb): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0x933): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0x93d): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0x951): undefined reference to
`PQerrorMessage'<br>
ogrpgdatasource.o(.text+0x96e): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0x981): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xa55): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xa67): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0xa8a): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xa9e): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xaa8): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xac5): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xacf): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o):
In function `OGRPGDataSource::FetchSRSId(OGRSpatialReference *)':<br>
ogrpgdatasource.o(.text+0xc4c): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xc73): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xc85): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0xc96): undefined reference to `PQntuples'<br>
ogrpgdatasource.o(.text+0xca8): undefined reference to `PQgetvalue'<br>
ogrpgdatasource.o(.text+0xcc5): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xceb): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0xd13): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xd1d): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xd55): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xd5f): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xd70): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xd82): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0xd95): undefined reference to `PQgetvalue'<br>
ogrpgdatasource.o(.text+0xdb3): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xde0): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xdea): undefined reference to `PQclear'<br>
ogrpgdatasource.o(.text+0xdfa): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xe04): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o):
In function `OGRPGDataSource::SoftStartTransaction(void)':<br>
ogrpgdatasource.o(.text+0xe44): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xe56): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0xe6d): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o):
In function `OGRPGDataSource::SoftCommit(void)':<br>
ogrpgdatasource.o(.text+0xece): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xee0): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0xeef): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpgdatasource.o):
In function `OGRPGDataSource::SoftRollback(void)':<br>
ogrpgdatasource.o(.text+0xf4d): undefined reference to `PQexec'<br>
ogrpgdatasource.o(.text+0xf5f): undefined reference to
`PQresultStatus'<br>
ogrpgdatasource.o(.text+0xf6e): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::ReadTableDefinition(char const *)':<br>
ogrpglayer.o(.text+0x1fb): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x211): undefined reference to `PQresultStatus'<br>
ogrpglayer.o(.text+0x225): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x24a): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x26b): undefined reference to `PQresultStatus'<br>
ogrpglayer.o(.text+0x27f): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x293): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x2b4): undefined reference to `PQresultStatus'<br>
ogrpglayer.o(.text+0x2ca): undefined reference to `PQerrorMessage'<br>
ogrpglayer.o(.text+0x32d): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0x359): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0x4b4): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0x502): undefined reference to `PQntuples'<br>
ogrpglayer.o(.text+0x51f): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x533): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x53b): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x54f): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x557): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::ResetReading(void)':<br>
ogrpglayer.o(.text+0x986): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x9ad): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x9b8): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x9cc): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x9d7): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::GetNextRawFeature(void)':<br>
ogrpglayer.o(.text+0xade): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0xae9): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0xb43): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0xb4e): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0xb6f): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0xb8c): undefined reference to `PQresultStatus'<br>
ogrpglayer.o(.text+0xbab): undefined reference to `PQntuples'<br>
ogrpglayer.o(.text+0xbbe): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0xbe5): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0xbfd): undefined reference to `PQntuples'<br>
ogrpglayer.o(.text+0xc10): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0xc37): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0xc42): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0xc56): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0xc61): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0xcab): undefined reference to `PQfname'<br>
ogrpglayer.o(.text+0xccf): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0xd34): undefined reference to `PQfname'<br>
ogrpglayer.o(.text+0xd57): undefined reference to `PQfname'<br>
ogrpglayer.o(.text+0xd89): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0xddd): undefined reference to `PQfname'<br>
ogrpglayer.o(.text+0xe0c): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0xe48): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0xe75): undefined reference to `PQfname'<br>
ogrpglayer.o(.text+0xe9b): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0xebf): undefined reference to `PQnfields'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::OIDToGeometry(unsigned int)':<br>
ogrpglayer.o(.text+0x1137): undefined reference to `lo_open'<br>
ogrpglayer.o(.text+0x1163): undefined reference to `lo_read'<br>
ogrpglayer.o(.text+0x1171): undefined reference to `lo_close'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::GeometryToOID(OGRGeometry *)':<br>
ogrpglayer.o(.text+0x1202): undefined reference to `lo_creat'<br>
ogrpglayer.o(.text+0x1214): undefined reference to `lo_open'<br>
ogrpglayer.o(.text+0x1223): undefined reference to `lo_write'<br>
ogrpglayer.o(.text+0x1230): undefined reference to `lo_close'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::CreateFeature(OGRFeature *)':<br>
ogrpglayer.o(.text+0x17fb): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1805): undefined reference to `PQresultStatus'<br>
ogrpglayer.o(.text+0x1836): undefined reference to `PQerrorMessage'<br>
ogrpglayer.o(.text+0x1853): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x187b): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::GetFeatureCount(int)':<br>
ogrpglayer.o(.text+0x18ff): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1909): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x194d): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1957): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x196b): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x197d): undefined reference to `PQresultStatus'<br>
ogrpglayer.o(.text+0x1990): undefined reference to `PQgetvalue'<br>
ogrpglayer.o(.text+0x19cd): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x19e1): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x19eb): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x19ff): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1a09): undefined reference to `PQclear'<br>
/root/downloads/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmts.a(ogrpglayer.o):
In function `OGRPGLayer::CreateField(OGRFieldDefn *, int)':<br>
ogrpglayer.o(.text+0x1c0a): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1c14): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x1c4d): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1c57): undefined reference to `PQresultStatus'<br>
ogrpglayer.o(.text+0x1c6b): undefined reference to `PQerrorMessage'<br>
ogrpglayer.o(.text+0x1c88): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x1c9c): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1ca6): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x1cb9): undefined reference to `PQclear'<br>
ogrpglayer.o(.text+0x1ccd): undefined reference to `PQexec'<br>
ogrpglayer.o(.text+0x1cd7): undefined reference to `PQclear'<br>
collect2: ld returned 1 exit status <br>
make: *** [shp2img] Error 1<br><br>
</font>Does anyone have any idea what I've done wrong. Could it be
that I have Postgresql 7.2.1 installed?<br>
I hate to embarrass myself, but I'm on my knees begging for help.<br>
<x-sigsep><p></x-sigsep>
<tt><font face="Verdana" size=2>James H. Butcher</font></html>