ID:               15059
 Updated by:       [EMAIL PROTECTED]
-Reported By:      [EMAIL PROTECTED]
+Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         *Compile Issues
 Operating System: SuSE Linux7.2 linux-2.4.9
 PHP Version:      4.1.1
 New Comment:

Its fixed by bug report 14671


Previous Comments:
------------------------------------------------------------------------

[2002-01-22 18:51:31] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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-15 17:18:27] [EMAIL PROTECTED]

Hi,

Vanilla php-4.1.1 src tree,

here's my command sequence:

# ./configure --with-zlib --enable-calendar --with-mcal=/usr 
--with-pgsql --enable-trans-sid --enable-sysvshm --with-xml
--with-imap-ssl --with-imap --with-cyrus=/usr/cyrus

<configure script runs fine, with no errors>

# make all

Output:

<...snip>

Making all in cyrus
make[2]: Entering directory `/tmp/php-4.1.1/ext/cyrus'
make[3]: Entering directory `/tmp/php-4.1.1/ext/cyrus'
gcc -I. -I/tmp/php-4.1.1/ext/cyrus -I/tmp/php-4.1.1/main
-I/tmp/php-4.1.1 -I/tmp/php-4.1.1/Zend -I/usr/include/imap
-I/usr/include/mcal -I/tmp/php-4.1.1/ext/mysql/libmysql
-I/tmp/php-4.1.1/ext/xml/expat  -I/tmp/php-4.1.1/TSRM -g -O2  -c
cyrus.c && touch cyrus.lo
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 `/tmp/php-4.1.1/ext/cyrus'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/php-4.1.1/ext/cyrus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/php-4.1.1/ext'
make: *** [all-recursive] Error 1

</snip...>

And that's after I corrected a type-o on line 89 and 90 of
$builddir/ext/cyrus/cyrus.c
This type-o also prevented a successful compile. I'm curious why I
can't get this thing to work. What's broken? I've looked at the source
code on the lines indicated but I can't find anything wrong. Can
someone please help?


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15059&edit=1

Reply via email to