Monday, 17 February 2014

make: *** [ext/dom/node.lo] Error 1 : Easyapache error

Got the following error while running make command in a custom php-5.3 installation in a server.

/usr/src/php-5.3.10/ext/dom/node.c: In function ‘dom_canonicalization’:
/usr/src/php-5.3.10/ext/dom/node.c:1898: error: dereferencing pointer to incomplete type
/usr/src/php-5.3.10/ext/dom/node.c:1900: error: dereferencing pointer to incomplete type
make: *** [ext/dom/node.lo] Error 1

====
Fix:
====

It is a bug with php and can be corrected using a simple patch.
Download the patch file to the extracted php directory.
# cd /usr/src/php-5.3.10
# wget http://cpanelstuffs.linuxcabin.com/downloads/php1.patch
# chmod 755 php1.patch
# patch -p0 < php1.patch
patching file ext/dom/node.c
patching file ext/dom/documenttype.c
patching file ext/simplexml/simplexml.c
Hunk #1 succeeded at 1387 (offset -30 lines).
Now, run configure again and then make. It will complete with no errors

Note: You can use this for other versions of PHP also.

Ref: http://cpanelstuffs.linuxcabin.com/?p=1180

No comments:

Post a Comment

Note: only a member of this blog may post a comment.