#43189 [Com]: Fails to link iconv

From: Date: Tue, 18 Dec 2007 08:45:49 +0000
Subject: #43189 [Com]: Fails to link iconv
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120721@lists.php.net to get a copy of this message
ID: 43189 Comment by: leon at messiah dot co dot nz 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: 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). Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2007-11-19 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, 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". ------------------------------------------------------------------------ [2007-11-18 21:56:04] scott at mydogateit dot com This is an issue with Leopards iconv.h file (/usr/include/iconv.h). Try this... $ sudo mv /usr/include/iconv.h /usr/include/iconv.h.leo_orig $ sudo ln -s /sw/include/iconv.h /usr/include/iconv.h and try make again. (I did this using iconv from MacPorts, but I assume the find dist will work just as well). ------------------------------------------------------------------------ [2007-11-11 18:53:02] jani@php.net How many iconv.h files do you have in your system? (search for *iconv*.h :) ------------------------------------------------------------------------ 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

« previous php.bugs (#120721) next »