Re: [pmacct-discussion] Failing to compile amqp

2017-03-06 Thread Paolo Lucente

Hi Ben,

Thanks very much for reporting the issue :) It's now fixed:

https://github.com/pmacct/pmacct/commit/89da3e2312660f60b9c2dca20c6d60c1156e36d8

Cheers,
Paolo

On Mon, Mar 06, 2017 at 08:42:27PM +, Ben Wilson wrote:
> Hi,
> 
> 
> I'm trying to build with rabbitmq support, but it's complaining about kafka 
> o_O
> 
> 
> $ git clone https://github.com/pmacct/pmacct.git
> 
> $ cd pmacct
> 
> $ ./autogen.sh
> 
> $ ./configure --enable-rabbitmq --enable-jansson
> 
> $ make
> 
> 
> ...
> 
>   CC   libdaemons_la-amqp_plugin.lo
> amqp_plugin.c: In function 'amqp_cache_purge':
> amqp_plugin.c:621:30: error: 'kafkap_kafka_host' undeclared (first use in 
> this function)
>   ret = p_kafka_produce_data(_kafka_host, json_buf, strlen(json_buf));
>   ^
> amqp_plugin.c:621:30: note: each undeclared identifier is reported only once 
> for each function it appears in
> gmake[2]: *** [libdaemons_la-amqp_plugin.lo] Error 1
> ...
> 
> 
> Any ideas on how to get around this, without installing kafka support? :D
> 
> 
> Thanks!
> Ben

> ___
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


[pmacct-discussion] Failing to compile amqp

2017-03-06 Thread Ben Wilson
Hi,


I'm trying to build with rabbitmq support, but it's complaining about kafka o_O


$ git clone https://github.com/pmacct/pmacct.git

$ cd pmacct

$ ./autogen.sh

$ ./configure --enable-rabbitmq --enable-jansson

$ make


...

  CC   libdaemons_la-amqp_plugin.lo
amqp_plugin.c: In function 'amqp_cache_purge':
amqp_plugin.c:621:30: error: 'kafkap_kafka_host' undeclared (first use in this 
function)
  ret = p_kafka_produce_data(_kafka_host, json_buf, strlen(json_buf));
  ^
amqp_plugin.c:621:30: note: each undeclared identifier is reported only once 
for each function it appears in
gmake[2]: *** [libdaemons_la-amqp_plugin.lo] Error 1
...


Any ideas on how to get around this, without installing kafka support? :D


Thanks!
Ben
___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists