[gdal-dev] Gdal-1.4.4 / OSX Leopard / Problems with python support

John Helly hellyj at ucsd.edu
Thu Dec 20 18:41:10 EST 2007


Hi.

I've been struggling to get gdalimport.py to run and first thought  
that I didn't have python support included.  I've built the latest  
source using the following configure setup:

./configure --prefix=/usr/local/gdal-1.4.4 \
   --libdir=/usr/local/lib \
   --with-netcdf=/usr/local/netcdf-3.6.1  \
   --with-jpeg=internal \
   --with-png=internal \
   --with-libtiff=internal \
   --with-geotiff=internal \
   --with-geos=yes \
   --with-perl            \
   --with-php             \
   --with-python

This seems to build ok but when I run 'sudo make install', the install  
blows up.  This occurs apparently at the php, perl install part, after  
python

# ugh! spurius relinking leaves a file owned by root into .libs/.
rm -f .libs/*.soT
(cd swig; make install)
for dir in php perl ; do (cd $dir; make install) || exit; done
g++ -I../../port -I../../gcore -I../../alg -I../../ogr `php-config -- 
includes` -fpic -c gdal_wrap.cpp
gdal_wrap.cpp:1: warning: -fpic is not supported; -fPIC assumed
gdal_wrap.cpp:1040: error: ‘zend_property_reference’ was not declared  
in this scope
gdal_wrap.cpp:1040: error: ‘property_reference’ was not declared in  
this scope
gdal_wrap.cpp:1040: error: expected primary-expression before ‘*’ token
gdal_wrap.cpp:1040: error: ‘value’ was not declared in this scope
gdal_wrap.cpp:1040: error: initializer expression list treated as  
compound expression
gdal_wrap.cpp:1041: error: ‘zend_property_reference’ was not declared  
in this scope
gdal_wrap.cpp:1041: error: ‘property_reference’ was not declared in  
this scope
gdal_wrap.cpp:1041: error: expected primary-expression before ‘*’ token
gdal_wrap.cpp:1041: error: ‘value’ was not declared in this scope
gdal_wrap.cpp:1041: error: initializer expression list treated as  
compound expression
gdal_wrap.cpp:1042: error: ‘zend_property_reference’ was not declared  
in this scope

..... long list of stuff like this then

gdal_wrap.cpp: In function ‘int zm_startup_gdal(int, int)’:
gdal_wrap.cpp:8127: error: cannot convert ‘pval’ to ‘_zend_function*’  
in assignment
gdal_wrap.cpp:8127: error: invalid conversion from ‘int’ to  
‘_zend_function*’
gdal_wrap.cpp:8131: error: cannot convert ‘pval’ to ‘_zend_function*’  
in assignment
gdal_wrap.cpp:8131: error: invalid conversion from ‘int’ to  
‘_zend_function*’
gdal_wrap.cpp:8135: error: cannot convert ‘pval’ to ‘_zend_function*’  
in assignment
gdal_wrap.cpp:8135: error: invalid conversion from ‘int’ to  
‘_zend_function*’
gdal_wrap.cpp:8139: error: cannot convert ‘pval’ to ‘_zend_function*’  
in assignment
gdal_wrap.cpp:8139: error: invalid conversion from ‘int’ to  
‘_zend_function*’
gdal_wrap.cpp:8143: error: cannot convert ‘pval’ to ‘_zend_function*’  
in assignment
gdal_wrap.cpp:8143: error: invalid conversion from ‘int’ to  
‘_zend_function*’
gdal_wrap.cpp:8147: error: cannot convert ‘pval’ to ‘_zend_function*’  
in assignment
gdal_wrap.cpp:8147: error: invalid conversion from ‘int’ to  
‘_zend_function*’
make[2]: *** [gdal_wrap.o] Error 1
make[1]: *** [install] Error 2
make: *** [install-actions] Error 2
Neptune-2:gdal-1.4.4 hellyj$


When I look at the install directory, there are executables there and  
I can run gdalimport.py but still get the error:

Neptune-2:~ hellyj$ gdalimport.py
Traceback (most recent call last):
   File "/usr/local/gdal-1.4.1/bin/gdalimport.py", line 49, in <module>
     import gdal
ImportError: No module named gdal
Neptune-2:~ hellyj$


This is what I originally was trying to solve by rebuilding using the  
--with-python argument.  Any ideas what's going wrong?


Cheers.
--------------
John Helly, University of California, San Diego
San Diego Supercomputer Center 9500 Gilman Dr. Mail Code 0527, La  
Jolla CA 92093-0505
Phone: Voice +01 760 840 8660 mobile / stonesteps (Skype) /  
stonesteps7 (iChat)
http://www.sdsc.edu/~hellyj


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20071220/5302b302/attachment-0001.html


More information about the gdal-dev mailing list