Hi Hrothgar,

Thanks very much for your feedback. This is actually good food for some
further documentation. I've just committed the following basing on this
email exchange: 

https://github.com/pmacct/pmacct/commit/59d4318385409cb5eb1208f8c1e06e9e49a04e37

Hopefully it will be of help to others.

Cheers,
Paolo

On Fri, Oct 27, 2017 at 09:37:05AM -0400, Hrothgar Wrecker wrote:
> Hi,
>   I was able to get it to work using PKG_CONFIG_PATH.
> After unsetting RABBITMQ_LIBS and RABBITMQ_CFLAGS, this works:
> 
> PKG_CONFIG_PATH=/usr/local/rabbitmq-c-0.8.0/lib64/pkgconfig/ ./configure
> --enable-rabbitmq --enable-jansson
> 
> Also, i think my RABBITMQ_LIBS might have been wrong.  I haven't tested,
> but I think it should have been:
> 
> RABBITMQ_LIBS="-L/usr/local/rabbitmq-c-0.8.0/lib64 -lrabbitmq".
> 
> Which is clearly stated in the QUICKSTART that I didn't fully read.  Lesson
> learned: RTFD.
> 
> Thanks for your help.
> 
> 
> 
> On Fri, Oct 27, 2017 at 6:50 AM, Paolo Lucente <pa...@pmacct.net> wrote:
> 
> >
> > Hi Hrothgar,
> >
> > I wonder whether it is possible you did build only the shared object
> > version of the rabbitmq-c library and the location where it's installed,
> > /usr/local/rabbitmq-c-0.8.0/lib64 , is not in the path for ldconfig /
> > ld.so.conf and this is creating issues.
> >
> > I can confirm that I'm compiling exact same pmacct version against the
> > exact same rabbitmq-c version and all works fine (but my rabbitmq-c is
> > in standard /usr/local/lib).
> >
> > Paolo
> >
> > On Thu, Oct 26, 2017 at 05:19:29PM -0400, Hrothgar Wrecker wrote:
> > > Hello,
> > >  I'm getting an error trying to build version 1.7.0 with
> > --enable-rabbitmq.
> > >
> > > I'm doing the following:
> > >
> > > export RABBITMQ_LIBS="-L/usr/local/rabbitmq-c-0.8.0/lib64"
> > > export RABBITMQ_CFLAGS="-I/usr/local/rabbitmq-c-0.8.0/include"
> > > ./configure --enable-rabbitmq --enable-jansson
> > >
> > >
> > >
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_set_content_type_json':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:130: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_set_content_type_binary':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:138: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_get_version':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:153: undefined reference
> > to
> > > `amqp_version'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_close':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:301: undefined reference
> > to
> > > `amqp_get_socket'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:301: undefined reference
> > to
> > > `amqp_connection_close'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:307: undefined reference
> > to
> > > `amqp_destroy_connection'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_connect_to_publish':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:158: undefined reference
> > to
> > > `amqp_new_connection'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:160: undefined reference
> > to
> > > `amqp_tcp_socket_new'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:167: undefined reference
> > to
> > > `amqp_socket_open'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:175: undefined reference
> > to
> > > `amqp_login'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:182: undefined reference
> > to
> > > `amqp_channel_open'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:184: undefined reference
> > to
> > > `amqp_get_rpc_reply'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:195: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:195: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:195: undefined reference
> > to
> > > `amqp_empty_table'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:195: undefined reference
> > to
> > > `amqp_exchange_declare'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:198: undefined reference
> > to
> > > `amqp_get_rpc_reply'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:224: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:192: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:192: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:192: undefined reference
> > to
> > > `amqp_empty_table'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_is_alive':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:314: undefined reference
> > to
> > > `amqp_get_sockfd'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_publish_string':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:244: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:244: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:244: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:244: undefined reference
> > to
> > > `amqp_basic_publish'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_publish_binary':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:278: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:278: undefined reference
> > to
> > > `amqp_cstring_bytes'
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:278: undefined reference
> > to
> > > `amqp_basic_publish'
> > > ./.libs/libdaemons.a(libdaemons_la-amqp_common.o): In function
> > > `p_amqp_get_sockfd':
> > > /root/Downloads/pmacct-1.7.0/src/amqp_common.c:145: undefined reference
> > to
> > > `amqp_get_sockfd'
> > > collect2: error: ld returned 1 exit status
> > > gmake[2]: *** [pmacctd] Error 1
> > > gmake[2]: Leaving directory `/root/Downloads/pmacct-1.7.0/src'
> > > gmake[1]: *** [all-recursive] Error 1
> > > gmake[1]: Leaving directory `/root/Downloads/pmacct-1.7.0/src'
> > > make: *** [all-recursive] Error 1
> > >
> > >
> > > Thanks!
> >
> > > _______________________________________________
> > > pmacct-discussion mailing list
> > > http://www.pmacct.net/#mailinglists
> >
> >
> > _______________________________________________
> > pmacct-discussion mailing list
> > http://www.pmacct.net/#mailinglists
> >

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

Reply via email to