[R-sig-Geo] error in loading rgdal

Hana Sevcikova hana at stat.washington.edu
Thu Jul 7 21:42:24 CEST 2005


Thank you for your suggestions. Now I installed gdal-1.2.6 from CVS and 
reinstalled rgdal. But the error remains exactly the same. For compiling 
gdal, g++3.3 was used (I tried to use gcc-3.4 but the build failed).

The ldd output is a little bit shorter than before, since I had to 
disable a few packages that caused troubles during compiling (but I don't 
know if anything important is missing):

$ ldd rgdal/libs/rgdal.so
         libgdal.so.1 => /net/home/hana/lib/inst/lib/libgdal.so.1 
(0x40006000)
         libR.so => /net/home/hana/lib/libR.so (0x40248000)
         libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x404d1000)
         libm.so.6 => /lib/libm.so.6 (0x4058b000)
         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405ad000)
         libc.so.6 => /lib/libc.so.6 (0x405b6000)
         libodbc.so.1 => /usr/lib/libodbc.so.1 (0x406e9000)
         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40762000)
         libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40780000)
         libz.so.1 => /usr/lib/libz.so.1 (0x407a5000)
         libdl.so.2 => /lib/libdl.so.2 (0x407b7000)
         libg2c.so.0 => /usr/lib/libg2c.so.0 (0x407ba000)
         libreadline.so.4 => /lib/libreadline.so.4 (0x407d8000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
         libltdl.so.3 => /usr/lib/libltdl.so.3 (0x40805000)
         libpthread.so.0 => /lib/libpthread.so.0 (0x4080c000)
         libncurses.so.5 => /lib/libncurses.so.5 (0x4085d000)

Tim, I don't think it's a version mismatch, since this combination of 
rgdal and gdal works for me on SuSe 9.2.

Hana


On Wed, 6 Jul 2005, Edzer J. Pebesma wrote:

> My guess is a compiler incompatability: the error looks like a C++
> name mangling issue, which might result from using two different
> compilers (gcc versions?) for the two libraries. Can you find out
> which ones were used?
>
> I just installed gdal 1.2.6 from CVS, compiled to rgdal both
> from CVS and from CRAN, no problems on debian unstable (gcc 3.3.6).
>
>
> HTH,
> --
> Edzer
>
> Tim Keitt wrote:
>> This is probably a version mismatch. I've not kept track of which GDAL
>> is needed these days to work with rgdal. If that's not it, you may need
>> to compile locally as pre-built binaries don't always work. We should
>> probably convert everything in rgdal to use the GDAL C interface rather
>> than the C++ interface. It would be a bit more portable and stable.
>> 
>> THK
>> 
>> On Tue, 2005-07-05 at 15:22 -0700, hanas at u.washington.edu wrote:
>> 
>>> Would anybody have an advice on the following error when loading rgdal?
>>> 
>>> 
>>>> library(rgdal)
>>> 
>>> Loading required package: abind
>>> Loading required package: pixmap
>>> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>>>        unable to load shared library 
>>> '/net/home/hana/lib/rgdal/libs/rgdal.so':
>>>  /net/home/hana/lib/rgdal/libs/rgdal.so: undefined symbol: 
>>> _ZN14GDALRasterBand17GetRasterDataTypeEv
>>> Error in library(rgdal) : .First.lib failed for 'rgdal'
>>> 
>>> It is installed on Debian Sarge, Kernel 2.4.26-om1. GDAL is installed from 
>>> sources via FWTools-linux-0.9.8 which seems to work:
>>> 
>>> $ gdalinfo --version
>>> GDAL 1.2.6.0, released 2005/03/13
>>> 
>>> and
>>> 
>>> $ ldd /net/home/hana/lib/rgdal/libs/rgdal.so
>>> 
>>> libgdal.so.1 => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libgdal.so.1 
>>> (0x40006000)
>>> libR.so => /net/home/hana/lib/libR.so (0x4076c000)
>>> libstdc++.so.5 => 
>>> /net/home/hana/lib/FWTools-linux-0.9.8/lib/libstdc++.so.5 (0x40776000)
>>> libm.so.6 => /lib/libm.so.6 (0x40823000)
>>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40845000)
>>> libc.so.6 => /lib/libc.so.6 (0x4084e000)
>>> libpq.so.2 => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libpq.so.2 
>>> (0x40981000)
>>> libgeos.so.2 => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libgeos.so.2 
>>> (0x4098f000)
>>> libxerces-c.so.26 => 
>>> /net/home/hana/lib/FWTools-linux-0.9.8/lib/libxerces-c.so.26 (0x40a8d000)
>>> libpthread.so.0 => /lib/libpthread.so.0 (0x40dc3000)
>>> libNCSEcw.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libNCSEcw.so 
>>> (0x40e14000)
>>> libogdi31.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libogdi31.so 
>>> (0x40f53000)
>>> libjpeg.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libjpeg.so 
>>> (0x40f70000)
>>> libgeotiff.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libgeotiff.so 
>>> (0x40f8d000)
>>> libtiff.so.3 => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libtiff.so.3 
>>> (0x40fb2000)
>>> libpng.so.2 => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libpng.so.2 
>>> (0x40ff9000)
>>> libgrass5.so.0 => 
>>> /net/home/hana/lib/FWTools-linux-0.9.8/lib/libgrass5.so.0 (0x41023000)
>>> libz.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libz.so (0x410a9000)
>>> libdl.so.2 => /lib/libdl.so.2 (0x410bb000)
>>> libkdu.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libkdu.so 
>>> (0x410be000)
>>> libcurl.so.2 => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libcurl.so.2 
>>> (0x41137000)
>>> libsqlite3.so.0 => 
>>> /net/home/hana/lib/FWTools-linux-0.9.8/lib/libsqlite3.so.0 (0x41156000)
>>> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
>>> libcrypt.so.1 => /lib/libcrypt.so.1 (0x41199000)
>>> libresolv.so.2 => /lib/libresolv.so.2 (0x411c6000)
>>> libnsl.so.1 => /lib/libnsl.so.1 (0x411d8000)
>>> librt.so.1 => /lib/librt.so.1 (0x411ee000)
>>> libNCSCNet.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libNCSCNet.so 
>>> (0x41201000)
>>> libNCSUtil.so => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libNCSUtil.so 
>>> (0x4121b000)
>>> libexpat_ogdi31.so => 
>>> /net/home/hana/lib/FWTools-linux-0.9.8/lib/libexpat_ogdi31.so (0x4122e000)
>>> libproj.so.0 => /net/home/hana/lib/FWTools-linux-0.9.8/lib/libproj.so.0 
>>> (0x4124f000)
>>> 
>>> Thanks for any help,
>>> Hana
>>> 
>>> _______________________________________________
>>> R-sig-Geo mailing list
>>> R-sig-Geo at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> -- 
> Edzer
>




More information about the R-sig-Geo mailing list