php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59316 Couldn't compile pecl extension under PHP 5.3
Submitted: 2010-07-18 07:54 UTC Modified: 2010-08-19 16:39 UTC
From: rauan1987 at gmail dot com Assigned:
Status: Closed Package: amqp (PECL)
PHP Version: 5.3.2 OS: centos 5.4
Private report: No CVE-ID: None
 [2010-07-18 07:54 UTC] rauan1987 at gmail dot com
Description:
------------
Couldn't compile pecl extension under PHP 5.3.

# make
/bin/sh /root/install/amqp-0.1.0/libtool --mode=compile cc  -I. -I/root/install/amqp-0.1.0 -DPHP_ATOM_INC -I/root/install/amqp-0.1.0/include -I/root/install/amqp-0.1.0/main -I/root/install/amqp-0.1.0 -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /root/install/amqp-0.1.0/amqp.c -o amqp.lo 
mkdir .libs
 cc -I. -I/root/install/amqp-0.1.0 -DPHP_ATOM_INC -I/root/install/amqp-0.1.0/include -I/root/install/amqp-0.1.0/main -I/root/install/amqp-0.1.0 -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/install/amqp-0.1.0/amqp.c  -fPIC -DPIC -o .libs/amqp.o
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_class___construct':
/root/install/amqp-0.1.0/amqp.c:313: warning: 'php_std_error_handling' is deprecated (declared at /usr/local/php5/include/php/main/php.h:295)
/root/install/amqp-0.1.0/amqp.c:316: warning: 'php_std_error_handling' is deprecated (declared at /usr/local/php5/include/php/main/php.h:295)
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_class_isConnected':
/root/install/amqp-0.1.0/amqp.c:449: warning: 'php_std_error_handling' is deprecated (declared at /usr/local/php5/include/php/main/php.h:295)
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_queue_class___construct':
/root/install/amqp-0.1.0/amqp.c:486: warning: 'php_std_error_handling' is deprecated (declared at /usr/local/php5/include/php/main/php.h:295)
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_queue_class_delete':
/root/install/amqp-0.1.0/amqp.c:632: error: 'amqp_queue_delete_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c:639: error: 'amqp_queue_delete_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_queue_class_purge':
/root/install/amqp-0.1.0/amqp.c:703: error: 'amqp_queue_purge_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c:708: error: 'amqp_queue_purge_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_queue_class_bind':
/root/install/amqp-0.1.0/amqp.c:776: error: 'amqp_queue_bind_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_queue_class_unbind':
/root/install/amqp-0.1.0/amqp.c:847: error: 'amqp_queue_unbind_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_queue_class_consume':
/root/install/amqp-0.1.0/amqp.c:918: error: 'amqp_basic_consume_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_queue_class_get':
/root/install/amqp-0.1.0/amqp.c:1063: error: 'amqp_basic_get_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_exchange_class___construct':
/root/install/amqp-0.1.0/amqp.c:1405: warning: 'php_std_error_handling' is deprecated (declared at /usr/local/php5/include/php/main/php.h:295)
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_exchange_class_delete':
/root/install/amqp-0.1.0/amqp.c:1543: error: 'amqp_exchange_delete_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c:1549: error: 'amqp_exchange_delete_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'zim_amqp_exchange_class_bind':
/root/install/amqp-0.1.0/amqp.c:1795: error: 'amqp_queue_bind_t' has no member named 'ticket'
/root/install/amqp-0.1.0/amqp.c: In function 'amqp_dtor':
/root/install/amqp-0.1.0/amqp.c:1840: warning: initialization makes integer from pointer without a cast
/root/install/amqp-0.1.0/amqp.c:1857: warning: passing argument 2 of 'signal' makes pointer from integer without a cast
make: *** [amqp.lo] Error 1


Reproduce code:
---------------
wget http://pecl.php.net/get/amqp-0.1.0.tgz
tar zxvf amqp-0.1.0.tgz
cd amqp-0.1.0
phpize
./configure
make


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-12 13:51 UTC] chibisuke at web dot de
Make sure you installed latest rabbitmq-c libs. (see documentation: http://de2.php.net/manual/de/amqp.installation.php)

Also it seems the API got changed a bit. 
In line 252
replace
x.library_errno
with
x.library_error
 [2010-08-19 16:39 UTC] pdezwart at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/amqp

Updated to work with:
http://hg.rabbitmq.com/rabbitmq-c/rev/3c549bb09c16
and
http://hg.rabbitmq.com/rabbitmq-codegen/rev/f8b34141e6cb
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 16 03:01:23 2021 UTC