Hi Palo,

Hope you are doing well.

I am have a little bit of an issue with the AMQP plugging when compiling on
Centos 6.6.

I using the following

pmacct 1.51
rabbitmq server 3.5.0
jansson 2.7
rabbitmq-c 0.6.0

Configure seem to pass OK

[root@lnflow01 pmacct-1.5.1]# ./configure --enable-mysql --enable-rabbitmq
--with-rabbitmq-libs=/usr/local/lib/
--with-rabbitmq-includes=/usr/local/include/ --enable-jansson

loading cache ./config.cache

checking for a BSD compatible install... (cached) /usr/bin/install -c

checking whether build environment is sane... yes

checking whether make sets ${MAKE}... (cached) yes

checking for working aclocal-1.4... missing

checking for working autoconf... found

checking for working automake-1.4... missing

checking for working autoheader... found

checking for working makeinfo... missing

checking for gcc... (cached) gcc

checking whether the C compiler (gcc  ) works... yes

checking whether the C compiler (gcc  ) is a cross-compiler... no

checking whether we are using GNU C... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking OS... Linux

checking hardware... x86_64

checking for ranlib... (cached) ranlib

checking whether to enable debugging compiler options... no

checking whether to relax compiler optimizations... no

checking whether to disable linking against shared objects... no

checking for dlopen... (cached) no

checking for dlopen in -ldl... (cached) yes

checking for gmake... (cached) gmake

checking whether gmake sets ${MAKE}... (cached) yes

checking for __progname... yes

checking for extra flags needed to export symbols... --export-dynamic

checking for static inline... yes

checking endianess... little

checking unaligned accesses... ok

checking whether to enable L2 features... yes

checking whether to enable IPv6 code... no

checking whether to enable IP prefix labels... checking default locations
for pcap.h... found in /usr/include

checking default locations for libpcap... no

checking for pcap_dispatch in -lpcap... (cached) yes

checking for pcap_setnonblock in -lpcap... (cached) yes

checking packet capture type... linux

checking whether to enable MySQL support... checking how to run the C
preprocessor... (cached) gcc -E

yes

checking default locations for libmysqlclient... found in /usr/lib64/mysql

checking for main in -lstdc++... (cached) yes

checking for clock_gettime in -lrt... (cached) yes

checking default locations for mysql.h... found in /usr/include/mysql

checking whether to enable PostgreSQL support... no

checking whether to enable MongoDB support... no

checking whether to enable SQLite3 support... no

checking whether to enable RabbitMQ/AMQP support... yes

checking your own RabbitMQ library... ok

checking your own RabbitMQ headers... ok

checking whether to enable GeoIP support... no

checking whether to enable Jansson support... yes

checking default locations for Jansson library... found in /usr/local/lib

checking default locations for jansson.h... found in /usr/local/include

checking for ANSI C header files... (cached) yes

checking for sys/wait.h that is POSIX.1 compatible... (cached) yes

checking for getopt.h... (cached) yes

checking for sys/select.h... (cached) yes

checking for sys/time.h... (cached) yes

checking for u_int64_t in sys/types.h... yes

checking for u_int32_t in sys/types.h... yes

checking for u_int16_t in sys/types.h... yes

checking for u_int8_t in sys/types.h... yes

checking for uint64_t in sys/types.h... no

checking for uint32_t in sys/types.h... no

checking for uint16_t in sys/types.h... no

checking for uint8_t in sys/types.h... no

checking whether to enable 64bit counters... yes

checking whether to enable multithreading in pmacct... yes

checking whether to enable ULOG support... no

checking return type of signal handlers... (cached) void

checking for strlcpy... (cached) no

checking for vsnprintf... (cached) yes

checking for setproctitle... (cached) no

checking for mallopt... (cached) yes


PLATFORM ..... : x86_64

OS ........... : Linux 2.6.32-504.12.2.el6.x86_64 (lnflow01.shynet.local)

COMPILER ..... : gcc

CFLAGS ....... : -O2 -g -O2  -I/usr/local/include -I/usr/local/include

LIBS ......... : -lpcap  -ldl -L/usr/lib64/mysql -lmysqlclient -lstdc++
-lrt -L/usr/local/lib -lrabbitmq -L/usr/local/lib -ljansson -lm -lz
-lpthread

SERVER_LIBS ...: -lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin
-Lsfprobe_plugin/ -lbgp -Lbgp/ -ltee_plugin -Ltee_plugin/ -lisis -Lisis/
-lbmp -Lbmp/

LDFLAGS ...... : -Wl,--export-dynamic


Now type 'make' to compile the source code.


Are you willing to get in touch with other pmacct users?

Join the pmacct mailing-list by sending a message to
pmacct-discussion-subscr...@pmacct.net


Need for documentation and examples?

Read the README file or go to http://wiki.pmacct.net/



creating ./config.status

creating Makefile

creating src/Makefile

creating src/nfprobe_plugin/Makefile

creating src/sfprobe_plugin/Makefile

creating src/bgp/Makefile

creating src/tee_plugin/Makefile

creating src/isis/Makefile

creating src/bmp/Makefile

But when i run make

L2=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_linux=1
-DWITH_MYSQL=1 -DWITH_RABBITMQ=1 -DWITH_JANSSON=1 -DHAVE_DLOPEN=1
-DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1
-DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1
-DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1
-DHAVE_64BIT_COUNTERS=1 -DENABLE_THREADS=1 -DRETSIGTYPE=void
-DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1  -I. -I.      -O2 -g -O2
-I/usr/local/include -c preprocess.c

gcc  -O2 -g -O2  -I/usr/local/include -Wl,--export-dynamic  -o pmacctd
-DPACKAGE=\"pmacctd\" -DVERSION=\"1.5.1\" -DCOMPILE_ARGS=\"\
--enable-mysql\ --enable-rabbitmq\ --enable-jansson\" -DPROGNAME=1
-DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1
-DPCAP_7=1 -DPCAP_TYPE_linux=1 -DWITH_MYSQL=1 -DWITH_RABBITMQ=1
-DWITH_JANSSON=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1
-DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 -DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1
-DHAVE_64BIT_COUNTERS=1 -DENABLE_THREADS=1 -DRETSIGTYPE=void
-DHAVE_VSNPRINTF=1 -DHAVE_MALLOPT=1  -I. -I.   pmacctd.o signals.o util.o
strlcpy.o plugin_hooks.o server.o acct.o memory.o ll.o cfg.o imt_plugin.o
log.o pkt_handlers.o cfg_handlers.o net_aggr.o bpf_filter.o print_plugin.o
ip_frag.o ports_aggr.o addr.o pretag.o pretag_handlers.o ip_flow.o
setproctitle.o classifier.o regexp.o regsub.o conntrack.o xflow_status.o
nl.o plugin_common.o preprocess.o mysql_plugin.c amqp_common.c
amqp_plugin.c sql_common.c sql_handlers.c log_templates.c thread_pool.c
-lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin -Lsfprobe_plugin/ -lbgp
-Lbgp/ -ltee_plugin -Ltee_plugin/ -lisis -Lisis/ -lbmp -Lbmp/ -lpcap  -ldl
-L/usr/lib64/mysql -lmysqlclient -lstdc++ -lrt -L/usr/local/lib -lrabbitmq
-L/usr/local/lib -ljansson -lm -lz -lpthread

amqp_common.c: In function ‘p_amqp_connect’:

amqp_common.c:175: error: incompatible type for argument 7 of
‘amqp_exchange_declare’

/usr/local/include/amqp_framing.h:798: note: expected ‘amqp_boolean_t’ but
argument is of type ‘amqp_table_t’

amqp_common.c:175: error: too few arguments to function
‘amqp_exchange_declare’

gmake[2]: *** [pmacctd] Error 1

gmake[2]: Leaving directory `/root/pmacct-1.5.1/src'

gmake[1]: *** [all-recursive] Error 1

gmake[1]: Leaving directory `/root/pmacct-1.5.1/src'

make: *** [all-recursive] Error 1

[root@lnflow01 pmacct-1.5.1]#



Any help you can offer with this would be much appreciated

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

Reply via email to