Bug #53443 [Fbk->NoF]: configure --with-iconv=/path/to/iconv picks up host iconv
Edit report at https://bugs.php.net/bug.php?id=53443&edit=1
ID: 53443
Updated by: php-bugs@lists.php.net
Reported by: fransmeulenbroeks at gmail dot com
Summary: configure --with-iconv=/path/to/iconv picks up host
iconv
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Compile Failure
Operating System: linux
PHP Version: 5.2SVN-2010-12-01 (snap)
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2013-08-01 23:20:46] yohgaki@php.net
Please try using this snapshot:
http://snaps.php.net/php5.4-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Breifly looking PHP 5.5's configure script, it seems ok.
------------------------------------------------------------------------
[2011-01-10 18:16:56] poopsm at gmail dot com
I'm having this same problem with php 5.3.5, and this patch isn't fixing it.
When using the options
--with-iconv --with-iconv-dir=/usr/local/iconv
I still get
checking if iconv is glibc's... yes
but it should be using libiconv
------------------------------------------------------------------------
[2010-12-01 22:58:12] fransmeulenbroeks at gmail dot com
Description:
------------
configure --with-iconv=/path/to/iconv picks up the host iconv
ext/iconv/config.m4 does not take the case that a dir is given into account.
I fixed this by adding $PHP_ICONV to the for loop. This patch makes the code identical to a similar
snippet of code in acinclude.m4
The problem has been detected in 5.2.13 but I verified the 5.2 snap from today and the problem is
still there.
Attached patch fixes the problem
Index: php-5.2.13/ext/iconv/config.m4
===================================================================
--- php-5.2.13.orig/ext/iconv/config.m4
+++ php-5.2.13/ext/iconv/config.m4
@@ -15,7 +15,7 @@ if test "$PHP_ICONV" != "no"; then
if test "$iconv_avail" != "no"; then
if test -z "$ICONV_DIR"; then
- for i in /usr/local /usr; do
+ for i in $PHP_ICONV /usr/local /usr; do
if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
PHP_ICONV_PREFIX="$i"
break
~
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=53443&edit=1
Thread (4 messages)