php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5891 PHP configure fails if libxml is compiled with libiconv
Submitted: 2000-08-01 10:41 UTC Modified: 2001-02-20 08:03 UTC
From: nickt at powys dot gov dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: slackware 7.1 linux (2.2.16 kern
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: nickt at powys dot gov dot uk
New email:
PHP Version: OS:

 

 [2000-08-01 10:41 UTC] nickt at powys dot gov dot uk
This problem occurs when compiling --with-DOM to build in the libxml support.

using
libxml 2.2.1 compiled with
zlib 1.1.3 and
libiconv 1.3

libxml can be compiled in a number of ways, and looking at the config.m4 file in ext/domxml I think it is assumed that only the libz library has been used.  If I specifically compile libxml without iconv support, then PHP compiles fine.  With libxml compiled with iconv support, configure fails because of the unresolved references in libxml to functions in libiconv.

I don't really understand the contents of the config.m4 file in ext/domxml, but I managed to fix this to get PHP to complile with libxml and iconv support by adding -liconv to the LIBS= in line 16, and adding a new line AC_ADD_LIBRARY(iconv) after line 20.  I know this isn't the right way to do it because the checks should be made for libiconv in the same way as they are for zlib.  However, after doing a buildconf this was enought to get PHP to compile and build as an Apache module, so I guess someone who knows what they're doing could sort it with this information :-)

Regards  -  Nick

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-05 09:18 UTC] sniper@php.net
You propably have old glibc? Not 2.1 ? 

Check this:
http://www.xmlsoft.org/FAQ.html#Compilatio

--Jani


 [2001-01-07 04:06 UTC] sniper@php.net
Does this happen with PHP 4.0.4 and newer libxml??

--Jani
 [2001-02-20 08:03 UTC] sniper@php.net
No feedback, considered fixed.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 05:01:37 2025 UTC