DPCollins / rabbitcpp

Automatically exported from code.google.com/p/rabbitcpp
0 stars 0 forks source link

Compilation error - Fedora 13 #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install rabbitmq-c
2. Checkout from rabbitcpp's svn
3. Run make in rabbitmq source directory

Output:
gcc -c AMQPBase.cpp AMQPException.cpp AMQPMessage.cpp AMQPConnection.cpp 
AMQPExchange.cpp AMQPQueue.cpp
AMQPException.cpp: In constructor 
‘AMQPException::AMQPException(amqp_rpc_reply_t*)’:
AMQPException.cpp:25: error: ‘struct amqp_rpc_reply_t_’ has no member named 
‘library_errno’
AMQPException.cpp:25: error: ‘struct amqp_rpc_reply_t_’ has no member named 
‘library_errno’
AMQPExchange.cpp: In member function ‘void 
AMQPExchange::sendDeclareCommand()’:
AMQPExchange.cpp:96: error: conversion from ‘amqp_boolean_t’ to non-scalar 
type ‘amqp_table_t’ requested
AMQPQueue.cpp: In member function ‘void AMQPQueue::sendDeclareCommand()’:
AMQPQueue.cpp:108: error: ‘QUEUE’ was not declared in this scope
AMQPQueue.cpp:108: error: ‘DECLARE’ was not declared in this scope
AMQPQueue.cpp:108: error: ‘DECLARE_OK’ was not declared in this scope
AMQPQueue.cpp:109: error: expected primary-expression before ‘,’ token
AMQPQueue.cpp:112: error: ‘AMQP_SIMPLE_RPC’ was not declared in this scope
AMQPQueue.cpp: In member function ‘void AMQPQueue::sendGetCommand()’:
AMQPQueue.cpp:351: error: ‘BASIC’ was not declared in this scope
AMQPQueue.cpp:351: error: ‘GET’ was not declared in this scope
AMQPQueue.cpp:353: error: expected primary-expression before ‘,’ token
AMQPQueue.cpp:356: error: ‘AMQP_MULTIPLE_RESPONSE_RPC’ was not declared in 
this scope
AMQPQueue.cpp: In member function ‘void AMQPQueue::sendConsumeCommand()’:
AMQPQueue.cpp:541: error: ‘BASIC’ was not declared in this scope
AMQPQueue.cpp:541: error: ‘CONSUME’ was not declared in this scope
AMQPQueue.cpp:543: error: expected primary-expression before ‘,’ token
AMQPQueue.cpp:549: error: ‘AMQP_MULTIPLE_RESPONSE_RPC’ was not declared in 
this scope
AMQPQueue.cpp: In member function ‘void 
AMQPQueue::setHeaders(amqp_basic_properties_t*)’:
AMQPQueue.cpp:682: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:686: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:691: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:695: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:699: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:703: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:707: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:711: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:715: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:719: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:723: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:727: warning: deprecated conversion from string constant to 
‘char*’
AMQPQueue.cpp:731: warning: deprecated conversion from string constant to 
‘char*’

In AMQPException.cpp:25: error: ‘struct amqp_rpc_reply_t_’ has no member 
named ‘library_errno’ I think it can be changed to 'library_error'.
In the others I have no clue.

Thank you.

Original issue reported on code.google.com by bruno.ma...@gmail.com on 11 Apr 2011 at 2:37

GoogleCodeExporter commented 8 years ago
Try with this copy of files:
http://github.com/xbojer/amqpcpp
this is my fork of files modified to work with current libs

hop it works for you

Original comment by fbo...@gmail.com on 14 Apr 2011 at 12:02

GoogleCodeExporter commented 8 years ago
Worked! 

Thanks a lot.

Original comment by bruno.ma...@gmail.com on 14 Apr 2011 at 2:01

GoogleCodeExporter commented 8 years ago
This patch has been commited to main github repository.

https://github.com/akalend/amqpcpp

Original comment by fbo...@gmail.com on 21 Apr 2011 at 6:20