Edit report at https://bugs.php.net/bug.php?id=59817&edit=1
ID: 59817 Comment by: keithk at zoosk dot com Reported by: hlopetz at gmail dot com Summary: can't install/compile 0.3.0 over 0.2.2 Status: Closed Type: Bug Package: amqp Operating System: 2.6.18-194.26.1.el5 x86_64 Linux PHP Version: 5.2.17 Assigned To: pdezwart Block user comment: N Private report: N New Comment: We are seeing the same compilation errors with our version of PHP. We are using 5.2.4. The requirement listed for this PHP extension is "PHP Version: PHP 4.3.0 or newer" I think the requirement should be updated to reflect current PHP support, or the code should be altered to support older versions of PHP. Previous Comments: ------------------------------------------------------------------------ [2011-10-10 05:33:49] pdezw...@php.net Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Try a newer version of the library along with a newer version of the rabbitmq-c client library. ------------------------------------------------------------------------ [2011-06-16 05:02:34] hlopetz at gmail dot com Description: ------------ guys, i already have amqp 0.2.2 installed and tried to update PECL package via `pecl upgrade amqp` but got compilation error. unfortunately, i can't uninstall previous extension version there. would you mind to deal with that error? btw, i've tried to install from SVN, but got the same result: Reproduce code: --------------- $ sudo pecl install -s package2.xml or $ sudo pecl upgrade amqp Actual result: -------------- $ sudo pecl install package2.xml Skipping package "pecl/amqp", already installed as version 0.2.2 No valid packages found install failed $ sudo pecl install -s package2.xml 9 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 building in /tmp/pear/temp/pear-build-rootnL9MNu/amqp-0.3.0 running: /tmp/pear/temp/amqp/configure checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking target system type... x86_64-redhat-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -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 checking for PHP extension directory... /usr/lib64/php/modules checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for amqp support... yes, shared checking for amqp files in default path... found in /usr/local checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool appending configuration tag "F77" to libtool configure: creating ./config.status config.status: creating config.h running: make /bin/sh /tmp/pear/temp/pear-build-rootnL9MNu/amqp- 0.3.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/amqp - DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootnL9MNu/amqp- 0.3.0/include -I/tmp/pear/temp/pear-build-rootnL9MNu/amqp- 0.3.0/main -I/tmp/pear/temp/amqp -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 /tmp/pear/temp/amqp/amqp.c -o amqp.lo mkdir .libs cc -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC - I/tmp/pear/temp/pear-build-rootnL9MNu/amqp-0.3.0/include - I/tmp/pear/temp/pear-build-rootnL9MNu/amqp-0.3.0/main - I/tmp/pear/temp/amqp -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 /tmp/pear/temp/amqp/amqp.c -fPIC - DPIC -o .libs/amqp.o /bin/sh /tmp/pear/temp/pear-build-rootnL9MNu/amqp- 0.3.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/amqp - DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootnL9MNu/amqp- 0.3.0/include -I/tmp/pear/temp/pear-build-rootnL9MNu/amqp- 0.3.0/main -I/tmp/pear/temp/amqp -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 /tmp/pear/temp/amqp/amqp_exchange.c -o amqp_exchange.lo cc -I. -I/tmp/pear/temp/amqp -DPHP_ATOM_INC - I/tmp/pear/temp/pear-build-rootnL9MNu/amqp-0.3.0/include - I/tmp/pear/temp/pear-build-rootnL9MNu/amqp-0.3.0/main - I/tmp/pear/temp/amqp -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 /tmp/pear/temp/amqp/amqp_exchange.c -fPIC -DPIC -o .libs/amqp_exchange.o /tmp/pear/temp/amqp/amqp_exchange.c: In function 'zim_amqp_exchange_class___construct': /tmp/pear/temp/amqp/amqp_exchange.c:85: error: 'zend_error_handling' undeclared (first use in this function) /tmp/pear/temp/amqp/amqp_exchange.c:85: error: (Each undeclared identifier is reported only once /tmp/pear/temp/amqp/amqp_exchange.c:85: error: for each function it appears in.) /tmp/pear/temp/amqp/amqp_exchange.c:85: error: expected ';' before 'error_handling' /tmp/pear/temp/amqp/amqp_exchange.c:92: error: 'error_handling' undeclared (first use in this function) make: *** [amqp_exchange.lo] Error 1 ERROR: `make' failed $ svn info Path: . URL: http://svn.php.net/repository/pecl/amqp/trunk Repository Root: http://svn.php.net/repository Repository UUID: c90b9560-bf6c-de11-be94-00142212c4b1 Revision: 312202 Node Kind: directory Schedule: normal Last Changed Author: jtansavatdi Last Changed Rev: 312161 Last Changed Date: 2011-06-14 11:47:22 -0700 (Tue, 14 Jun 2011) $ uname -a Linux some.host.com 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=59817&edit=1