Bug#558733: [DebianGIS-dev] Bug#558733: [libgdal1-1.6.0] Reading tiff file causes segfault when linked also with geotiff

Raphael Hertzog hertzog at debian.org
Fri May 13 07:24:13 UTC 2011


Hello,

On Mon, 05 Jul 2010, Emmanuel Christophe wrote:
> However, the latest Ubuntu (10.4) which uses the same gdal, tiff,
> geotiff versions as the debian testing does not have this problem:
> both
> $ ./gdalHideSymbols-gtiffgdal ROI_QB_MUL_4.tif
> $ ./gdalHideSymbols-gdalgtiff ROI_QB_MUL_4.tif
> (from the test case shown at
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558733)
> 
> complete without segfault on Ubuntu using the standard packages.
> 
> I could not find any differences in the compilation options between
> the debian and the ubuntu gdal package (both use the
> with-hide-internal-symbols). The patch applied to gdal for Ubuntu is
> different though.

There is an important difference though:
$ dpkg-buildflags --get LDFLAGS

$ DEB_VENDOR=ubuntu dpkg-buildflags --get LDFLAGS
-Wl,-Bsymbolic-functions

libgdal should be built with this linker option so that
it always uses the local copy of the geotiff functions
and not the one provided by the external library.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)





More information about the Pkg-grass-devel mailing list