php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20915 Problems Compiling PHP with Cyrus imap
Submitted: 2002-12-09 20:13 UTC Modified: 2002-12-10 10:36 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: koce at gmx dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.3 OS: Debian 2.2
Private report: No CVE-ID: None
 [2002-12-09 20:13 UTC] koce at gmx dot net
I am trying to compile PHP with cyrus imap support but with no success.I found the same problem in the bug report database.There the problem is listed as resolved within the newest releases, but I am still getting the same error messages:

cyrus.c: In function `zm_startup_cyrus':
cyrus.c:86: warning: passing arg 1 of `zend_register_list_destructors_ex' from incompatible pointer type
cyrus.c: In function `zif_cyrus_connect':
cyrus.c:152: too many arguments to function `imclient_connect'
cyrus.c: In function `zif_cyrus_authenticate':
cyrus.c:300: warning: comparison between pointer and integer
cyrus.c:309: warning: comparison between pointer and integer
cyrus.c:318: warning: passing arg 2 of `imclient_authenticate' from incompatible pointer type
cyrus.c:318: too many arguments to function `imclient_authenticate'
make[3]: *** [cyrus.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Here is the command line that I use:

./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-inline-optimization --with-gettext=/usr/local/gettext --with-openssl=/usr/local --with-wddx --with-cyrus --with-imap-ssl=/usr/local --with-xml --with-mcrypt  --with-png-dir=/usr --enable-ftp --with-mcal=/usr

Here is the bug report ID that I was looking at earling in my efforts to resolve this.

http://bugs.php.net/bug.php?id=15059

Regards,
ka

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-09 20:26 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-12-09 20:40 UTC] koce at gmx dot net
Same thing:

Zagorka:~/php4-200212100230# make
/bin/sh libtool --silent --mode=compile gcc  -Iext/cyrus/ -I/root/php4-200212100230/ext/cyrus/ -DPHP_ATOM_INC -I/root/php4-200212100230/include -I/root/php4-200212100230/main -I/root/php4-200212100230 -I/usr/local/apache/include -I/root/php4-200212100230/Zend -I/usr/local/include -I/usr/local/gettext/include -I/usr/local/mysql/include/mysql -I/root/php4-200212100230/ext/xml/expat  -I/root/php4-200212100230/TSRM  -g -O2  -prefer-pic -c /root/php4-200212100230/ext/cyrus/cyrus.c -o ext/cyrus/cyrus.lo 
/root/php4-200212100230/ext/cyrus/cyrus.c: In function `zif_cyrus_connect':
/root/php4-200212100230/ext/cyrus/cyrus.c:152: too many arguments to function `imclient_connect'
/root/php4-200212100230/ext/cyrus/cyrus.c: In function `zif_cyrus_authenticate':
/root/php4-200212100230/ext/cyrus/cyrus.c:300: warning: comparison between pointer and integer
/root/php4-200212100230/ext/cyrus/cyrus.c:309: warning: comparison between pointer and integer
/root/php4-200212100230/ext/cyrus/cyrus.c:318: warning: passing arg 2 of `imclient_authenticate' from incompatible pointer type
/root/php4-200212100230/ext/cyrus/cyrus.c:318: too many arguments to function `imclient_authenticate'
make: *** [ext/cyrus/cyrus.lo] Error 1
 [2002-12-09 23:22 UTC] sniper@php.net
What cyrus version are you trying to compile with?

 [2002-12-10 08:21 UTC] koce at gmx dot net
Zagorka:~# imtest localhost 143
* OK Zagorka Cyrus IMAP4 v1.5.19 server ready

using gcc 2.95.I also tried gcc 3.2 but with the same results.
 [2002-12-10 10:36 UTC] sniper@php.net
You need cyrus-imapd-2.1.11 for this extension to work.
I've added a check for the version in CVS.
You need the latest CVS snapshot for this to work though.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 31 11:00:02 2025 UTC