<div dir="ltr">Hi,<br><br>I'm drafting up some build instructions for PostGIS 2.1 (beta3) on Ubuntu 13.04:<br><a href="http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21Ubuntu1304src">http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21Ubuntu1304src</a><br>

<br>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:<br>

<a href="https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/1194082">https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/1194082</a><br><br>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.:<br>

<br>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<br>

<br>versus PostGIS 2.1:<div><br>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<br>

/usr/bin/ld: cannot find -larmadillo<br>/usr/bin/ld: cannot find -lpoppler<br>/usr/bin/ld: cannot find -lepsilon<br>/usr/bin/ld: cannot find -lexpat<br>/usr/bin/ld: cannot find -logdi<br>/usr/bin/ld: cannot find -llzma<br>

collect2: error: ld returned 1 exit status<br><br>-Mike</div></div>