[collectd] [PATCH] Make tcpconns run on OpenBSD

Florian Forster octo at verplant.org
Tue Aug 19 09:56:09 CEST 2008


Hi Michael,

On Tue, Aug 19, 2008 at 08:00:37AM +0200, Florian Forster wrote:
> > 2) -lkvm is not added to the tcpconns-linker-flags.
> > After manually adding -lkvm to tcpconns_la_LDFLAGS in src/Makefile, it works.
> 
> Hm, the configure script checks for the `kvm_getswapinfo' symbol, but as
> far as I can see this doesn't exist in the version of the kvm library
> shipped with OpenBSD and NetBSD.. Guess we have to use yet some more
> magic to find out which version we have or what system we're compiling
> on.. I'll give it a shot and send you an updates patch to test, okay?

the configure script now checks for the `kvm_getprocs',
`kvm_getswapinfo', and `kvm_nlist' functions and basically treats them
as different libraries. If everything works as expected, the
`processes', `swap', and `tcpconns' plugins should now be automatically
enabled if the kvm library provides the necessary functions.

I've pulled your changes into the master branch of the Git repository.
Could you give it a try and let me know if it works for you?

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080819/68308730/attachment.pgp 


More information about the collectd mailing list