[gdal-dev] Problem compiling the php swig bindings

Andreas Neumann a.neumann at carto.net
Thu Dec 6 03:26:22 EST 2007


Hello,

My make process of gdal-dev terminates due to an error when generating the
PHP swig bindings. Am I missing some libraries or did something go wrong
with configure?

Here is my configure command:
/temp/gdal-1.5.0b1# ./configure --with-php --with-perl --with-python
--with-xerces --with-sqlite --with-pg=/usr/local/pgsql/bin/pg_config
--with-grass=/usr/local/grass-6.2.2 --with-geotiff

and here is my error output:
make[2]: Entering directory `/home/an/temp/gdal-1.5.0b1/swig/php'
g++ -I../../port -I../../gcore -I../../alg -I../../ogr `php-config
--includes` -
fpic -c gdal_wrap.cpp
gdal_wrap.cpp:1046: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1046: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1046: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1046: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1046: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1047: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1047: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1047: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1047: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1047: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1048: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1048: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1049: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1049: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1049: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1049: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1049: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1084: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1084: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1084: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1084: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1084: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1085: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1085: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1085: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1085: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1085: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1086: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1086: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1087: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1087: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1087: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1087: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1087: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1099: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1099: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1099: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1099: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1099: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1100: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1100: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1100: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1100: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1100: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1101: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1101: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1102: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1102: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1102: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1102: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1102: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1121: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1121: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1121: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1121: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1121: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1122: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1122: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1122: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1122: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1122: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1123: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1123: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1124: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1124: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1124: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1124: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1124: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1423: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1423: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1423: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1423: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1423: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1424: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1424: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1424: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1424: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1424: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1425: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1425: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1426: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1426: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1426: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1426: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1426: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1576: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1576: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1576: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1576: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1576: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1577: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1577: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1577: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1577: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1577: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1578: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1578: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1579: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1579: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1579: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1579: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1579: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1618: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1618: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1618: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1618: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1618: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1619: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1619: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1619: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1619: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1619: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1620: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1620: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1621: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1621: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1621: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1621: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1621: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1677: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1677: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1677: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1677: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1677: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1678: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1678: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1678: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1678: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1678: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:1679: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1679: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1680: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:1680: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:1680: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:1680: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:1680: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:2799: error: redefinition of ‘pval
_wrap_propget_MajorObject’
gdal_wrap.cpp:1048: error: ‘pval _wrap_propget_MajorObject’
previously declared
here
gdal_wrap.cpp:2799: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:2799: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:2817: error: redefinition of ‘int
_propget_MajorObject’
gdal_wrap.cpp:1049: error: ‘int _propget_MajorObject’
previously defined here
gdal_wrap.cpp:2817: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:2817: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:2817: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:2817: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:2825: error: redefinition of ‘int
_wrap_propset_MajorObject’
gdal_wrap.cpp:1046: error: ‘int _wrap_propset_MajorObject’
previously defined he
re
gdal_wrap.cpp:2825: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:2825: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:2825: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:2825: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:2837: error: redefinition of ‘int
_propset_MajorObject’
gdal_wrap.cpp:1047: error: ‘int _propset_MajorObject’
previously defined here
gdal_wrap.cpp:2837: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:2837: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:2837: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:2837: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:2845: error: ‘zend_property_reference’ was
not declared in this sc
ope
gdal_wrap.cpp:2845: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:2845: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:2873: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:2873: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:2873: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:2901: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:2901: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:2901: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3266: error: redefinition of ‘pval
_wrap_propget_Driver’
gdal_wrap.cpp:1086: error: ‘pval _wrap_propget_Driver’
previously declared here
gdal_wrap.cpp:3266: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3266: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3284: error: redefinition of ‘int
_propget_Driver’ gdal_wrap.cpp:1087: error: ‘int
_propget_Driver’ previously defined here
gdal_wrap.cpp:3284: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3284: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3284: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3284: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3306: error: redefinition of ‘int
_wrap_propset_Driver’
gdal_wrap.cpp:1084: error: ‘int _wrap_propset_Driver’
previously defined here
gdal_wrap.cpp:3306: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3306: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3306: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3306: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3318: error: redefinition of ‘int
_propset_Driver’ gdal_wrap.cpp:1085: error: ‘int
_propset_Driver’ previously defined here
gdal_wrap.cpp:3318: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3318: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3318: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3318: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3325: error: ‘zend_property_reference’ was
not declared in this sc
ope
gdal_wrap.cpp:3325: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3325: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3325: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3325: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:3325: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3355: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3355: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3355: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3382: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3382: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3382: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3382: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3382: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:3382: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3412: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3412: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3412: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3439: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3439: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3439: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3439: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3439: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:3439: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3469: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3469: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3469: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3496: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3496: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3496: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3496: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3496: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:3496: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3526: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3526: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3526: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3613: error: redefinition of ‘pval
_wrap_propget_ColorEntry’
gdal_wrap.cpp:1101: error: ‘pval _wrap_propget_ColorEntry’
previously declared h
ere
gdal_wrap.cpp:3613: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3613: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3631: error: redefinition of ‘int
_propget_ColorEntry’
gdal_wrap.cpp:1102: error: ‘int _propget_ColorEntry’
previously defined here
gdal_wrap.cpp:3631: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3631: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3631: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3631: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3655: error: redefinition of ‘int
_wrap_propset_ColorEntry’
gdal_wrap.cpp:1099: error: ‘int _wrap_propset_ColorEntry’
previously defined her
e
gdal_wrap.cpp:3655: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3655: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3655: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3655: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3667: error: redefinition of ‘int
_propset_ColorEntry’
gdal_wrap.cpp:1100: error: ‘int _propset_ColorEntry’
previously defined here
gdal_wrap.cpp:3667: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3667: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3667: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3667: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3679: error: ‘zend_property_reference’ was
not declared in this sc
ope
gdal_wrap.cpp:3679: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3679: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3679: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3679: error: initializer expression list treated as
compound expre
ssion
gdal_wrap.cpp:3679: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3706: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3706: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3706: error: expected ‘,’ or ‘;’
before ‘{’ token
gdal_wrap.cpp:3730: error: ‘zend_property_reference’ was not
declared in this sc
ope
gdal_wrap.cpp:3730: error: ‘property_reference’ was not
declared in this scope
gdal_wrap.cpp:3730: error: expected primary-expression before
‘*’ token
gdal_wrap.cpp:3730: error: ‘value’ was not declared in this
scope gdal_wrap.cpp:3730: error: initializer expression list treated as
compound expre
ssion

etc, etc. more of the same errors appearing.

Do you have any hints? I am on Ubuntu Gutsy 7.10, 64 bit.

Thanks,
Andreas

-- 
Andreas Neumann
Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland
Email: a.neumann at carto.net, Web:
* http://www.carto.net/ (Carto and SVG resources)
* http://www.carto.net/neumann/ (personal page)
* http://www.svgopen.org/ (SVG Open Conference)
* http://www.geofoto.ch/ (Georeferenced Photos of Switzerland)



More information about the gdal-dev mailing list