#40132 [Fbk]: Build error in ext/imap (U8T_CANONICAL def missing)
| From: | tony2001@php.net | Date: | Fri, 19 Jan 2007 17:47:46 +0000 |
| Subject: | #40132 [Fbk]: Build error in ext/imap (U8T_CANONICAL def missing) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107785@lists.php.net to get a copy of this message | ||
ID: 40132
Updated by: tony2001@php.net
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:
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
Previous Comments:
------------------------------------------------------------------------
[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] tony2001@php.net
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