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

Reply via email to