From: p2409 at hotmail dot com Operating system: Mac OS X 10.5.5 PHP version: 5.2.9 PHP Bug Type: Compile Failure Bug description: --with-iconv configure option always fails in Leopard
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. -- Edit bug report at http://bugs.php.net/?id=47695&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47695&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47695&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47695&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47695&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47695&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47695&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47695&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47695&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47695&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47695&r=support Expected behavior: http://bugs.php.net/fix.php?id=47695&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47695&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47695&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47695&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47695&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47695&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47695&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47695&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47695&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47695&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47695&r=mysqlcfg