ID: 39401
Updated by: [EMAIL PROTECTED]
Reported By: wouter at widexs dot nl
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: Linux
PHP Version: 5.2.0
New Comment:
Can you see if HAVE_NEW_MIME2TEXT is defined inside PHP's
main.h ?
Previous Comments:
[2006-11-06 18:25:37] wouter at widexs dot nl
Yes, it does :)
grep "mail_append_set" src/c-client/mail.h
SEARCHSET *mail_append_set (SEARCHSET *set,unsigned long msgno);
[2006-11-06 17:01:26] [EMAIL PROTECTED]
Does your imap's mail.h header contain the mail_append_set()
function?
[2006-11-06 15:23:14] wouter at widexs dot nl
Description:
I get an error when trying to build PHP 5.2.0 with imap c-client 2006c1
(ftp://ftp.cac.washington.edu/mail/imap-2006c1.tar.Z) :
/opt/install/widexs_apache_2006_017/php-5.2.0/ext/imap/php_imap.c:79:
conflicting types for `utf8_mime2text'
/opt/install/widexs_apache_2006_017/imap-2006c1/c-client/utf8.h:548:
previous declaration of `utf8_mime2text'
Which is correct, because:
* PHP 5.2.0 : long utf8_mime2text(SIZEDTEXT *src, SIZEDTEXT *dst);
* imap c-client 2006c1 : long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT
*dst,long flags);
Haven't tested with previous versions of PHP, but I assume the same
will happen.
IMAP c-client 2004g gives no problem.
This could be seen as a DUP of #37948 and #38941, but it is still
present in 5.2.0 ...
Actual result:
--
/bin/sh /opt/install/widexs_apache_2006_017/php-5.2.0/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/imap/
-I/opt/install/widexs_apache_2006_017/php-5.2.0/ext/imap/
-DPHP_ATOM_INC -I/opt/install/widexs_apache_2006_017/php-5.2.0/include
-I/opt/install/widexs_apache_2006_017/php-5.2.0/main
-I/opt/install/widexs_apache_2006_017/php-5.2.0
-I/usr/local/include/libxml2 -I/usr/local/ssl/include
-I/usr/local/include
-I/opt/install/widexs_apache_2006_017/php-5.2.0/ext/date/lib
-I/usr/include/freetype2
-I/opt/install/widexs_apache_2006_017/imap-2006c1/c-client
-I/opt/install/widexs_apache_2006_017/php-5.2.0/ext/mbstring/oniguruma
-I/opt/install/widexs_apache_2006_017/php-5.2.0/ext/mbstring/libmbfl
-I/opt/install/widexs_apache_2006_017/php-5.2.0/ext/mbstring/libmbfl/mbfl
-I/usr/local/mysql/include/mysql -I/usr/local/pgsql/include
-I/opt/install/widexs_apache_2006_017/php-5.2.0/TSRM
-I/opt/install/widexs_apache_2006_017/php-5.2.0/Zend-I/usr/include
-g -O2 -c
/opt/install/widexs_apache_2006_017/php-5.2.0/ext/imap/php_imap.c -o
ext/imap/php_imap.lo
/opt/install/widexs_apache_2006_017/php-5.2.0/ext/imap/php_imap.c:79:
conflicting types for `utf8_mime2text'
/opt/install/widexs_apache_2006_017/imap-2006c1/c-client/utf8.h:548:
previous declaration of `utf8_mime2text'
--
Edit this bug report at http://bugs.php.net/?id=39401&edit=1