[Gdal-dev] PHP Binddings... (resent)

Andrew Larcombe andrew at andrewlarcombe.co.uk
Wed Mar 15 07:27:39 EST 2006


Hi there,

Mandriva Linux 2006
SWIG 1.3.24
gcc 4.0.1
PHP 5.0.4 from source
GDAL 1.3.1 from source


I'm trying to compile GDAL & OGR with the php bindings so that I'm able
to read shp and wml data directly through php. I ran configure
--with-php , however the build process is producing the following errors:

l2ogrgeometry.o
ranlib .libs/libgdal.a
creating libgdal.la
(cd .libs && rm -f libgdal.la && ln -s ../libgdal.la libgdal.la)
make[1]: Leaving directory `/usr/local/src/gdal-1.3.1'
(cd swig; make build)
make[1]: Entering directory `/usr/local/src/gdal-1.3.1/swig'
for dir in php ; do (cd $dir; make build ); done
make[2]: Entering directory `/usr/local/src/gdal-1.3.1/swig/php'
g++ -I../../port -I../../gcore -I../../alg -I../../ogr `php-config
--includes` -fpic -c gdal_wrap.cpp
gdal_wrap.cpp:853: error: 'zend_property_reference' was not declared in
this scope
gdal_wrap.cpp:853: error: 'property_reference' was not declared in this
scope
gdal_wrap.cpp:853: error: expected primary-expression before '*' token
gdal_wrap.cpp:853: error: 'value' was not declared in this scope
gdal_wrap.cpp:853: error: initializer expression list treated as
compound expression
gdal_wrap.cpp:854: error: 'zend_property_reference' was not declared in
this scope
gdal_wrap.cpp:854: error: 'property_reference' was not declared in this
scope
gdal_wrap.cpp:854: error: expected primary-expression before '*' token
gdal_wrap.cpp:854: error: 'value' was not declared in this scope
gdal_wrap.cpp:854: error: initializer expression list treated as
compound expression
gdal_wrap.cpp:855: error: 'zend_property_reference' was not declared in
this scope
gdal_wrap.cpp:855: error: 'property_reference' was not declared in this
scope
gdal_wrap.cpp:856: error: 'zend_property_reference' was not declared in
this scope
gdal_wrap.cpp:856: error: 'property_reference' was not declared in this
scope
gdal_wrap.cpp:856: error: expected primary-expression before '*' token
gdal_wrap.cpp:856: error: 'value' was not declared in this scope
gdal_wrap.cpp:856: error: initializer expression list treated as
compound expression

...continues similarly for many lines...
gdal_wrap.cpp:6962: error: invalid conversion from 'int' to
'_zend_function*'
gdal_wrap.cpp:6966: error: cannot convert 'pval' to '_zend_function*' in
assignment
gdal_wrap.cpp:6966: error: invalid conversion from 'int' to
'_zend_function*'
gdal_wrap.cpp:6970: error: cannot convert 'pval' to '_zend_function*' in
assignment
gdal_wrap.cpp:6970: error: invalid conversion from 'int' to
'_zend_function*'
gdal_wrap.cpp:6974: error: cannot convert 'pval' to '_zend_function*' in
assignment
gdal_wrap.cpp:6974: error: invalid conversion from 'int' to
'_zend_function*'
make[2]: *** [gdal_wrap.o] Error 1
make[2]: Leaving directory `/usr/local/src/gdal-1.3.1/swig/php'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/local/src/gdal-1.3.1/swig'
make: *** [swig-target] Error 2


Any ideas what the problem is/how to fix it?

Regards,

Andrew



More information about the Gdal-dev mailing list