php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57456 Compile Error
Submitted: 2006-12-25 06:19 UTC Modified: 2008-03-02 11:49 UTC
From: soenke at ruempler dot eu Assigned: pajoye (profile)
Status: Closed Package: spread (PECL)
PHP Version: 5.2.0 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: soenke at ruempler dot eu
New email:
PHP Version: OS:

 

 [2006-12-25 06:19 UTC] soenke at ruempler dot eu
Description:
------------
Tried to compile spread with PHP 5.2. I patched it to get it work:

Index: php_spread.c
===================================================================
RCS file: /repository/pecl/spread/php_spread.c,v
retrieving revision 1.17
diff -u -r1.17 php_spread.c
--- php_spread.c        8 May 2006 14:01:55 -0000       1.17
+++ php_spread.c        25 Dec 2006 11:18:21 -0000
@@ -118,10 +118,10 @@

 /* {{{ spread_class_functions */
 static zend_function_entry spread_class_functions[] = {
-       PHP_ME_MAPPING(connect,         spread_connect,         NULL)
-       PHP_ME_MAPPING(disconnect,      spread_disconnect,      NULL)
-       PHP_ME_MAPPING(join,            spread_join,            NULL)
-       PHP_ME_MAPPING(receive,         spread_receive,         NULL)
+       PHP_ME_MAPPING(connect,         spread_connect,         NULL, 0)
+       PHP_ME_MAPPING(disconnect,      spread_disconnect,      NULL, 0)
+       PHP_ME_MAPPING(join,            spread_join,            NULL, 0)
+       PHP_ME_MAPPING(receive,         spread_receive,         NULL, 0)
        {NULL, NULL, NULL}
 };
 /* }}} */




Reproduce code:
---------------
# make ;)

Expected result:
----------------
Compile ...

Actual result:
--------------
/bin/sh /usr/src/pecl/spread/libtool --mode=compile gcc  -I. -I/usr/src/pecl/spread -DPHP_ATOM_INC -I/usr/src/pecl/spread/include -I/usr/src/pecl/spread/main -I/usr/src/pecl/spread -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/pecl/spread/php_spread.c -o php_spread.lo
 gcc -I. -I/usr/src/pecl/spread -DPHP_ATOM_INC -I/usr/src/pecl/spread/include -I/usr/src/pecl/spread/main -I/usr/src/pecl/spread -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /usr/src/pecl/spread/php_spread.c  -fPIC -DPIC -o .libs/php_spread.o
/usr/src/pecl/spread/php_spread.c:121:48: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/usr/src/pecl/spread/php_spread.c:122:52: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/usr/src/pecl/spread/php_spread.c:121: error: 'ZEND_ME_MAPPING' undeclared here (not in a function)
/usr/src/pecl/spread/php_spread.c:122: error: expected '}' before 'ZEND_ME_MAPPING'
/usr/src/pecl/spread/php_spread.c:123:42: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/usr/src/pecl/spread/php_spread.c:124:48: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/usr/src/pecl/spread/php_spread.c: In function '_connect':
/usr/src/pecl/spread/php_spread.c:308: warning: passing argument 1 of 'php_error_docref0' makes pointer from integer without a cast
/usr/src/pecl/spread/php_spread.c:308: warning: passing argument 2 of 'php_error_docref0' makes integer from pointer without a cast
/usr/src/pecl/spread/php_spread.c: In function 'zif_spread_receive':
/usr/src/pecl/spread/php_spread.c:724: warning: passing argument 6 of 'SP_receive' from incompatible pointer type


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-25 06:20 UTC] soenke at ruempler dot eu
Changed PHP version (as 5.2.0 was not in the select field).
 [2007-05-07 09:22 UTC] pierre dot php at gmail dot com
As discussed on IRC, I will add a #ifdef for 5.2+ and commit it later this week, hopefully :)
 [2008-03-02 11:49 UTC] rrichards@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 11 07:01:30 2024 UTC