id summary reporter owner description type status priority milestone component version severity resolution keywords cc 1593 SWIG_MakePtr is undefined in _gdalmodule.so Mateusz Łoskot Mateusz Łoskot "Some time ago Paul Van Deusen reported following error when trying to use Python scripts from GDAL: {{{ gdal_merge.py -pct -o temp.tif scAlb.tif vaAlb.tifTraceback (most recent call last): File ""/usr/local/bin/gdal_merge.py"", line 110, in ? import gdal File ""/usr/lib/python2.4/site-packages/gdal.py"", line 191, in ? import _gdal ImportError: /usr/lib/python2.4/site-packages/_gdalmodule.so: undefined symbol: SWIG_MakePtr }}} I confirm the problem occurs in GDAL '''1.4.1''' but it does '''not''' occur in '''1.4.0''' and current SVN (coming 1.4.2). Strange. The reason SWIG_MakePtr can not be found is that it's marked as undefined (U) in _gdalmodule.so binary from 1.4.1. The symbol '''is''' defined in other versions mentioned above. Here is the proof: * '''GDAL 1.4.1''' {{{ mloskot:~/dev/gdal/release/gdal-1.4.1/pymod$ nm _gdalmodule.so | grep SWIG_MakePtr U SWIG_MakePtr }}} * '''GDAL 1.4.0''' {{{ mloskot:~/dev/gdal/release/gdal-1.4.0/pymod$ nm _gdalmodule.so | grep SWIG_MakePtr 0000aeb0 t SWIG_MakePtr }}} * '''GDAL from current SVN trunk''' {{{ mloskot:~/dev/gdal/_svn/trunk/gdal/pymod$ nm _gdalmodule.so | grep SWIG_MakePtr 0000af63 t SWIG_MakePtr }}} " defect closed high 1.4.2 PythonBindings 1.4.1 major fixed python swig Paul_VanDeusen@… afrigeri@…