php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16825 Latest updates make compilation fail
Submitted: 2002-04-25 11:04 UTC Modified: 2002-05-16 10:26 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: andrei@php.net Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0CVS-2002-04-25 OS: RedHat 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrei@php.net
New email:
PHP Version: OS:

 

 [2002-04-25 11:04 UTC] andrei@php.net
After latest CVS update, compiling against installed libxml2-2.4.2 fails with the following:

/projects/compile/php4/ext/domxml/php_domxml.c: In function `zif_domxml_doc_get_element_by_id':
/projects/compile/php4/ext/domxml/php_domxml.c:2711: warning: passing arg 2 of `xmlHashScan' from incompatible pointer type

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-16 10:26 UTC] chregu@php.net
You need at least libxml2-2.4.14 for a clean compile.
This is fixed in CVS, so configure checks for that,
 [2002-06-28 10:15 UTC] noel at racinglines dot com
I am still getting this error when building PHP-4.2.1 with Libxml2-2.4.22

php_domxml.c: In function `zif_domxml_doc_get_element_by_id':
php_domxml.c:2675: warning: passing arg 2 of `xmlHashScan' from incompatible pointer type
php_domxml.c: In function `zif_domxml_doc_ids':
php_domxml.c:3292: warning: passing arg 2 of `xmlHashScan' from incompatible pointer type
php_domxml.c: In function `zif_xmldoc':
php_domxml.c:3309: `xmlDoValidityCheckingDefaultValue' undeclared (first use in this function)
php_domxml.c:3309: (Each undeclared identifier is reported only once
php_domxml.c:3309: for each function it appears in.)
php_domxml.c:3325: `xmlLoadExtDtdDefaultValue' undeclared (first use in this function)
php_domxml.c:3325: `XML_COMPLETE_ATTRS' undeclared (first use in this function)
php_domxml.c: In function `php_xpathptr_eval':
php_domxml.c:3995: `XPATH_XSLT_TREE' undeclared (first use in this function)
 [2002-08-05 03:14 UTC] delphiring at hotmail dot com
by default the libxml2 head file will be installed into
/usr/include/libxml2/libxml if you are use --prefix=/usr when upgrade
libxml.

And that's why you can not compile domxml

You might fix the bug yourself by edit ext/domxml/php_domxml.h

vi ext/domxml/php_domxml.h
:% s/libxml/libxml2\/libxml/
:wq

make
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 16:00:03 2025 UTC