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

Bborie Park dustymugs at gmail.com
Mon Jun 24 07:43:15 PDT 2013


Hey Mike,

raster2pgsql requires whatever GDAL requires. That is how linking
works. Since raster2pgsql requires GDAL, libtool pulls in everything
that GDAL requires.

Having said that, I've found that these GDAL dependencies are not
"hard" dependencies (in that raster2pgsql will NOT complain if a GDAL
of same version was compiled differently). Swapping out minimal GDAL
vs bloated GDAL versions did not affect raster2pgsql.

-bborie

On Mon, Jun 24, 2013 at 4:24 AM, Mike Toews <mwtoews at gmail.com> wrote:
> 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
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list