From: amiheev at st-host dot ru Operating system: Linux glibc-2.3.3-27 gcc-3.3.3 PHP version: 5.2.6 PHP Bug Type: Compile Failure Bug description: conflicting types for `utf8_mime2text'
Description: ------------ This bug have been opened many times for a variety of php versions (up to 5.2.0), but most of them were closed due to no feedback. Hopefully, this report would be the final one. As in previous reports, the problem occurs while trying to build PHP over a newer c-client version with new utf8_mime2text signature. This is caused by undefined HAVE_NEW_MIME2TEXT. configure script detects new c-client correctly and comments out the '#undef HAVE_NEW_MIME2TEXT' line, but this is not enough. The following changes to main/php_config.h after running ./configure solve the problem: /* Whether utf8_mime2text() has new signature * -/* #undef HAVE_NEW_MIME2TEXT */ +#define HAVE_NEW_MIME2TEXT Reproduce code: --------------- ./configure --with-imap=/usr/local && make Expected result: ---------------- Compile without errors. Actual result: -------------- Compilation fails with the following output /chr/src/php-5.2.6/ext/imap/php_imap.c:82: error: conflicting types for `utf8_mime2text' /usr/local/include/utf8aux.h:37: error: previous declaration of `utf8_mime2text' -- Edit bug report at http://bugs.php.net/?id=45793&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45793&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45793&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45793&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45793&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45793&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45793&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45793&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45793&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45793&r=support Expected behavior: http://bugs.php.net/fix.php?id=45793&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45793&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45793&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45793&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45793&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45793&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45793&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45793&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45793&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45793&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45793&r=mysqlcfg