[OSGeoLive] #2068: Error caused by libgdal-grass version in Bionic

OSGeoLive trac_osgeolive at osgeo.org
Sat Jun 9 13:28:48 PDT 2018


#2068: Error caused by libgdal-grass version in Bionic
---------------------------+----------------------------
 Reporter:  kalxas         |       Owner:  osgeolive@…
     Type:  defect         |      Status:  new
 Priority:  critical       |   Milestone:  OSGeoLive12.0
Component:  OSGeoLive      |  Resolution:
 Keywords:  libgdal-grass  |
---------------------------+----------------------------

Comment (by Bas Couwenberg):

 On Debian unstable, the libraries in question are included in the `NEEDED`
 section and can be found in the `RUNPATH`:
 {{{
 $ objdump -x /usr/lib/gdalplugins/*_GRASS.so | egrep
 "gdalplugins|NEEDED|RUNPATH"
 /usr/lib/gdalplugins/gdal_GRASS.so:     file format elf64-x86-64
 /usr/lib/gdalplugins/gdal_GRASS.so
   NEEDED               libgrass_vector.7.4.0.so
   NEEDED               libgrass_dig2.7.4.0.so
   NEEDED               libgrass_dgl.7.4.0.so
   NEEDED               libgrass_rtree.7.4.0.so
   NEEDED               libgrass_linkm.7.4.0.so
   NEEDED               libgrass_dbmiclient.7.4.0.so
   NEEDED               libgrass_dbmibase.7.4.0.so
   NEEDED               libgrass_raster.7.4.0.so
   NEEDED               libgrass_imagery.7.4.0.so
   NEEDED               libgrass_gproj.7.4.0.so
   NEEDED               libgrass_gmath.7.4.0.so
   NEEDED               libgrass_gis.7.4.0.so
   NEEDED               libgrass_datetime.7.4.0.so
   NEEDED               libgrass_btree2.7.4.0.so
   NEEDED               libgrass_ccmath.7.4.0.so
   NEEDED               libgdal.so.20
   NEEDED               libstdc++.so.6
   NEEDED               libm.so.6
   NEEDED               libgcc_s.so.1
   NEEDED               libc.so.6
   RUNPATH              /usr/lib/grass74/lib
 /usr/lib/gdalplugins/ogr_GRASS.so:     file format elf64-x86-64
 /usr/lib/gdalplugins/ogr_GRASS.so
   NEEDED               libgrass_vector.7.4.0.so
   NEEDED               libgrass_dig2.7.4.0.so
   NEEDED               libgrass_dgl.7.4.0.so
   NEEDED               libgrass_rtree.7.4.0.so
   NEEDED               libgrass_linkm.7.4.0.so
   NEEDED               libgrass_dbmiclient.7.4.0.so
   NEEDED               libgrass_dbmibase.7.4.0.so
   NEEDED               libgrass_raster.7.4.0.so
   NEEDED               libgrass_imagery.7.4.0.so
   NEEDED               libgrass_gproj.7.4.0.so
   NEEDED               libgrass_gmath.7.4.0.so
   NEEDED               libgrass_gis.7.4.0.so
   NEEDED               libgrass_datetime.7.4.0.so
   NEEDED               libgrass_btree2.7.4.0.so
   NEEDED               libgrass_ccmath.7.4.0.so
   NEEDED               libgdal.so.20
   NEEDED               libstdc++.so.6
   NEEDED               libm.so.6
   NEEDED               libgcc_s.so.1
   NEEDED               libc.so.6
   RUNPATH              /usr/lib/grass74/lib
 }}}

 Creating an index on a shapefile works as expected:
 {{{
 $ ogrinfo -sql "CREATE SPATIAL INDEX on pv_2012" /tmp/pv_2012.shp
 INFO: Open of `/tmp/pv_2012.shp'
       using driver `ESRI Shapefile' successful.
 }}}

 The libgdal-grass package in bionic indeed lacks these libraries in its
 `NEEDED` section:
 {{{
 # objdump -x /usr/lib/gdalplugins/*/*_GRASS.so | egrep
 "gdalplugins|NEEDED|RUNPATH"
 /usr/lib/gdalplugins/2.2/gdal_GRASS.so:     file format elf64-x86-64
 /usr/lib/gdalplugins/2.2/gdal_GRASS.so
   NEEDED               libgrass_raster.7.4.0.so
   NEEDED               libgrass_imagery.7.4.0.so
   NEEDED               libgrass_gproj.7.4.0.so
   NEEDED               libgrass_gis.7.4.0.so
   NEEDED               libgdal.so.20
   NEEDED               libstdc++.so.6
   NEEDED               libgcc_s.so.1
   NEEDED               libc.so.6
   RUNPATH              /usr/lib/grass74/lib
 /usr/lib/gdalplugins/2.2/ogr_GRASS.so:     file format elf64-x86-64
 /usr/lib/gdalplugins/2.2/ogr_GRASS.so
   NEEDED               libgrass_vector.7.4.0.so
   NEEDED               libgrass_dbmiclient.7.4.0.so
   NEEDED               libgrass_dbmibase.7.4.0.so
   NEEDED               libgrass_gproj.7.4.0.so
   NEEDED               libgrass_gis.7.4.0.so
   NEEDED               libgdal.so.20
   NEEDED               libstdc++.so.6
   NEEDED               libgcc_s.so.1
   NEEDED               libc.so.6
   RUNPATH              /usr/lib/grass74/lib
 }}}

 This looks like an issue specific to Ubuntu (which links with `--as-
 needed`).

 The error is non-fatal, so you could chose to ignore it and redirect
 STDERR to /dev/null:
 {{{
 ogrinfo -sql "CREATE SPATIAL INDEX ON $S" $SHP 2> /dev/null;
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2068#comment:1>
OSGeoLive <http://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list