[R-sig-Geo] rgdal cannot load shared object

Sebastian P.Luque spluque at gmail.com
Wed Aug 24 17:19:16 CEST 2011


On Wed, 24 Aug 2011 13:30:37 +0200,
Roger Bivand <Roger.Bivand at nhh.no> wrote:

> On Tue, 23 Aug 2011, Sebastian P. Luque wrote:
>> Hello,

>> I'm on a Debian sid system, and after a an upgrade of packages
>> ('apt-get upgrade') over the weekend, loading rgdal no longer works:

> Debian GIS packages are not reliable. The CRAN debian checks failed in
> mid-May with a libgdal upgrade, which got resolved after some time
> without clear diagnoses - possibly an upstream dependency issue in
> something one libgdal build depended on and another not. General
> advice with Debian and derivative systems is to install GDAL from
> source if possible to avoid this kind of issue. The feel of the error
> message is that some components have been built with different C++
> versions, so your question about re-installing rgdal for upgraded GDAL
> binaries has two answers, no if C++ and its libraries have not
> changed, yes if they have.

> I haven't seen a reply on R-sig-debian, so please report back there
> too if you make progress.

Thanks Roger; I tried reinstalling rgdal, and got some more clues
following install.packages("rgdal") (relevant lines only):

---<--------------------cut here---------------start------------------->---
/usr/lib/libgdal1.7.0.so: undefined reference to `libdap::AISConnect::AISConnect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
./configure: line 3366: ./proj_conf_test: No such file or directory
PROJ.4 Version 4.7 or earlier
/usr/lib/libgdal1.7.0.so: undefined reference to `libdap::AISConnect::AISConnect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
./configure: line 3409: ./proj_conf_test: No such file or directory
/usr/lib/libgdal1.7.0.so: undefined reference to `libdap::AISConnect::AISConnect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
./configure: line 3459: ./proj_conf_test: No such file or directory
---<--------------------cut here---------------end--------------------->---

and:

---<--------------------cut here---------------start------------------->---
/usr/lib/libgdal1.7.0.so: undefined reference to `libdap::AISConnect::AISConnect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
./configure: line 3366: ./proj_conf_test: No such file or directory
PROJ.4 Version 4.7 or earlier
/usr/lib/libgdal1.7.0.so: undefined reference to `libdap::AISConnect::AISConnect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
./configure: line 3409: ./proj_conf_test: No such file or directory
/usr/lib/libgdal1.7.0.so: undefined reference to `libdap::AISConnect::AISConnect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
./configure: line 3459: ./proj_conf_test: No such file or directory
---<--------------------cut here---------------end--------------------->---

in addition to the error I previously reported.  So AFAICS, it seems
like a problem with Debian sid's libgdal1-1.7.0 or one of the libdap
packages, given the "undefined reference to
'libdap::AISConnect::AISConnect(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)' line.

Cheers,

-- 
Seb



More information about the R-sig-Geo mailing list