Export to GitHub

php-amqp - issue #10

Extension compilation issues on FreeBSD


Posted on Jan 6, 2011 by Happy Bear

What steps will reproduce the problem? 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

What is the expected output? What do you see instead? Expected: Success Actual Result: /usr/home/jpeffer/amqp-0.2.2/amqp.c: In function 'amqp_error': /usr/home/jpeffer/amqp-0.2.2/amqp.c:255: error: 'amqp_rpc_reply_t' has no member named 'library_error' * Error code 1

What version of the product are you using? On what operating system? PHP: 5.3.3 OS: FreeBSD 8.1-RELEASE #0 AMQP: 0.2.2 rabbitmq-c-devel: 0.0.1_1

Please provide any additional information below. Need to also install the client in OSX. Would only the steps 1 and 2 performed differ?

Thanks for the help. Been scratching my head with this one for awhile now.

Comment #1

Posted on Feb 6, 2011 by Helpful Giraffe

I am having the same issue when trying to install it with: 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

any idea of how to fix it ?

regards

Comment #2

Posted on Mar 24, 2011 by Swift Bird

Read this http://pecl.php.net/bugs/bug.php?id=17809 library_error -> x.library_errno

But new problem PHP: 5.3.6 OS: FreeBSD 7.2 AMQP: 0.2.2 rabbitmq-c-devel: 0.0.1_1

Make same steps as TS

On step 6: phpize && ./configure --with-amqp && make && sudo make install

/amqp-0.2.2/amqp_exchange.c: In function 'zim_amqp_exchange_class_declare': /amqp-0.2.2/amqp_exchange.c:187: error: incompatible type for argument 7 of 'amqp_exchange_declare' /amqp-0.2.2/amqp_exchange.c:187: error: too few arguments to function 'amqp_exchange_declare' /amqp-0.2.2/amqp_exchange.c: In function 'zim_amqp_exchange_class_delete': /amqp-0.2.2/amqp_exchange.c:233: error: 'amqp_exchange_delete_t' has no member named 'ticket' /amqp-0.2.2/amqp_exchange.c:239: error: 'amqp_exchange_delete_t' has no member named 'ticket' /amqp-0.2.2/amqp_exchange.c: In function 'zim_amqp_exchange_class_bind': /amqp-0.2.2/amqp_exchange.c:519: error: 'amqp_queue_bind_t' has no member named 'ticket' * Error code 1

Any Suggestions ?

Status: New

Labels:
Type-Defect Priority-Medium