php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63296 Compile fail on enable-maintainer-zts
Submitted: 2012-10-17 03:55 UTC Modified: 2012-11-14 03:28 UTC
From: wilkenxu at gmail dot com Assigned:
Status: Closed Package: amqp (PECL)
PHP Version: 5.4.7 OS: CentOS 5.4 X86_64
Private report: No CVE-ID: None
 [2012-10-17 03:55 UTC] wilkenxu at gmail dot com
Description:
------------
PECL amqp-1.0.7 under PHP-5.4.7 with NOZTS, compile OK,
But under PHP-5.4.7 with ZTS(--enable-maintainer-zts), compile fail.

rabbitmq-c download from git clone git://github.com/alanxz/rabbitmq-c.git, it's 
latest.

compile rabbitmq-c use python-2.6 and cmake.

Test script:
---------------
* PHP-5.4.7 (OK)
$ ./configure --prefix=/usr/local/phpzts --enable-maintainer-zts
$ make
$ make install

* rabbitmq-c (OK) (use python-2.6)
$ git clone git://github.com/alanxz/rabbitmq-c.git
$ cd rabbitmq-c
$ git submodule init
$ git submodule update
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/rabbitmq -DPYTHON_EXECUTABLE=/usr/bin/python26 ../
$ make
$ make install

* PECL amqp-1.0.7 (fail)
$ tar zxf amqp-1.0.7.tgz
$ cd amqp-1.0.7
$ /usr/local/phpzts/bin/phpize
$ ./configure --with-php-config=/usr/local/phpzts/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local/rabbitmq
$ make (fail)


Expected result:
----------------
make PECL amqp-1.0.7 OK.

Actual result:
--------------
$ tar zxf amqp-1.0.7.tgz
$ cd amqp-1.0.7
$ /usr/local/phpzts/bin/phpize
$ ./configure --with-php-config=/usr/local/phpzts/bin/php-config --with-amqp --
with-librabbitmq-dir=/usr/local/rabbitmq
$ make
/bin/sh /home/xtg/build/make/tarball/pecl/amqp-1.0.7/libtool --mode=compile cc  
-I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -
DPHP_ATOM_INC -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -
I/usr/local/phpzts/include/php/TSRM -I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -
I/usr/local/phpzts/include/php/ext/date/lib -I/usr/local/rabbitmq/include  -
DHAVE_CONFIG_H  -g -O2   -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp.c -o amqp.lo 
mkdir .libs
 cc -I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -DPHP_ATOM_INC -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -I/usr/local/phpzts/include/php/TSRM -
I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -I/usr/local/phpzts/include/php/ext/date/lib 
-I/usr/local/rabbitmq/include -DHAVE_CONFIG_H -g -O2 -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp.c  -fPIC -DPIC -o .libs/amqp.o
/bin/sh /home/xtg/build/make/tarball/pecl/amqp-1.0.7/libtool --mode=compile cc  
-I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -
DPHP_ATOM_INC -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -
I/usr/local/phpzts/include/php/TSRM -I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -
I/usr/local/phpzts/include/php/ext/date/lib -I/usr/local/rabbitmq/include  -
DHAVE_CONFIG_H  -g -O2   -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_exchange.c -o amqp_exchange.lo 
 cc -I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -DPHP_ATOM_INC -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -I/usr/local/phpzts/include/php/TSRM -
I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -I/usr/local/phpzts/include/php/ext/date/lib 
-I/usr/local/rabbitmq/include -DHAVE_CONFIG_H -g -O2 -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_exchange.c  -fPIC -DPIC -o 
.libs/amqp_exchange.o
/bin/sh /home/xtg/build/make/tarball/pecl/amqp-1.0.7/libtool --mode=compile cc  
-I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -
DPHP_ATOM_INC -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -
I/usr/local/phpzts/include/php/TSRM -I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -
I/usr/local/phpzts/include/php/ext/date/lib -I/usr/local/rabbitmq/include  -
DHAVE_CONFIG_H  -g -O2   -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_queue.c -o amqp_queue.lo 
 cc -I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -DPHP_ATOM_INC -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -I/usr/local/phpzts/include/php/TSRM -
I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -I/usr/local/phpzts/include/php/ext/date/lib 
-I/usr/local/rabbitmq/include -DHAVE_CONFIG_H -g -O2 -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_queue.c  -fPIC -DPIC -o 
.libs/amqp_queue.o
/bin/sh /home/xtg/build/make/tarball/pecl/amqp-1.0.7/libtool --mode=compile cc  
-I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -
DPHP_ATOM_INC -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -
I/usr/local/phpzts/include/php/TSRM -I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -
I/usr/local/phpzts/include/php/ext/date/lib -I/usr/local/rabbitmq/include  -
DHAVE_CONFIG_H  -g -O2   -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_connection.c -o 
amqp_connection.lo 
 cc -I. -I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -DPHP_ATOM_INC -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/include -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7/main -
I/home/xtg/build/make/tarball/pecl/amqp-1.0.7 -I/usr/local/phpzts/include/php -
I/usr/local/phpzts/include/php/main -I/usr/local/phpzts/include/php/TSRM -
I/usr/local/phpzts/include/php/Zend -
I/usr/local/phpzts/include/php/ext -I/usr/local/phpzts/include/php/ext/date/lib 
-I/usr/local/rabbitmq/include -DHAVE_CONFIG_H -g -O2 -c 
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_connection.c  -fPIC -DPIC -o 
.libs/amqp_connection.o
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_connection.c: In function 
'zim_amqp_connection_class_pconnect':
/home/xtg/build/make/tarball/pecl/amqp-1.0.7/amqp_connection.c:542: error: too 
few arguments to function 'zend_list_insert'
make: *** [amqp_connection.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-14 00:48 UTC] bkw at codingforce dot com
v1.0.9 uses the new api for zend_list_insert on php-5.4. Could you give that 
version another try please?
 [2012-11-14 03:28 UTC] wilkenxu at gmail dot com
-Status: Open +Status: Closed
 [2012-11-14 03:28 UTC] wilkenxu at gmail dot com
v1.0.9 compiled successfully! Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC