[collectd] compiling collectd-5.0.1 for iptables on CentOS

Manish Sapariya manish.sapariya at kpoint.com
Mon Jun 25 15:32:39 CEST 2012


Hi,
I am trying to compile collectd-5.1.0 for libiptc for iptables
monitoring, but not able to compile it successfully. I tried to
apply the hints on the plugin page, but none of the following
approach is giveing me result.

* When I configure with default parameters it could not find libiptc
     libiptc . . . . . . . no (pkg-config doesn't know libiptc)

* If I configure collectd with
    ./configure --with-libiptc=shipped
   libiptc . . . . . . . no (Linux iptables headers not found)

* If I configure collectd with

  ./configure --with-libiptc=/usr/include/libiptc/

the configuration is fine, but the make fails with following error.
iptables.c:50: error: conflicting types for âiptc_handle_tâ
/usr/include/libiptc/libiptc.h:29: error: previous declaration of 
âiptc_handle_tâ was here
iptables.c:53: error: conflicting types for âip6tc_handle_tâ
/usr/include/libiptc/libip6tc.h:21: error: previous declaration of 
âip6tc_handle_tâ was here
cc1: warnings being treated as errors

Can somebody point me to the method which works.
Do I need the complete kernel sources to build this plugin?

My environment:
  - CentOS 5.6
    - Linux one-567.gslab.com 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 
EST 2011 x86_64 x86_64 x86_64 GNU/Linux
  - Packages
    - iptables-1.3.5-5.3.el5_4.1
    - iptables-devel-1.3.5-9.1.el5
    - kernel-headers-2.6.18-238.el5
    - kernel-devel-2.6.18-238.el5

Appreciate any help, to get past this issue.

-- 
Thanks and Regards,
Manish




More information about the collectd mailing list