php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40475 Build error in ext/imap (U8T_CANONICAL def missing)
Submitted: 2007-02-14 08:45 UTC Modified: 2007-02-14 10:56 UTC
From: dbk2oo5 at mail dot ru Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.1 OS: Debian 3.1, Kernel 2.6.15
Private report: No CVE-ID: None
 [2007-02-14 08:45 UTC] dbk2oo5 at mail dot ru
Description:
------------
5.2.1 does not build because it's missing the definition of "U8T_CANONICAL" in the imap extension.
5.2.0 does build without problems.

Reproduce code:
---------------
./configure '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php5/apache2' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--enable-dbase' '--with-gettext' '--enable-mbstring' '--with-pcre-regex' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--enable-tokenizer' '--enable-xml' '--with-expat-dir=/usr' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--enable-dbase' '--with-gettext' '--enable-mbstring' '--with-pcre-regex' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--enable-tokenizer' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-exec-dir=/usr/lib/php5/libexec' '--without-mm' '--with-mysql' '--without-sybase-ct' --enable-safe-mode --with-gd --with-jpeg --with-png --with-gif --with-ttf --enable-gd-native-ttf --enable-gd-imgstrttf --with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-freetype-dir=yes --with-imap --with-imap-ssl --with-zlib-dir=/usr

Actual result:
--------------
[...]
checking for IMAP support... yes
checking for IMAP Kerberos support... /usr
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
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.

config.log:
configure:45953: checking for U8T_CANONICAL
configure:45969: gcc -c -I/usr/local/include  -D_REENTRANT conftest.c 1>&5
configure:45960:22: c-client.h: No such file or directory
configure: In function `main':
configure:45964: error: `U8T_CANONICAL' undeclared (first use in this function)
configure:45964: error: (Each undeclared identifier is reported only once
configure:45964: error: for each function it appears in.)
configure: failed program was:
#line 45958 "configure"
#include "confdefs.h"

#include <c-client.h>

int main() {

         int i = U8T_CANONICAL;

; return 0; }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-14 08:46 UTC] dbk2oo5 at mail dot ru
Its Debian 3.1
 [2007-02-14 08:49 UTC] dbk2oo5 at mail dot ru
i've copied the c-client.h from /usr/include to /usr/local/include. Now it seems to compile.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 19:01:28 2024 UTC