ID: 40132 Updated by: [EMAIL PROTECTED] Reported By: mathias dot lieber at web dot de Status: Feedback Bug Type: *Compile Issues Operating System: Linux, 2.6.18, Ubuntu/Debian PHP Version: 5.2.0 New Comment:
/usr/include/c-client/nntp.h:64: error: syntax error before 'FILE' What is the version of your imap package? Where did you get it? Please put nntp.h online and paste the URL here. Previous Comments: ------------------------------------------------------------------------ [2007-01-19 21:34:28] phpbugs at thequod dot de checking for U8T_CANONICAL... no configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. I'll send you config.log. ------------------------------------------------------------------------ [2007-01-19 17:47:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2007-01-19 17:31:54] phpbugs at thequod dot de I could still build PHP at Jan 14 2007 01:46:28. Now I get the following error with current CVS: /PHP_5_2/ext/imap/php_imap.c: In function 'zif_imap_utf8': /PHP_5_2/ext/imap/php_imap.c:2212: error: 'U8T_CANONICAL' undeclared (first use in this function) I have libc-client-dev 7:2002edebian1-13 installed on Ubuntu Dapper and U8T_CANONICAL is not defined in /usr/include/c-client/utf8.h. It's defined nowhere in /usr/include. ------------------------------------------------------------------------ [2007-01-17 10:37:14] [EMAIL PROTECTED] Make sure you've installed c-client properly and its headers define U8T_CANONICAL constant. Look for utf8.h in imap-2006+ it contains U8T_CANONICAL definition. ------------------------------------------------------------------------ [2007-01-15 10:15:18] mathias dot lieber at web dot de Description: ------------ 5.2.0 does not build because it's missing the definition of "U8T_CANONICAL" in the imap extension. I tried both with libc-client-dev package as well as with self-compiled imapd.2006XXX.TAR.GZ. Reproduce code: --------------- ./configure --with-gettext --with-imap --with-imap-ssl --with-zlib --with-gd --with-mcrypt --with-openssl --with-xml --without-pear --with-apxs2=/usr/local/apache2/bin/apxs --enable-memory-limit --enable-track-vars --enable-wddx --enable-ftp --enable-gd-native-ttf --enable-sysvmsg --enable-sysvem --enable-sysvshm --enable-transid --disable-debug --disable-magic-quotes --with-mysql --enable-cli --enable-cgi --with-ldap --with-kerberos --with-mssql=/usr/local/freetds --enable-force-cgi-redirect make Actual result: -------------- /bin/sh /usr/local/src/php-5.2.0/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/imap/ -I/usr/local/src/php-5.2.0/ext/imap/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.0/include -I/usr/local/src/php-5.2.0/main -I/usr/local/src/php-5.2.0 -I/usr/include/libxml2 -I/usr/local/src/php-5.2.0/ext/date/lib -I/usr/local/include -I/usr/local/src/php-5.2.0/ext/mbstring/oniguruma -I/usr/local/src/php-5.2.0/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.0/ext/mbstring/libmbfl/mbfl -I/usr/local/freetds/include -I/usr/include/mysql -I/usr/local/src/php-5.2.0/TSRM -I/usr/local/src/php-5.2.0/Zend -I/usr/include -g -O2 -prefer-non-pic -c /usr/local/src/php-5.2.0/ext/imap/php_imap.c -o ext/imap/php_imap.lo /usr/local/src/php-5.2.0/ext/imap/php_imap.c: In function 'zif_imap_utf8': /usr/local/src/php-5.2.0/ext/imap/php_imap.c:2188: error: 'U8T_CANONICAL' undeclared (first use in this function) /usr/local/src/php-5.2.0/ext/imap/php_imap.c:2188: error: (Each undeclared identifier is reported only once /usr/local/src/php-5.2.0/ext/imap/php_imap.c:2188: error: for each function it appears in.) make: *** [ext/imap/php_imap.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40132&edit=1