Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error: cannot convert ‘amqp_table_t’ to ‘amqp_boolean_t’ running on Centos #38

Open
martinjkelly opened this issue Nov 2, 2014 · 7 comments

Comments

@martinjkelly
Copy link

Hi,

I'm getting this error when trying to make amqpcpp on a 64 bit centos virtual machine.

make
g++ -Wall -I/usr/local/include -L/usr/local/lib -Iinclude/ -c -o src/AMQPExchange.o src/AMQPExchange.cpp
src/AMQPExchange.cpp: In member function ‘void AMQPExchange::sendDeclareCommand()’:
src/AMQPExchange.cpp:73: error: cannot convert ‘amqp_table_t’ to ‘amqp_boolean_t’ for argument ‘7’ to ‘amqp_exchange_declare_ok_t* amqp_exchange_declare(amqp_connection_state_t__, amqp_channel_t, amqp_bytes_t, amqp_bytes_t, amqp_boolean_t, amqp_boolean_t, amqp_boolean_t, amqp_boolean_t, amqp_table_t)’
make: *_* [src/AMQPExchange.o] Error 1

It works perfectly fine on my iMac.

I cannot seem to find the cause of the issue. any ideas?

@martinjkelly
Copy link
Author

It seems that the most recent changes in the librabbitmq-c code have caused the issue

alanxz/rabbitmq-c@2340b03

@martinjkelly
Copy link
Author

I have found the cause of the issue, details can be found here http://stackoverflow.com/questions/26703443/unable-to-compile-amqpcpp-make-error

@martinjkelly
Copy link
Author

Sorry, Didn't mean to close this. The code needs updating to ensure compatibility with the latest changes in the librabbitmq codebase.

@vltr
Copy link

vltr commented Feb 25, 2015

@martinjkelly: bumped with the same issue. Newer versions of rabbitmq-c now breaks amqpcpp BUT I wouldn't consider a modification YET because amqpcpp is still compatible with the latest stable release of rabbitmq-c (0.5.2). The instructions of how to use amqpcpp by cloning rabbitmq-c repository directly is the faulty question here (at the time I'm writing). When 0.6 becomes stable, then amqpcpp would require code updates.

@vltr
Copy link

vltr commented Feb 25, 2015

@martinjkelly: nevermind. The readme in rabbitmq-c is also wrong, saying the latest stable is indeed v0.6.0 but the link right bellow is to version 0.5.2. What a MESS ... ⚠️

@martinjkelly
Copy link
Author

see this SO post on how I worked around it at the time, I haven't looked at it since... http://stackoverflow.com/questions/26703443/unable-to-compile-amqpcpp-make-error.

I've since changed to posting data directly over a socket to my application and bypassing rabbitmq

@vltr
Copy link

vltr commented Feb 25, 2015

Yup! I made the same change some hours ago to make it work with 0.6.x :) I
don't think the current author seems keen to continue this project. Maybe
someone could assume it under a new name and add all those changes (from
newer versions of rabbitmq-c to memory leak fixes). Anyone?

On Wed, Feb 25, 2015 at 12:26 PM, Martin Kelly notifications@github.com
wrote:

see this SO post on how I worked around it at the time, I haven't looked
at it since
http://stackoverflow.com/questions/26703443/unable-to-compile-amqpcpp-make-error


Reply to this email directly or view it on GitHub
#38 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants