[gdal-dev] Custom gdal driver cannot be loaded by python

Pablo d Angelo pablo.angelo at dlr.de
Wed Sep 9 02:47:36 EDT 2009


Hi all,

I have written a driver for our in house image format, and it works
nicely with the compiled gdal utilities, but not not with the python
scripts. There it complains about missing symbols:

[angelo at vogon ~]$ python
Python 2.4.3 (#1, Jul 27 2009, 17:56:30) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from osgeo import gdal
ERROR 1: /home/xdibias/xdibias2/lib/gdal_xdibias.so: undefined symbol:
_ZNK15GDALMajorObject14GetDescriptionEv
ERROR 1: /home/xdibias/xdibias2/lib/gdal_xdibias.so: undefined symbol:
_ZNK15GDALMajorObject14GetDescriptionEv
ERROR 1: /home/xdibias/xdibias2/lib/gdal_xdibias.so: undefined symbol:
_ZNK15GDALMajorObject14GetDescriptionEv
ERROR 1: /home/xdibias/xdibias2/lib/gdal_xdibias.so: undefined symbol:
_ZNK15GDALMajorObject14GetDescriptionEv
>>> 

Any idea what might be wrong? Are there special linker options required
for that case? I used the following:

/usr/bin/c++  -fPIC -O2 -g  -shared -Wl,-soname,gdal_xdibias.so -o
gdal_xdibias.so xdibiasdataset.cpp.o ogr_srs_gctp.cpp.o
xdib_rpc.c.o ../gctp/source/libgeo.a ../generic/src/libgeneric.a -lgdal

I'm using CentOS 5.3 and GDAL 1.6.2
[angelo at vogon ~]$ gdalinfo --version
GDAL 1.6.2, released 2009/07/31

Unfortunately, I can't currently add it to the main GDAL lib, as it it
depends on some in house libs, which I need to remove before I can
submit a patch to GDAL.

Any hints?
 Pablo


-- 
-- Pablo.Angelo at dlr.de -------------------------------------------
Dr. Pablo d'Angelo - DLR - Institut für Methodik der Fernerkundung __/|__
Oberpfaffenhofen, Postfach 11 16, 82230 Weßling                   /_/_/_/
Telefon 08153 28 - 3593   Fax - 1444   http://www.caf.dlr.de        |/   




More information about the gdal-dev mailing list