[Gdal-dev] gdal-grass plugin rpm

Otto Dassau dassau at gdf-hannover.de
Wed Oct 26 09:56:42 EDT 2005


Hi, 

I (tried to) built a current gdal-grass plugin 1.3.1.1 as RPM and defined the 
PREFIX as: 
%define _prefix /usr

When I install the package the support is missing: 

ldd is for gdal_GRASS.so  ogr_GRASS.so seems to be ok

Example ogr:
ldd /usr/lib/gdalplugins/ogr_GRASS.so
        linux-gate.so.1 =>  (0xffffe000)
        libgrass_I.so => /usr/lib/libgrass_I.so (0x40023000)
        libgrass_vask.so => /usr/lib/libgrass_vask.so (0x40034000)
        libgrass_gmath.so => /usr/lib/libgrass_gmath.so (0x4003a000)
        libgrass_gis.so => /usr/lib/libgrass_gis.so (0x4003f000)
        libgrass_datetime.so => /usr/lib/libgrass_datetime.so (0x400d9000)
        libgrass_gproj.so => /usr/lib/libgrass_gproj.so (0x400e0000)
        libgrass_vect.so => /usr/lib/libgrass_vect.so (0x400e8000)
        libgrass_dbmibase.so => /usr/lib/libgrass_dbmibase.so (0x40116000)
        libgrass_dbmiclient.so => /usr/lib/libgrass_dbmiclient.so (0x40124000)
        libgdal.so.1 => /usr/lib/libgdal.so.1 (0x4012d000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x404ed000)
        libm.so.6 => /lib/tls/libm.so.6 (0x405ab000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405ce000)
        libc.so.6 => /lib/tls/libc.so.6 (0x405d7000)
        libz.so.1 => /usr/lib/libz.so.1 (0x406f0000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x40701000)
        libproj.so.0 => /usr/lib/libproj.so.0 (0x40746000)
        libgrass_dig2.so => /usr/lib/libgrass_dig2.so (0x40779000)
        libgrass_dgl.so => /usr/lib/libgrass_dgl.so (0x4078a000)
        libgrass_rtree.so => /usr/lib/libgrass_rtree.so (0x4079f000)
        libgrass_linkm.so => /usr/lib/libgrass_linkm.so (0x407a4000)
        librt.so.1 => /lib/tls/librt.so.1 (0x407a6000)
        libdl.so.2 => /lib/libdl.so.2 (0x407af000)
        /lib/ld-linux.so.2 (0x80000000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x407b4000)

but with strace I get following message, although I haven't defined any prefix 
as /usr/local :

strace gdalinfo /home/gdf/grassdata/spearfish60/PERMANENT/cellhd/roads

[...]
open("/usr/local/lib/gdalplugins", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = -1 ENOENT (No such file or directory)
stat64("/home/gdf/grassdata/spearfish60/PERMANENT/cellhd/roads", 
{st_mode=S_IFREG|0777, st_size=197, ...}) = 0
[...]

of course it works linking /usr/local/lib/gdalplugins to /usr/lib/gdalplugins, 
but that's not a real solution -  guess. Hopefully someone has an idea how to 
fix this problem.

 thanks
   Otto














More information about the Gdal-dev mailing list