Re: [pmacct-discussion] AMQP Compile issue

2015-03-27 Thread Paolo Lucente
Hi Olaf,

Yes, this is a known issue due to a API change on the rabbitmq-c
side of the things. The code in the CVS (or daily package) should
compile just fine. 

Cheers,
Paolo

On Fri, Mar 27, 2015 at 06:06:47PM +1100, Olaf de Bree wrote:
 Hi Paolo,
 
 I am sorry.
 
 1. I miss spelled your name on the previous email
 2. I posted this question a little prematureley.
 
 it seems the compile error was caused by rabbitmq-c 0.6.0 using version
 0.5.2 compiles fine.
 
 Thanks
 Olaf
 
 
 
 
 On Fri, Mar 27, 2015 at 3:47 PM, Olaf de Bree odeb...@gmail.com wrote:
 
  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  

[pmacct-discussion] AMQP Compile issue

2015-03-26 Thread Olaf de Bree
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