[collectd] libiptc build problems

Sebastian Harl sh at tokkee.org
Thu Sep 17 15:42:52 CEST 2009

Hi Mirko,

On Thu, Sep 17, 2009 at 02:22:19PM +0200, Mirko Buffoni wrote:
> maybe I missed something here.  On CentOS I didn't find any libiptc, all
> should be included in iptables package.

Yes, it's not unlikely that libiptc is shipped with the iptables
package. On Debian, the lib is shipped with iptables as well, while the
headers are available in iptables-dev.

> I have installed iptables-devel package, I have libiptc.a under /usr/lib.

This seems to be the old, unofficial library. Since it's only available
as a static lib (presumably built without PIC [position independent
code]) you cannot link that into a shared object (all plugins are shared
objects) on a lot of architectures (see [faq:static_libs] for details).

> I added --with-libiptc=/usr/lib
> I do not have Virtual Server (ip_vs.h = no)
> iptables-devel package doesn't come with package config .pc file

Right - the unofficial version of libiptc does not provide a .pc file.

> Is there any other configure parameter I should specify to force correct
> iptc handling?

I recommend using the shipped library in that case, i.e. the
--with-libiptc=shipped configure option available since 4.7.3 / 4.8.0.


PS: Please avoid [top-posting], as this makes it harder to follow a
    thread. If you do not reply to any specific part of the original
    message (as in the current case), consider not including a quote at
    all. TIA!

[faq:static_libs] <http://collectd.org/faq.shtml#faq:static_libs>
[top-posting] <http://en.wikipedia.org/wiki/Top_posting>

Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090917/10a98eb2/attachment.pgp 

More information about the collectd mailing list