[gdal-dev] build error on latest svn trunk
Even Rouault
even.rouault at mines-paris.org
Fri Apr 11 10:12:56 EDT 2008
Tom,
In fact, your install was probably OK at the beginning. I finally discovered
that the PQescapeStringConn was an API added to the PostgreSQL client library
in version 8.1.4 as a security release. This was backported to 8.0.8, 7.4.13
and 7.3.15. So, that explains why I saw this call in all those older releases
when downloading them and believed that it had existed for a long time...
Current GDAL trunk has now a configure test that looks for the presence of
PQescapeStringConn and use it if available, or fallback to PQescapeString
otherwise.
So, despite the annoyance, now you have a safer PostgreSQL release
installed ;-)
Thanks for the testing and reporting !
Even
Le Monday 07 April 2008 14:28:46 Kralidis,Tom [Burlington], vous avez écrit :
> > -----Original Message-----
> > From: gdal-dev-bounces at lists.osgeo.org
> > [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of
> > Kralidis,Tom [Burlington]
> > Sent: 04 April, 2008 12:01 PM
> > To: gdal-dev at lists.osgeo.org
> > Subject: [gdal-dev] build error on latest svn trunk
> >
> >
> > On fc7, with:
> >
> > ./configure --with-png --with-libtiff=internal
> > --with-geotiff=internal --with-jpeg --with-xerces
> > --with-geos=no --with-pg=/usr/local/pgsql/bin/pg_config
> > --with-mysql=/usr/bin/mysql_config --with-sqlite
> > --with-curl=/usr/bi n/curl-config --with-python --with-expat
> > --with-perl
> >
> > ...
> >
> >
> >
> > ogrpgtablelayer.cpp: In member function 'virtual OGRErr
> > OGRPGTableLayer::DeleteFeature(long int)':
> > ogrpgtablelayer.cpp:706: warning: format '%d' expects type
> > 'int', but argument 4 has type 'long int'
> > ogrpgtablelayer.cpp: In static member function 'static
> > CPLString OGRPGTableLayer::EscapeString(PGconn*, const char*,
> > int, const char*)':
> > ogrpgtablelayer.cpp:839: error: 'PQescapeStringConn' was not
> > declared in this scope
> > make[3]: *** [../o/ogrpgtablelayer.o] Error 1
> > make[3]: Leaving directory
> > `/home/tkralidi/foss4g/gdal/trunk/gdal/ogr/ogrsf_frmts/pg'
> > make[2]: *** [pg-target] Error 2
> > make[2]: Leaving directory
> > `/home/tkralidi/foss4g/gdal/trunk/gdal/ogr/ogrsf_frmts'
> > make[1]: *** [sublibs] Error 2
> > make[1]: Leaving directory `/home/tkralidi/foss4g/gdal/trunk/gdal/ogr'
> > make: *** [ogr-target] Error 2
> > _______________________________________________
>
> Turns out there were some inconsistencies between postgresql libraries,
> so I did a clean install, which worked. Thanks to Even for the help via
> email.
>
> ..Tom
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list