php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59615 Can not compile extencion
Submitted: 2011-02-09 16:41 UTC Modified: 2011-10-26 02:11 UTC
From: nbari at dalmp dot com Assigned:
Status: Not a bug Package: amqp (PECL)
PHP Version: 5.3.5 OS: FreeBSD 8.1 amd64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nbari at dalmp dot com
New email:
PHP Version: OS:

 

 [2011-02-09 16:41 UTC] nbari at dalmp dot com
Description:
------------
cat not compiling using pecl install or by source

'amqp_rpc_reply_t' has no member named 'library_error'


pecl install channel://pecl.php.net/amqp-0.2.2


/go-pear/amqp/amqp.c:255: error: 'amqp_rpc_reply_t' has no member named 'library_error'
*** Error code 1



Reproduce code:
---------------
1. cd /usr/ports/net/rabbitmq-c-devel
2. sudo make install clean
3. wget http://pecl.php.net/get/amqp-0.2.2.tgz
4. tar -xzvf ampq-0.2.2.tgz
5. cd ampq-0.2.2
6. phpize && ./configure --with-amqp && make && sudo make install


Expected result:
----------------
successfully compiled 

Actual result:
--------------
/go-pear/amqp/amqp.c:255: error: 'amqp_rpc_reply_t' has no member named 'library_error'
*** Error code 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-14 14:46 UTC] jtansavatdi@php.net
Do you have rabbitmq-c installed

http://hg.rabbitmq.com/rabbitmq-c/
 [2011-07-06 00:04 UTC] vadim at bionicman dot ru
Hello. I have similar trouble:

----------
# pecl install -f amqp
.....
/go-pear/amqp/amqp.c: In function 'amqp_error':
/go-pear/amqp/amqp.c:255: error: 'amqp_rpc_reply_t' has no member named 'library_error'
*** Error code 1

Stop in /go-pear/pear-build-rootXEY6RJ/amqp-0.3.0.   
ERROR: `make' failed
----------

RabbitMQ C librares is installed from ports:
----------
# pkg_info -L rabbitmq-c-devel-0.0.1_1
Information for rabbitmq-c-devel-0.0.1_1:

Files:
/usr/local/share/licenses/rabbitmq-c-devel-0.0.1_1/catalog.mk
/usr/local/share/licenses/rabbitmq-c-devel-0.0.1_1/LICENSE
/usr/local/share/licenses/rabbitmq-c-devel-0.0.1_1/GPLv2
/usr/local/share/licenses/rabbitmq-c-devel-0.0.1_1/MPL
/usr/local/bin/amqp_bind
/usr/local/bin/amqp_consumer
/usr/local/bin/amqp_exchange_declare
/usr/local/bin/amqp_listen
/usr/local/bin/amqp_listenq
/usr/local/bin/amqp_producer
/usr/local/bin/amqp_sendstring
/usr/local/bin/amqp_unbind
/usr/local/include/amqp.h
/usr/local/include/amqp_framing.h
/usr/local/lib/librabbitmq.a
/usr/local/lib/librabbitmq.la
/usr/local/lib/librabbitmq.so
/usr/local/lib/librabbitmq.so.0
----------
 [2011-10-26 02:11 UTC] pdezwart@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You are using incompatible versions of php-amqp and librabbitmq-c. Please use php-amqp v0.3 and the following librabbitmq-c branch: http://hg.rabbitmq.com/rabbitmq-c/rev/b01825ecc112 along with the appropriate codegen for your version: http://hg.rabbitmq.com/rabbitmq-codegen/tags
 [2011-10-26 02:11 UTC] pdezwart@php.net
-Status: Open +Status: Bogus
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 22:01:23 2020 UTC