ID: 45793 Updated by: [EMAIL PROTECTED] Reported By: amiheev at st-host dot ru -Status: Open +Status: Feedback Bug Type: IMAP related Operating System: Linux glibc-2.3.3-27 gcc-3.3.3 PHP Version: 5.2.6 Assigned To: fb-req-jani New Comment:
Are you sure you don't have some old c-client header files in your system, for example in /usr/include or other header path included in the make? Previous Comments: ------------------------------------------------------------------------ [2008-08-12 14:29:30] amiheev at st-host dot ru 1. imap-2007b 2. Not too much: configure:46967: checking for IMAP support configure:47014: checking for IMAP Kerberos support configure:47040: checking for IMAP SSL support configure:47456: checking for utf8_mime2text signature configure:47503: checking for U8T_CANONICAL And a bit later: configure:49236: checking whether build with IMAP works configure:49274: gcc -o conftest -I/usr/local/include -g -O2 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lc-client -lcrypt -lpam -liconv -lfreetype -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -liconv -lm -lcurl -lxml2 -lz -liconv -lm 1>&5 /usr/local/lib/libc-client.a(osdep.o)(.text+0x8b0b): In function `ssl_onceonlyin it': /chr/src/imap/imap-2007b/c-client/osdep.c:353: warning: the use of `tmpnam' is dangerous, better use `mkstemp' ------------------------------------------------------------------------ [2008-08-12 14:21:36] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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