Bug #15059 Updated: compile fails when I add cyrus support
| From: | sniper@php.net | Date: | Sun, 30 Jun 2002 05:40:07 +0000 |
| Subject: | Bug #15059 Updated: compile fails when I add cyrus support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12572@lists.php.net to get a copy of this message | ||
ID: 15059
Updated by: sniper@php.net
Reported By: shillier@cbnco.com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: SuSE Linux7.2 linux-2.4.9
PHP Version: 4.1.1
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-03-15 15:30:47] delouw@bigfoot.com
I have the same problme with 4.1.2, SuSE 7.3, cyrus 2.0.16
rgds
Luc
------------------------------------------------------------------------
[2002-02-24 07:11:53] tchurchward@terre.demon.co.uk
Using Version 4.1.1
On RH7.1
Configuration (without incident) like so:-
./configure --with-mysql=/usr/local/mysql
--with-apxs=/usr/local/apache/bin/apxs --with-cyrus --with-openssl
--with-imap-ssl --with-zlib
During execution of 'make' the following messages eventually lead to
failure...
Making all in cyrus
make[2]: Entering directory `/usr/local/src/php-4.1.1/ext/cyrus'
make[3]: Entering directory `/usr/local/src/php-4.1.1/ext/cyrus'
/bin/sh /usr/local/src/php/libtool --silent --mode=compile gcc -I.
-I/usr/local/src/php/ext/cyrus -I/usr/local/src/php/main -I/usr/
local/src/php -I/usr/local/apache/include -I/usr/local/src/php/Zend
-I/usr/local/include -I/usr/local/mysql/include/mysql -I/usr/loc
al/src/php/ext/xml/expat -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT
-I/usr/local/src/php/TSRM -g -O2 -prefer-pic -c cyrus.c
cyrus.c: In function `zm_startup_cyrus':
cyrus.c:88: `IMCLIENT_CONN_NOSYNCLITERAL' undeclared (first use in this
function)
cyrus.c:88: (Each undeclared identifier is reported only once
cyrus.c:88: for each function it appears in.)
cyrus.c:88: `CONST_CS_' undeclared (first use in this function)
cyrus.c: In function `zif_cyrus_authenticate':
cyrus.c:271: warning: assignment makes pointer from integer without a
cast
cyrus.c:275: warning: assignment makes pointer from integer without a
cast
cyrus.c:293: warning: comparison between pointer and integer
cyrus.c:302: warning: comparison between pointer and integer
cyrus.c: In function `zif_cyrus_query':
cyrus.c:467: void value not ignored as it ought to be
make[3]: *** [cyrus.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.1.1/ext/cyrus'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.1.1/ext/cyrus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.1.1/ext'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------
[2002-02-14 03:34:01] dave@bcs.co.nz
Its fixed by bug report 14671
------------------------------------------------------------------------
[2002-01-22 18:51:31] roland.felnhofer@chello.at
Hi, I had the same problem!
Here a patch I made who worked so far form me.
What does that mean?
I have absolutely NO C knowledge. Just by comparing the effected line
with similar lines in cyrus.c and other ext files I generated it.
SO I HAVE NO CLUE WHAT I DID !!! - but it compiled.
I haven't installed PHP4 so far and tested the cyrus part.
May be someone with solid C knowledge could check what I did and if
there is a far change that it works.
And here finally the patch:
--- cyrus.c.ori Wed Jan 23 00:10:48 2002
+++ cyrus.c Wed Jan 23 00:06:03 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cyrus.c,v 1.8 2001/12/11 15:28:59 sebastian Exp $ */
+/* $Id: cyrus.c,v 1.9 2002/01/22 23:34:50 sebastian Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -64,7 +64,7 @@
ZEND_GET_MODULE(cyrus)
#endif
-static void cyrus_free(zend_rsrc_list_entry *rsrc)
+static void cyrus_free(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
php_cyrus *conn = (php_cyrus *) rsrc->ptr;
@@ -297,7 +297,7 @@
}
/* Determine the minssf */
- if (argc > 4 && Z_TYPE_PP(z_minssf) != NULL) {
+ if (argc > 4 && Z_TYPE_PP(z_minssf) != IS_NULL) {
convert_to_long_ex(z_minssf);
minssf = Z_LVAL_PP(z_minssf);
}
@@ -306,7 +306,7 @@
}
/* Determine the maxssf */
- if (argc > 5 && Z_TYPE_PP(z_maxssf) != NULL) {
+ if (argc > 5 && Z_TYPE_PP(z_maxssf) != IS_NULL) {
convert_to_long_ex(z_maxssf);
maxssf = Z_LVAL_PP(z_maxssf);
}
@@ -357,7 +357,7 @@
argv[3] = &msgno;
if (call_user_function_ex(EG(function_table), NULL,
callback->function,
- &retval, 4, argv, 0, NULL) ==
FAILURE) {
+ &retval, 4, argv, 0, NULL TSRMLS_CC)
== FAILURE) {
php_error(E_WARNING, "Couldn't call the %s
handler",
callback->trigger);
}
------------------------------------------------------------------------
[2002-01-22 18:51:16] roland.felnhofer@chello.at
Hi, I had the same problem!
Here a patch I made who worked so far form me.
What does that mean?
I have absolutely NO C knowledge. Just by comparing the effected line
with similar lines in cyrus.c and other ext files I generated it.
SO I HAVE NO CLUE WHAT I DID !!! - but it compiled.
I haven't installed PHP4 so far and tested the cyrus part.
May be someone with solid C knowledge could check what I did and if
there is a far change that it works.
And here finally the patch:
--- cyrus.c.ori Wed Jan 23 00:10:48 2002
+++ cyrus.c Wed Jan 23 00:06:03 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cyrus.c,v 1.8 2001/12/11 15:28:59 sebastian Exp $ */
+/* $Id: cyrus.c,v 1.9 2002/01/22 23:34:50 sebastian Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -64,7 +64,7 @@
ZEND_GET_MODULE(cyrus)
#endif
-static void cyrus_free(zend_rsrc_list_entry *rsrc)
+static void cyrus_free(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
php_cyrus *conn = (php_cyrus *) rsrc->ptr;
@@ -297,7 +297,7 @@
}
/* Determine the minssf */
- if (argc > 4 && Z_TYPE_PP(z_minssf) != NULL) {
+ if (argc > 4 && Z_TYPE_PP(z_minssf) != IS_NULL) {
convert_to_long_ex(z_minssf);
minssf = Z_LVAL_PP(z_minssf);
}
@@ -306,7 +306,7 @@
}
/* Determine the maxssf */
- if (argc > 5 && Z_TYPE_PP(z_maxssf) != NULL) {
+ if (argc > 5 && Z_TYPE_PP(z_maxssf) != IS_NULL) {
convert_to_long_ex(z_maxssf);
maxssf = Z_LVAL_PP(z_maxssf);
}
@@ -357,7 +357,7 @@
argv[3] = &msgno;
if (call_user_function_ex(EG(function_table), NULL,
callback->function,
- &retval, 4, argv, 0, NULL) ==
FAILURE) {
+ &retval, 4, argv, 0, NULL TSRMLS_CC)
== FAILURE) {
php_error(E_WARNING, "Couldn't call the %s
handler",
callback->trigger);
}
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15059
--
Edit this bug report at http://bugs.php.net/?id=15059&edit=1