php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14671 cyrus module does not compile at all?
Submitted: 2001-12-23 08:50 UTC Modified: 2001-12-24 04:26 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: hps at intermeta dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.1.0 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hps at intermeta dot de
New email:
PHP Version: OS:

 

 [2001-12-23 08:50 UTC] hps at intermeta dot de
I'm using cyrus-imapd 2.0.16 for E-Mail. I wanted to compile
the cyrus support into php for accessing the cyrus server
administartion. Compilation fails with various errors.

Reason for this is simple: The name of one constant is wrong, there is a superflous _ in a constant registration and finally a void function is used in an if(). This module has never compiled (or even tested) by anyone of the PHP team.

Unfortunately, fixing this bug changes the name of one registered constant in php. So a doc change may be needed,
too.

Patch to compile the cyrus module is attached

--- php-4.1.0/ext/cyrus/cyrus.c Fri Oct 12 01:51:14 2001
+++ php-4.1.0.p/ext/cyrus/cyrus.c       Sun Dec 23 14:36:22 2001
@@ -85,9 +85,9 @@
        le_cyrus = zend_register_list_destructors_ex(cyrus_free, NULL, 
                                                     le_cyrus_name, module_number);
 
-       REGISTER_LONG_CONSTANT("CYRUS_CONN_NOSYNCLITERAL", 
-                              IMCLIENT_CONN_NOSYNCLITERAL,
-                              CONST_CS_ | CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("CYRUS_CONN_NONSYNCLITERAL", 
+                              IMCLIENT_CONN_NONSYNCLITERAL,
+                              CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CYRUS_CONN_INITIALRESPONSE", 
                               IMCLIENT_CONN_INITIALRESPONSE,
                               CONST_CS | CONST_PERSISTENT);
@@ -464,8 +464,7 @@
        ZEND_FETCH_RESOURCE(conn, php_cyrus *, z_conn, -1, le_cyrus_name, le_cyrus);
        convert_to_string_ex(query);
 
-       if (imclient_send(conn->client, NULL, NULL, Z_STRVAL_PP(query)) != 0) 
-               RETURN_FALSE;
+       imclient_send(conn->client, NULL, NULL, Z_STRVAL_PP(query));

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-24 04:25 UTC] hps at intermeta dot de
That one is already fixed in the CVS. Please forget this
report. :-) 
 [2001-12-24 04:26 UTC] hps at intermeta dot de
Closed the bug
 [2002-12-09 10:13 UTC] koce at gmx dot net
I am running debian with apache 2 and cyrus-imapd.I am trying to compile php 4.2.3 with cyrus support and when I execute "make all" this is how far I get:

Making all in ctype
make[2]: Entering directory `/root/php-4.2.3/ext/ctype'
make[3]: Entering directory `/root/php-4.2.3/ext/ctype'
/bin/sh /root/php-4.2.3/libtool --silent --mode=compile gcc  -I. -I/root/php-4.2.3/ext/ctype -I/root/php-4.2.3/main -I/root/php-4.2.3 -I/usr/local/apache/include -I/root/php-4.2.3/Zend -I/usr/local/include -I/usr/local/gettext/include -I/usr/local/mysql/include/mysql -I/root/php-4.2.3/ext/xml/expat  -D_REENTRANT -I/root/php-4.2.3/TSRM -g -O2 -pthread -DZTS -prefer-pic  -c ctype.c
/bin/sh /root/php-4.2.3/libtool --silent --mode=link gcc  -I. -I/root/php-4.2.3/ext/ctype -I/root/php-4.2.3/main -I/root/php-4.2.3 -I/usr/local/apache/include -I/root/php-4.2.3/Zend -I/usr/local/include -I/usr/local/gettext/include -I/usr/local/mysql/include/mysql -I/root/php-4.2.3/ext/xml/expat  -D_REENTRANT -I/root/php-4.2.3/TSRM -g -O2 -pthread -DZTS -prefer-pic   -o libctype.la  ctype.lo  
make[3]: Leaving directory `/root/php-4.2.3/ext/ctype'
make[2]: Leaving directory `/root/php-4.2.3/ext/ctype'
Making all in cyrus
make[2]: Entering directory `/root/php-4.2.3/ext/cyrus'
make[3]: Entering directory `/root/php-4.2.3/ext/cyrus'
/bin/sh /root/php-4.2.3/libtool --silent --mode=compile gcc  -I. -I/root/php-4.2.3/ext/cyrus -I/root/php-4.2.3/main -I/root/php-4.2.3 -I/usr/local/apache/include -I/root/php-4.2.3/Zend -I/usr/local/include -I/usr/local/gettext/include -I/usr/local/mysql/include/mysql -I/root/php-4.2.3/ext/xml/expat  -D_REENTRANT -I/root/php-4.2.3/TSRM -g -O2 -pthread -DZTS -prefer-pic  -c cyrus.c
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[3]: Leaving directory `/root/php-4.2.3/ext/cyrus'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/php-4.2.3/ext/cyrus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.2.3/ext'
make: *** [all-recursive] Error 1


Any ideas how to get over this problem?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC