错误1:
/usr/src/php-5.2.9/ext/dom/node.c:In function 'dom_canonicalization':
/usr/src/php-5.2.9/ext/dom/node.c:1950:21: error: dereferencingpointer to incomplete type
ret = buf->buffer->use;
^
Infile included from /usr/src/php-5.2.9/main/php.h:38:0,
from/usr/src/php-5.2.9/ext/dom/node.c:26:
/usr/src/php-5.2.9/ext/dom/node.c:1952:40: error:dereferencing pointer to incomplete type
RETVAL_STRINGL((char *)buf->buffer->content, ret, 1);
^
/usr/src/php-5.2.9/Zend/zend_API.h:472:14:note: in definition of macro 'ZVAL_STRINGL'
char *__s=(s); int __l=l; \
^
/usr/src/php-5.2.9/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] 错误1
[root@localhostphp-5.2.9]# 错误2:
/usr/src/php-5.2.9/ext/dom/documenttype.c:In function 'dom_documenttype_internal_subset_read':
/usr/src/php-5.2.9/ext/dom/documenttype.c:219:42: error:dereferencing pointer to incomplete type
strintsubset =xmlStrndup(buff->buffer->content, buff->buffer->use);
^
/usr/src/php-5.2.9/ext/dom/documenttype.c:219:65: error:dereferencing pointer to incomplete type
strintsubset =xmlStrndup(buff->buffer->content, buff->buffer->use);
^
make:*** [ext/dom/documenttype.lo] 错误 1
[root@localhostphp-5.2.9]# 解决办法: