#14671 [Com]: cyrus module does not compile at all?

From: Date: Mon, 09 Dec 2002 16:13:04 +0000
Subject: #14671 [Com]: cyrus module does not compile at all?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27196@lists.php.net to get a copy of this message
ID: 14671 Comment by: koce@gmx.net Reported By: hps@intermeta.de Status: Closed Bug Type: Compile Failure Operating System: RedHat Linux 6.2 PHP Version: 4.1.0 New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [2001-12-24 04:26:05] hps@intermeta.de Closed the bug ------------------------------------------------------------------------ [2001-12-24 04:25:41] hps@intermeta.de That one is already fixed in the CVS. Please forget this report. :-) ------------------------------------------------------------------------ [2001-12-23 08:50:19] hps@intermeta.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)); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14671&edit=1

« previous php.bugs (#27196) next »