|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-17 23:49 UTC] scottmac@php.net
[2009-04-27 17:49 UTC] scottmac@php.net
[2009-04-27 18:35 UTC] jani@php.net
[2009-04-27 18:42 UTC] jani@php.net
[2009-04-30 09:28 UTC] p2409 at hotmail dot com
[2009-04-30 13:03 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
Description: ------------ Many people report problems compiling PHP on Leopard due to a libiconv issue. This may be due to the small C test programme in ./configure. It calls open_conv with two const * char arguments (correct), but these are NOT valid charsets to iconv (incorrect). This then breaks ./configure. AFAIK from the libiconv documentation, the PHP ./configure call is incorrect: this function expects two valid charset arguments. (You can see a list of valid arguments by running iconv -l). Changing the call to eg.: cd = open_conv("UTF-8","ISO-8859-1") returns a valid iconv_t number (non-negative), and configure can then continue setting up for Makefile compile. Reproduce code: --------------- In ./configure, search for open_iconv: cd = open_iconv("*** blah blah ***","*** blah blah ***") Expected result: ---------------- This call fails ie. cd return value is negative. ./configure considers this a libiconv fail, and does not continue. The expected result is correct ie. -1, however this test should return a positive number and allow ./configure to continue. Changing the two parameters in the call to open_iconv to valid charsets (see list with ./iconv -l) returns a valid translaction number (type iconv_t). This would then allow ./configure to continue.