Package: libgdal1-1.6.0 Version: 1.6.3-3+b2 Severity: normal Tags: patch I'm getting the following error:
ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of OGRCoordinateTransformation failed. This is because GDAL tries to dlopen libproj.so, but it should dlopen libproj.so.0. I tested the attached patch and that fixes the error. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libgdal1-1.6.0 depends on: ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libcurl3-gnutls 7.20.0-3+b1 Multi-protocol file transfer libra ii libexpat1 2.0.1-7 XML parsing C library - runtime li ii libgcc1 1:4.4.2-9 GCC support library ii libgeos-c1 3.2.0-1 Geometry engine for Geographic Inf ii libgif4 4.1.6-9 library for GIF images (library) ii libhdf4-0-alt 4.2r4-10 The Hierarchical Data Format libra ii libhdf5-serial-1.8.4 [l 1.8.4-patch1-1 Hierarchical Data Format 5 (HDF5) ii libjasper1 1.900.1-7 The JasPer JPEG-2000 runtime libra ii libjpeg62 6b-16.1 The Independent JPEG Group's JPEG ii libmysqlclient16 5.1.45-1 MySQL database client library ii libnetcdf4 1:3.6.3-1 An interface for scientific data a ii libogdi3.2 3.2.0~beta2-6 Open Geographic Datastore Interfac ii libpng12-0 1.2.43-1 PNG library - runtime ii libpq5 8.4.3-1 PostgreSQL C client library ii libsqlite3-0 3.6.23.1-1 SQLite 3 shared library ii libstdc++6 4.4.2-9 The GNU Standard C++ Library v3 ii libxerces-c28 2.8.0+deb1-2 validating XML parser library for ii odbcinst1debian2 2.2.14p2-1 Support library for accessing odbc ii unixodbc 2.2.14p2-1 ODBC tools libraries ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages libgdal1-1.6.0 recommends: pn proj-bin <none> (no description available) libgdal1-1.6.0 suggests no packages. -- no debconf information
#! /bin/sh /usr/share/dpatch/dpatch-run ## libproj.dpatch by <jer...@dekkers.ch> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Dlopen libproj.so.0 instead of libproj.so @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gdal-1.6.3~/ogr/ogrct.cpp gdal-1.6.3/ogr/ogrct.cpp --- gdal-1.6.3~/ogr/ogrct.cpp 2008-09-16 10:32:39.000000000 +0200 +++ gdal-1.6.3/ogr/ogrct.cpp 2010-05-02 21:24:39.087609517 +0200 @@ -80,7 +80,7 @@ #elif defined(__APPLE__) # define LIBNAME "libproj.dylib" #else -# define LIBNAME "libproj.so" +# define LIBNAME "libproj.so.0" #endif /************************************************************************/