ID: 43189
Comment by: mjs at beebo dot org
Reported By: meh at mailinator dot com
Status: No Feedback
Bug Type: ICONV related
Operating System: Mac OS X 10.5
PHP Version: 5.3CVS-2007-11-04 (snap)
New Comment:
This appears to be fixed in 10.5.2: the 10.5.2 /usr/include/iconv.h is
different to the 10.5.1 version, and it compiles successfully as well.
Previous Comments:
------------------------------------------------------------------------
[2008-02-03 09:25:38] mjs at beebo dot org
Replacing /usr/include/iconv.h with the one from MacPorts and worked
for
me. (I did need to re-configure and re-compile the whole thing
though--
just re-running configure didn't work.)
For what it's worth, the --with-iconv=shared,/opt/local idea *didn't*
work for me--php configured and built okay, but the iconv module didn't
actually become available. (php -m doesn't show it.)
------------------------------------------------------------------------
[2008-01-20 19:59:20] mariano at petersonpages dot com
This configure option worked for me:
--with-iconv=shared,/opt/local
(Mac OS 10.5.1, PHP 5.2.5, iconv installed in /opt/local using
macports)
------------------------------------------------------------------------
[2007-12-18 08:45:48] leon at messiah dot co dot nz
Scott's method may work, but I'm loath to replace system provided
header files. Seems a bit hacky to me...
Wouldn't a more elegant solution be to configure your build to use the
fink versions of the headers and library?
Something like:
--with-iconv-dir=/sw
I'm using MacPorts so have been trying to do the same thing but using
/opt/local, so far without success. However, I'm probably doing
something wrong with the configure script (we're not the best of
friends).
------------------------------------------------------------------------
[2007-12-14 15:45:05] aaa at mailinator dot com
@jani:
there are one per OS X sdk, one in /usr and one in /sw.
Linking suggested by scott solves the problem on me.
------------------------------------------------------------------------
[2007-11-22 22:06:03] msf at bitplan dot com
I have the same problem, even with a self compiled libiconv it does not
work.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43189
--
Edit this bug report at http://bugs.php.net/?id=43189&edit=1