php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24778 imap + cyrus crash compile
Submitted: 2003-07-23 16:07 UTC Modified: 2004-08-07 10:21 UTC
From: korgal at hotmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2 OS: Redhat 8.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: korgal at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-07-23 16:07 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-23 17:10 UTC] 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.
 [2004-08-07 10:21 UTC] vrana@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 22:01:26 2024 UTC