php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61510 Compilation failed
Submitted: 2012-03-26 13:23 UTC Modified: 2012-05-19 04:26 UTC
Votes:5
Avg. Score:4.2 ± 1.0
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:2 (40.0%)
From: samuel dot hassine at anotherservice dot com Assigned: pdezwart (profile)
Status: Closed Package: amqp (PECL)
PHP Version: 5.4.0 OS: Debian testing
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: samuel dot hassine at anotherservice dot com
New email:
PHP Version: OS:

 

 [2012-03-26 13:23 UTC] samuel dot hassine at anotherservice dot com
Description:
------------
Hi,

On pecl install amqp, configure worked well, but make failed on:

libtool: compile:  cc -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -
I/tmp/pear/temp/pear-build-rootXf4HuG/amqp-1.0.1/include -I/tmp/pear/temp/pear-
build-rootXf4HuG/amqp-1.0.1/main -I/tmp/pear/temp/amqp -I/usr/include/php5 -
I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -
I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -
DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/amqp/amqp_connection.c  -fPIC -DPIC -o 
.libs/amqp_connection.o
/tmp/pear/temp/amqp/amqp_connection.c: In function 
'zim_amqp_connection_class_pconnect':
/tmp/pear/temp/amqp/amqp_connection.c:515:5: error: unknown type name 
'list_entry'
/tmp/pear/temp/amqp/amqp_connection.c:533:39: error: request for member 'ptr' in 
something not a structure or union
/tmp/pear/temp/amqp/amqp_connection.c:546:11: error: request for member 'ptr' in 
something not a structure or union
/tmp/pear/temp/amqp/amqp_connection.c:547:11: error: request for member 'type' 
in something not a structure or union
/tmp/pear/temp/amqp/amqp_connection.c:548:5: error: 'list_entry' undeclared 
(first use in this function)
/tmp/pear/temp/amqp/amqp_connection.c:548:5: note: each undeclared identifier is 
reported only once for each function it appears in
make: *** [amqp_connection.lo] Error 1
ERROR: `make' failed

Best regards.

Expected result:
----------------
I expected the success of the compilation.

Actual result:
--------------
libtool: compile:  cc -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC -
I/tmp/pear/temp/pear-build-rootXf4HuG/amqp-1.0.1/include -I/tmp/pear/temp/pear-
build-rootXf4HuG/amqp-1.0.1/main -I/tmp/pear/temp/amqp -I/usr/include/php5 -
I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -
I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -
DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/amqp/amqp_connection.c  -fPIC -DPIC -o 
.libs/amqp_connection.o
/tmp/pear/temp/amqp/amqp_connection.c: In function 
'zim_amqp_connection_class_pconnect':
/tmp/pear/temp/amqp/amqp_connection.c:515:5: error: unknown type name 
'list_entry'
/tmp/pear/temp/amqp/amqp_connection.c:533:39: error: request for member 'ptr' in 
something not a structure or union
/tmp/pear/temp/amqp/amqp_connection.c:546:11: error: request for member 'ptr' in 
something not a structure or union
/tmp/pear/temp/amqp/amqp_connection.c:547:11: error: request for member 'type' 
in something not a structure or union
/tmp/pear/temp/amqp/amqp_connection.c:548:5: error: 'list_entry' undeclared 
(first use in this function)
/tmp/pear/temp/amqp/amqp_connection.c:548:5: note: each undeclared identifier is 
reported only once for each function it appears in
make: *** [amqp_connection.lo] Error 1
ERROR: `make' failed

Patches

patch_amqp_connection_php5.4.patch (last revision 2012-05-16 14:21 UTC by jabi at irontec dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-29 20:02 UTC] samuel dot hassine at anotherservice dot com
Linked to bug: https://bugs.php.net/bug.php?id=61301
 [2012-05-16 15:08 UTC] jabi at irontec dot com
As seen here [1]: 

 =>  list_entry is now zend_rsrc_list_entry

apply patch for PHP 5.4 and should compile perfectly



[1] https://bugs.php.net/bug.php?id=61269&edit=3
 [2012-05-19 04:26 UTC] pdezwart@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Thanks for the bug and the path. Part of 1.0.3 release.
 [2012-05-19 04:26 UTC] pdezwart@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pdezwart
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 03:01:35 2025 UTC