Libxml error while compiling dual php - "make: *** [ext/dom/node.lo] Error 1"
Libxml error while compiling dual php - "make: *** [ext/dom/node.lo] Error 1" ext/dom/node.c: In function 'dom_canonicalization': ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type ext/dom/node.c:1955:5: error: dereferencing pointer to incomplete type make: *** [ext/dom/node.lo] Error 1 This is a PHP error when compile the older version when install libxml2 from bigger version 2.9.0. Fix: Need to update patch. + vi libxml29_compat.patch + copy and paste below code in the file: 'libxml29_compat.patch' ============================== ============================== ============= --- ext/dom/node.c 2012-08-06 17:49:48.826716692 +0800 +++ ext/dom/node.c 2012-08-06 17:52:47.633484660 +0800 @@ -1895,9 +1895,17 @@ static void dom_canonicalization(INTERNA RETVAL_FALSE; } else { if (mode == 0) { +#ifdef LIBXML2_NEW_BUFFER + ret = xmlOutputBufferGetSize(buf); +#else ret = buf->buffer->u