php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61301 Doesn't compile
Submitted: 2012-03-06 13:36 UTC Modified: 2015-01-25 04:22 UTC
Votes:11
Avg. Score:4.5 ± 0.9
Reproduced:9 of 9 (100.0%)
Same Version:8 (88.9%)
Same OS:3 (33.3%)
From: webivan at ya dot ru Assigned:
Status: No Feedback Package: amqp (PECL)
PHP Version: 5.4.0 OS: Debian 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
33 + 30 = ?
Subscribe to this entry?

 
 [2012-03-06 13:36 UTC] webivan at ya dot ru
Description:
------------
Installing PECL under PHP 5.4 causes a compilation error.

Test script:
---------------
hg clone http://hg.rabbitmq.com/rabbitmq-c
cd rabbitmq-c
hg clone http://hg.rabbitmq.com/rabbitmq-codegen codegen
autoreconf -i && ./configure && make && sudo make install
pecl install amqp

OR

hg clone http://hg.rabbitmq.com/rabbitmq-c
cd rabbitmq-c
hg clone http://hg.rabbitmq.com/rabbitmq-codegen codegen
autoreconf -i && ./configure && make && sudo make install
cd ..
svn co http://svn.php.net/repository/pecl/amqp/trunk/ amqp
cd amqp
phpize && ./configure && make && sudo make install

Actual result:
--------------
/tmp/pear/temp/amqp/amqp_queue.c: In function ‘read_message_from_channel’:
/tmp/pear/temp/amqp/amqp_queue.c:156: error: ‘tsrm_ls’ undeclared (first use in this function)
/tmp/pear/temp/amqp/amqp_queue.c:156: error: (Each undeclared identifier is reported only once
/tmp/pear/temp/amqp/amqp_queue.c:156: error: for each function it appears in.)
make: *** [amqp_queue.lo] Error 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-12 09:08 UTC] dgs5dfg5 at gmail dot com
you may add a statement after function declare like this:

int read_message_from_channel(amqp_connection_state_t connection, zval *envelopeZval ) {
	TSRMLS_FETCH();
 [2012-11-14 02:02 UTC] bkw at codingforce dot com
Is this still happening with the new 1.0.9 version? We have successful reports on 
php-5.4 from travis now:
https://travis-ci.org/pdezwart/php-amqp/jobs/3175107
 [2015-01-11 16:14 UTC] danack@php.net
-Status: Open +Status: Feedback
 [2015-01-11 16:14 UTC] danack@php.net
Hi,

pdezwart/php-amqp is under Travis-ci which is not showing any issues.

Please give feedback if you think this is still an issue.
 [2015-01-25 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jun 20 23:01:23 2021 UTC