ID: 24778 Updated by: [EMAIL PROTECTED] Reported By: korgal at hotmail dot com -Status: Open +Status: Analyzed -Bug Type: Compile Failure +Bug Type: Documentation problem Operating System: Redhat 8.0 PHP Version: 4.3.2 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
