[postgis-devel] Loader build under postgresql 8.1.3 fails. Patch for configure.in to solve the issue.

Vinko Vrsalovic el at vinko.cl
Mon Feb 27 07:30:48 PST 2006


Hello, 

Building postgis-1.1.1 under postgresql 8.1.3 fails (in a RHEL3 system),
due to the addition of pg_config --libs option which translates into a
misconfiguration of the PGFELIBS variable.

In particular, under my configuration, the loader build fails because
(at least) -ldl doesn't get appended to PGFELIBS:

make[1]: Cambiando a directorio `/root/soft/postgis-1.1.1/loader'
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=81 shpopen.o dbfopen.o
getopt.o PQunescapeBytea.o pgsql2shp.o  -L/usr/lib -lpq -o pgsql2shp
/usr/lib/libpq.so: referencia a `dlerror' sin definir
/usr/lib/libpq.so: referencia a `dlclose' sin definir
/usr/lib/libpq.so: referencia a `dlopen' sin definir
/usr/lib/libpq.so: referencia a `dlsym' sin definir

Attached is a patch to configure.in which uses the new --libs option.

It certainly needs testing under various platforms/pgsql versions

Hope this helps,
Vinko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.in.patch
Type: text/x-patch
Size: 154 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20060227/00b7765e/attachment.bin>


More information about the postgis-devel mailing list