From: wouter at widexs dot nl Operating system: Linux PHP version: 5.2.0 PHP Bug Type: IMAP related Bug description: conflicting types for utf8_mime2text
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 bug report at http://bugs.php.net/?id=39401&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39401&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39401&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39401&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39401&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39401&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39401&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39401&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39401&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39401&r=support Expected behavior: http://bugs.php.net/fix.php?id=39401&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39401&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39401&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39401&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39401&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39401&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39401&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39401&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39401&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39401&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39401&r=mysqlcfg