I am trying to install php-5.2.6 and get the following error message
Code: Select all
Thank you for using PHP.
Notice: Following unknown configure options were used:
--enable-zlib
Check './configure --help' for available options
#########################################################################
# PHP: configure OK #
#########################################################################
/bin/sh /opt/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/opt/php-5.2.6/ext/dom/ -DPHP_ATOM_INC -I/opt/php-5.2.6/include -I/opt/php-5.2.6/main -I/opt/php-5.2.6 -I/usr/include/libxml2 -I/opt/php-5.2.6/ext/date/lib -I/opt/php-5.2.6/TSRM -I/opt/php-5.2.6/Zend -I/usr/include -g -O2 -c /opt/php-5.2.6/ext/dom/node.c -o ext/dom/node.lo
/opt/php-5.2.6/ext/dom/node.c: In function 'dom_canonicalization':
/opt/php-5.2.6/ext/dom/node.c:1950:21: error: dereferencing pointer to incomplete type
ret = buf->buffer->use;
^
In file included from /opt/php-5.2.6/main/php.h:38:0,
from /opt/php-5.2.6/ext/dom/node.c:26:
/opt/php-5.2.6/ext/dom/node.c:1952:40: error: dereferencing pointer to incomplete type
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
/opt/php-5.2.6/Zend/zend_API.h:472:14: note: in definition of macro 'ZVAL_STRINGL'
char *__s=(s); int __l=l; \
^
/opt/php-5.2.6/ext/dom/node.c:1952:5: note: in expansion of macro 'RETVAL_STRINGL'
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
make: *** [ext/dom/node.lo] Error 1
#########################################################################
# PHP: make ERROR #
#########################################################################
Thank you