[collectd] [PATCH] collectd fails to build ipvs plugin on RHEL based systems

Ulrich Habel rhaen at cpan.org
Sun Jan 22 13:36:48 CET 2012

Hi collectors,

I did some mock builds on CentOS 6.2 with the latest version of
collectd and noticed that the ipvs plugin doesn't build due to not
finding the ip_vs.h header file. The include search path for this
plugin is /usr/include/ip_vs.h and /usr/include/net/ip_vs.h.

configure:14965: checking net/ip_vs.h usability
configure:14965: gcc -c -g -O2
-I/lib/modules/2.6.32-220.2.1.el6.x86_64/source/include  conftest.c
conftest.c:125:23: error: net/ip_vs.h: No such file or directory


configure:14977: checking ip_vs.h usability
configure:14977: gcc -c -g -O2
-I/lib/modules/2.6.32-220.2.1.el6.x86_64/source/include  conftest.c
conftest.c:125:19: error: ip_vs.h: No such file or directory

However, on my CentOS 6.2 box - and I suppose on all RHEL based
systems, this header file is located at /usr/include/linux/ip_vs.h.

configure:19350: checking linux/ip_vs.h usability
configure:19367: gcc -c -g -O2
-I/lib/modules/2.6.32-220.2.1.el6.x86_64/source/include  conftest.c
configure:19374: $? = 0
configure:19388: result: yes
configure:19392: checking linux/ip_vs.h presence
configure:19407: gcc -E  conftest.c
configure:19414: $? = 0
configure:19428: result: yes
configure:19456: checking for linux/ip_vs.h
configure:19465: result: yes

I've attached a patch for configure.in and src/ipvs.c to check for
this location, too.


Ulrich Habel
home: http://www.pkgbox.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: collectd.have_linux_ip_vs_h.patch
Type: application/octet-stream
Size: 1489 bytes
Desc: not available
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120122/3f9fd584/attachment.obj>

More information about the collectd mailing list