[postgis-devel] PostGIS 2.1.0beta3 build issues on Ubuntu 13.04

Mike Toews mwtoews at gmail.com
Mon Jun 24 04:24:30 PDT 2013


Hi,

I'm drafting up some build instructions for PostGIS 2.1 (beta3) on Ubuntu
13.04:
http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21Ubuntu1304src

However, I'm running into some linking problems related to "gdal-config
--dep-libs" that don't happen with PostGIS 2.0.3 on the same system (which
does not appear to call "gdal-config --dep-libs"). It seems that the GDAL
library linking flags don't work as expected with the gdal-dev package,
which I've submitted here:
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/1194082

I'm no linking expert, but does raster2pgsql now require linking to GDAL's
dependencies? It does not appear to require these With PostGIS 2.0, e.g.:

libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I../rt_core -I../../liblwgeom -I/usr/include/postgresql
-I/usr/include/gdal -I/usr/include raster2pgsql.o -o .libs/raster2pgsql
 ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.so -L/usr/lib -lpq
-lgdal -lgeos_c -lc -lm

versus PostGIS 2.1:

libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I../rt_core -I../../liblwgeom -I/usr/include/gdal -I/usr/local/include
raster2pgsql.o -o .libs/raster2pgsql ../rt_core/librtcore.a
../../liblwgeom/.libs/liblwgeom.so -L/usr/lib -lgdal -larmadillo
/usr/lib/libproj.so -lpoppler -lepsilon -lodbc -lodbcinst -lexpat
-lxerces-c -ljasper -lnetcdf -lhdf5 /usr/lib/libmfhdfalt.so
/usr/lib/libdfalt.so -logdi /usr/lib/i386-linux-gnu/libgif.so -ljpeg -lpng
-lpq -llzma -ldapclient -ldapserver -ldap -lspatialite
/usr/lib/i386-linux-gnu/libsqlite3.so -L/usr/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu/libcurl-gnutls.so -lmysqlclient -lpthread -lz -lrt
-ldl -L/usr/local/lib /usr/local/lib/libgeos_c.so -lc -lm
/usr/bin/ld: cannot find -larmadillo
/usr/bin/ld: cannot find -lpoppler
/usr/bin/ld: cannot find -lepsilon
/usr/bin/ld: cannot find -lexpat
/usr/bin/ld: cannot find -logdi
/usr/bin/ld: cannot find -llzma
collect2: error: ld returned 1 exit status

-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20130624/bb5bce40/attachment.html>


More information about the postgis-devel mailing list