GDAL dep-libs not availabe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdal (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While using libgdal-dev (1.9.0-3.1ubuntu1) in raring, the "gdal-config --dep-libs" command lists libraries that are not installed as dependencies of libgdal-dev, as I would have expected.
For example, while attempting to build PostGIS 2.1beta3, this line of "make" fails:
libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-
/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
Dependent packages, such as libarmadillo-dev, are not installed on the system.
Here is some extra info from my system/setup:
$ gdal-config --version
1.9.0
$ gdal-config --dep-libs
-larmadillo -lproj -lpoppler -L/usr/lib -lgeos_c -L/usr/lib -lepsilon -lodbc -lodbcinst -lexpat -lxerces-c -lpthread -ljasper -lnetcdf -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -ljpeg -lpng -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -ldapclient -ldapserver -ldap -L/usr/lib -lspatialite -lsqlite3 -L/usr/
$ dpkg-query -l *gdal*
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii libgdal-dev 1.9.0-3.1ubu i386 Geospatial Data Abstraction Libra
un libgdal-doc <none> (no description available)
ii libgdal1 1.9.0-3.1ubu i386 Geospatial Data Abstraction Libra
ii libgdal1-dev 1.9.0-3.1ubu all Geospatial Data Abstraction Libra
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
Note that the above command has a mixed local install of GEOS. I have repeated the same bug with using the libgeos-dev package:
libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing- prototypes -I../rt_core -I../../liblwgeom -I/usr/include/gdal -I/usr/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 -lgeos_c -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
Also, if I attempt to hunt-down the dependent libraries, I find that I already have them installed:
$ sudo apt-get install libarmadillo3 libpoppler28 libepsilon0 libexpat1 libogdi3.2 liblzma5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libexpat1 is already the newest version.
liblzma5 is already the newest version.
libpoppler28 is already the newest version.
libpoppler28 set to manually installed.
libarmadillo3 is already the newest version.
libarmadillo3 set to manually installed.
libepsilon0 is already the newest version.
libepsilon0 set to manually installed.
libogdi3.2 is already the newest version.
libogdi3.2 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
So I'm not sure what's going on here.