#24778 [Ana->Csd]: imap + cyrus crash compile

From: Date: Sat, 07 Aug 2004 08:21:41 +0000
Subject: #24778 [Ana->Csd]: imap + cyrus crash compile
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969362812@lists.php.net to get a copy of this message
ID: 24778 Updated by: vrana@php.net Reported By: korgal at hotmail dot com -Status: Analyzed +Status: Closed Bug Type: Documentation problem Operating System: Redhat 8.0 PHP Version: 4.3.2 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "IMAP cannot be used together with Cyrus." added both to IMAP and Cyrus. Previous Comments: ------------------------------------------------------------------------ [2003-07-23 17:10:26] iliaa@php.net Due to the nature of the source code of imap & cyrus those two extensions cannot be compiled together. The imap library has a fatal() function and cyrus requires the user to define fatal() function. Cyrus Docs: Users must link with the -lcyrus switch, and must supply a function called fatal to be called in case of any error within libcyrus.a So, I am afraid you'll need to use either imap or cyrus. ------------------------------------------------------------------------ [2003-07-23 16:07:14] korgal at hotmail dot com Description: ------------ Hi, Compiling PHP 4.3.2 with --with-imap and --with-cyrus crash... but removing any of the 2 make it work... i am not a C programmer, so i have no idea what's the problem... I have PHP 4.3.2, cyrus-imapd 2.1.13 works fine, and i tried imap-2002d and the latest imap-2003a without difference. Here is my config: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-cyrus --with-imap=/usr/local/imap-2002d --enable-ftp --with-interbase=/opt/interbase --with-openssl --with-zlib --enable-inline-optimization The CONFIGURE go fine. But when i MAKE... /usr/local/imap-2002d/libc-client.a(osdep.o): In function `fatal': /temp/imap-2002d/c-client/ftl_unix.c:27: multiple defini tion of `fatal' ext/cyrus/cyrus.lo:/temp/php-4.3.2/ext/cyrus/cyrus.c:110: first defined here /usr/bin/ld: Warning: size of symbol `fatal' changed from 41 to 37 in /usr/local/imap-2002d/libc-client.a(osdep.o) collect2: ld returned 1 exit status make: *** [libphp4.la] Error 1 To me, looks like a "fatal" function is defined in both Cyrus and IMAP, and it conflicts. Thank you very much ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24778&edit=1

« previous php.doc (#969362812) next »