PHP 4.0 Bug #5891 Updated: PHP configure fails if libxml is compiled with libiconv

From: Date: Sun, 07 Jan 2001 09:06:15 +0000
Subject: PHP 4.0 Bug #5891 Updated: PHP configure fails if libxml is compiled with libiconv
Groups: php.dev 
Request: Send a blank email to php-dev+get-43215@lists.php.net to get a copy of this message
ID: 5891 Updated by: sniper Reported By: nickt@powys.gov.uk Old-Status: Assigned Status: Feedback Bug Type: Compile Failure Assigned To: Comments: Does this happen with PHP 4.0.4 and newer libxml?? --Jani Previous Comments: --------------------------------------------------------------------------- [2000-10-05 09:18:45] sniper@php.net You propably have old glibc? Not 2.1 ? Check this: http://www.xmlsoft.org/FAQ.html#Compilatio --Jani --------------------------------------------------------------------------- [2000-08-01 10:41:53] nickt@powys.gov.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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=5891

« previous php.dev (#43215) next »