[gdal-dev] python support on solaris
Howard Butler
hobu.inc at gmail.com
Fri Apr 24 22:28:41 EDT 2009
On Apr 24, 2009, at 6:40 PM, Chris Garrard wrote:
> I've compiled GDAL 1.6.0 on Solaris 10, and most everything seems to
> work fine. However, I need Python support, but I get the following
> error when I try to import the gdal module:
>
> >>> from osgeo import gdal
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/opt/csw/lib/python2.5/site-packages/osgeo/gdal.py", line 7,
> in <module>
> import _gdal
> ImportError: ld.so.1: python: fatal: relocation error: file /opt/csw/
> lib/python2.5/site-packages/osgeo/_gdal.so: symbol __1c2N6FI_pv_:
> referenced symbol not found
>
> I'd love to hear any ideas for how to solve this.
IIRC, I think relocation errors are often related to one thing or the
other not doing position independent code (-fPIC). I think you'll
either need to compile Python or GDAL with -fPIC in the CPPFLAGS/
CFLAGS so they are both doing the same thing.
Howard
More information about the gdal-dev
mailing list