php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18853 Compile Failures On DOMXML
Submitted: 2002-08-11 06:48 UTC Modified: 2002-09-15 05:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: craigm at ace dot com dot au Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2002-08-11 OS: Redhat 7.2
Private report: No CVE-ID: None
 [2002-08-11 06:48 UTC] craigm at ace dot com dot au
Configure lines looks like the following:

./configure --prefix=/usr/local/php4 --with-imap=/root/imap-2001a/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gettext --with-xml --enable-ftp --enable-sockets --with-dom=../libxml2-2.4.23 --with-zlib && make && make install

Tring to compile latest CVS-PHP and libxml 2.4.23 together and towards the end of the compile I come across a whole screen or two worth of information thats looks like this
--------------------------------------------------------


ext/domxml/php_domxml.lo: In function `zif_domxml_elem_remove_attribute':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:2809: undefined reference to `xmlHasProp'
ext/domxml/php_domxml.lo: In function `zif_domxml_elem_get_attribute_node':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:2829: undefined reference to `xmlHasProp'
ext/domxml/php_domxml.lo: In function `zif_domxml_elem_has_attribute':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:2882: undefined reference to `xmlFree'
ext/domxml/php_domxml.lo: In function `zif_domxml_doc_get_element_by_id':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3001: undefined reference to `xmlHashScan'
ext/domxml/php_domxml.lo: In function `zif_domxml_doc_doctype':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3188: undefined reference to `xmlGetIntSubset'
ext/domxml/php_domxml.lo: In function `zif_domxml_intdtd':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3498: undefined reference to `xmlGetIntSubset'
ext/domxml/php_domxml.lo: In function `zif_domxml_dump_mem':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3524: undefined reference to `xmlDocDumpFormatMemoryEnc'
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3526: undefined reference to `xmlDocDumpFormatMemory'
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3531: undefined reference to `xmlDocDumpMemoryEnc'
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3541: undefined reference to `xmlFree'
ext/domxml/php_domxml.lo: In function `zif_domxml_dump_mem_file':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3562: undefined reference to `xmlSaveFormatFile'
ext/domxml/php_domxml.lo: In function `zif_domxml_dump_node':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3602: undefined reference to `xmlNodeDump'
ext/domxml/php_domxml.lo: In function `zif_domxml_doc_ids':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3651: undefined reference to `xmlHashScan'
ext/domxml/php_domxml.lo: In function `zif_xmldoc':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3694: undefined reference to `xmlLoadExtDtdDefaultValue'
ext/domxml/php_domxml.lo: In function `zif_xmldocfile':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3776: undefined reference to `xmlLoadExtDtdDefaultValue'
ext/domxml/php_domxml.lo: In function `zif_domxml_html_dump_mem':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3837: undefined reference to `xmlFree'
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:3841: undefined reference to `xmlFree'
ext/domxml/php_domxml.lo: In function `php_xpathptr_new_context':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:4561: undefined reference to `xmlXPtrNewContext'
ext/domxml/php_domxml.lo: In function `php_xpathptr_eval':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:4627: undefined reference to `xmlXPtrEval'
ext/domxml/php_domxml.lo: In function `zif_xpath_register_ns':
/usr/local/src/php4-200208110000/ext/domxml/php_domxml.c:4760: undefined reference to `xmlXPathRegisterNs'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

-----------------------------------------------------------
If any further information is required please let me know, this is my first bug report.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 21:58 UTC] kalowsky@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 [2002-08-14 03:06 UTC] chregu@php.net
Hi 

It looks like, php can't link to libxml2. Please check if libxml2 is in your ldconfig-cache (ldconfig -p | grep xml2). If not, adjust /etc/ld.so.conf and add the path, where libxml2.so can be found.

A new snapshot won't help you, since nothing changed in the extension in this area.

Please report back, if it works or not.

chregu


 [2002-09-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-09-15 05:41 UTC] craigm at ace dot com dot au
Thanks for your help. Adding it to ld.conf fixed the problem.

Ta

Craig
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 22:00:02 2026 UTC