php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19254 --with-dom does not compile with libxml2-2.4.24
Submitted: 2002-09-05 12:58 UTC Modified: 2002-09-05 13:26 UTC
From: michael dot mauch at gmx dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2002-09-05 OS: Linux
Private report: No CVE-ID: None
 [2002-09-05 12:58 UTC] michael dot mauch at gmx dot de
With php4-STABLE-200209050900, configured --with-dom --with-zlib, using the latest libxml2 (2.4.24, see ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/), the compilation fails:

gcc -I. -I/usr/local/src/php4-STABLE-200209050900/ext/domxml -I/usr/local/src/php4-STABLE-200209050900/main -I/usr/local/src/php4-STABLE-200209050900 -I/usr/local/src/php4-STABLE-200209050900/Zend -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/src/php4-STABLE-200209050900/ext/mysql/libmysql -I/usr/local/src/php4-STABLE-200209050900/ext/xml/expat  -I/usr/local/src/php4-STABLE-200209050900/TSRM -g -O2  -c php_domxml.c && touch php_domxml.lo
php_domxml.c: In function `zif_domxml_doc_get_element_by_id':
php_domxml.c:2695: warning: passing arg 2 of `xmlHashScan' from incompatible pointer type
php_domxml.c: In function `zif_domxml_doc_ids':
php_domxml.c:3313: warning: passing arg 2 of `xmlHashScan' from incompatible pointer type
php_domxml.c: In function `zif_xmldoc':
php_domxml.c:3330: `xmlDoValidityCheckingDefaultValue' undeclared (first use in this function)
php_domxml.c:3330: (Each undeclared identifier is reported only once
php_domxml.c:3330: for each function it appears in.)
php_domxml.c:3346: `xmlLoadExtDtdDefaultValue' undeclared (first use in this function)
make[3]: *** [php_domxml.lo] Fehler 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-05 13:09 UTC] chregu@php.net
you have most certainly an old libxml2 installation lying around (your error memssages are typical for old libxml2). please delete all old reference (especially the header files)
and test it again

chregu
 [2002-09-05 13:11 UTC] chregu@php.net
Just for the record. libxml2-2.4.24 compiles here (linux debian) just fine.

chregu
 [2002-09-05 13:26 UTC] michael dot mauch at gmx dot de
Thanks for the ultra-fast and correct answer!

I thought my /usr/local/include/libxml was libxml1, but looking into xmlversion.h revealed that it was indeed libxml2 (2.4.3).

Thank you again!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 14:01:32 2024 UTC