php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59607 Doesn't compile under PHP 4.4
Submitted: 2011-02-03 17:47 UTC Modified: 2012-08-26 02:53 UTC
From: vote dot morepork at gmail dot com Assigned:
Status: Wont fix Package: amqp (PECL)
PHP Version: Irrelevant OS: Debian GNU/Linux
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 + 44 = ?
Subscribe to this entry?

 
 [2011-02-03 17:47 UTC] vote dot morepork at gmail dot com
Description:
------------
Installing PECL under PHP 4.4 (package page states 4.3 or newer) causes a compilation error.

Reproduce code:
---------------
pecl install "channel://pecl.php.net/amqp-0.2.2"

Expected result:
----------------
Install should complete successfully.

Actual result:
--------------
$  pecl install "channel://pecl.php.net/amqp-0.2.2"
[...]
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/TSRM -I/usr/include/php4/Zend
checking for PHP extension directory... /usr/lib/php4/20050606
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... mawk
/tmp/pear/cache/amqp-0.2.2/configure: line 3608: amqp: command not found
checking for amqp support... yes, shared
checking for amqp files in default path...
test /usr/local/include/amqp_framing.h
found in /usr/local
[...]
running: make
/bin/sh /var/tmp/pear-build-root/amqp-0.2.2/libtool --mode=compile gcc  -I. -I/tmp/pear/cache/amqp-0.2.2 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/amqp-0.2.2/include -I/var/tmp/pear-build-root/amqp-0.2.2/main -I/tmp/pear/cache/amqp-0.2.2 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/TSRM -I/usr/include/php4/Zend -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/cache/amqp-0.2.2/amqp.c -o amqp.lo
mkdir .libs
 gcc -I. -I/tmp/pear/cache/amqp-0.2.2 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/amqp-0.2.2/include -I/var/tmp/pear-build-root/amqp-0.2.2/main -I/tmp/pear/cache/amqp-0.2.2 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/TSRM -I/usr/include/php4/Zend -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/cache/amqp-0.2.2/amqp.c  -fPIC -DPIC -o .libs/amqp.o
/tmp/pear/cache/amqp-0.2.2/amqp.c:35:29: error: zend_exceptions.h: No such file or directory
In file included from /tmp/pear/cache/amqp-0.2.2/amqp.c:43:
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'amqp_ctor'
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:35: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:35: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:36: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:36: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:37: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:37: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:38: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:38: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:39: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:39: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:40: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:40: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:41: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:41: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:42: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:42: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:43: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:43: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:44: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_connection.h:44: warning: parameter names (without types) in function declaration
In file included from /tmp/pear/cache/amqp-0.2.2/amqp.c:44:
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'amqp_queue_ctor'
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:31: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:31: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:32: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:32: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:33: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:33: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:34: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:34: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:35: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:35: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:36: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:36: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:37: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:37: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:38: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:38: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:39: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:39: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:40: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_queue.h:40: warning: parameter names (without types) in function declaration
In file included from /tmp/pear/cache/amqp-0.2.2/amqp.c:45:
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'amqp_exchange_ctor'
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:31: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:31: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:32: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:32: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:33: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:33: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:34: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:34: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:35: warning: data definition has no type or storage class
/tmp/pear/cache/amqp-0.2.2/amqp_exchange.h:35: warning: parameter names (without types) in function declaration
/tmp/pear/cache/amqp-0.2.2/amqp.c:60: error: expected ')' before numeric constant
/tmp/pear/cache/amqp-0.2.2/amqp.c:188: error: 'amqp_queue_class' undeclared here (not in a function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:188: error: '__construct' undeclared here (not in a function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:188: error: 'arginfo_amqp_queue_class__construct' undeclared here (not in a function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:188: error: 'ZEND_ACC_PUBLIC' undeclared here (not in a function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:189: error: initializer element is not constant
/tmp/pear/cache/amqp-0.2.2/amqp.c:189: error: (near initialization for 'amqp_queue_class_functions[0].fname')
/tmp/pear/cache/amqp-0.2.2/amqp.c:189: error: expected '}' before 'PHP_ME'
/tmp/pear/cache/amqp-0.2.2/amqp.c:203: error: 'amqp_exchange_class' undeclared here (not in a function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:203: error: 'arginfo_amqp_exchange_class__construct' undeclared here (not in a function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:204: error: initializer element is not constant
/tmp/pear/cache/amqp-0.2.2/amqp.c:204: error: (near initialization for 'amqp_exchange_class_functions[0].fname')
/tmp/pear/cache/amqp-0.2.2/amqp.c:204: error: expected '}' before 'PHP_ME'
/tmp/pear/cache/amqp-0.2.2/amqp.c: In function 'amqp_error':
/tmp/pear/cache/amqp-0.2.2/amqp.c:255: error: 'amqp_rpc_reply_t' has no member named 'library_error'
/tmp/pear/cache/amqp-0.2.2/amqp.c: In function 'zm_startup_amqp':
/tmp/pear/cache/amqp-0.2.2/amqp.c:303: error: 'amqp_connection_class_functions' undeclared (first use in this function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:303: error: (Each undeclared identifier is reported only once
/tmp/pear/cache/amqp-0.2.2/amqp.c:303: error: for each function it appears in.)
/tmp/pear/cache/amqp-0.2.2/amqp.c:303: warning: assignment from incompatible pointer type
/tmp/pear/cache/amqp-0.2.2/amqp.c:304: error: 'zend_class_entry' has no member named 'create_object'
/tmp/pear/cache/amqp-0.2.2/amqp.c:304: error: 'amqp_ctor' undeclared (first use in this function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:308: error: 'zend_class_entry' has no member named 'create_object'
/tmp/pear/cache/amqp-0.2.2/amqp.c:308: error: 'amqp_queue_ctor' undeclared (first use in this function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:312: error: 'zend_class_entry' has no member named 'create_object'
/tmp/pear/cache/amqp-0.2.2/amqp.c:312: error: 'amqp_exchange_ctor' undeclared (first use in this function)
/tmp/pear/cache/amqp-0.2.2/amqp.c:316: warning: cast to pointer from integer of different size
make: *** [amqp.lo] Error 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-21 08:30 UTC] jpauli@php.net
I guess the author wont provide PHP4 support as PHP4 is EOL since so many years 
now
 [2012-08-26 02:53 UTC] pdezwart@php.net
We are sorry, but we can not support PHP 4 related problems anymore.


 [2012-08-26 02:53 UTC] pdezwart@php.net
-Status: Open +Status: Wont fix
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 16 20:03:36 2021 UTC