ID: 45793 Updated by: [EMAIL PROTECTED] Reported By: amiheev at st-host dot ru -Status: Open +Status: Feedback -Bug Type: Compile Failure +Bug Type: IMAP related Operating System: Linux glibc-2.3.3-27 gcc-3.3.3 PHP Version: 5.2.6 New Comment:
1. What is the exact c-client version you compile with? 2. Check your config.log for the relevant output for the check of utf8_mime2text() signature and paste here. Previous Comments: ------------------------------------------------------------------------ [2008-08-12 06:02:09] amiheev at st-host dot ru 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 this bug report at http://bugs.php.net/?id=45793&edit=1