[collectd] compile problems on NetBSD

Peter Bray pdb_ml at yahoo.com.au
Tue Jul 28 03:15:09 CEST 2009


Hi All,

   This is the same problem I experienced on Solaris 10 Update 6 back on 
14th May (Subject: Compiling collectd-4.6.2 / collectd-git-repo on 
Solaris 10 Update 6). Your #ifdef is looks more appropriate than 
anything I suggested :-) Have a look at Florian's comments on my thread.
I still think its something autoconf can detect, but I'm not an autoconf 
expert. I'm personally still running a local patch of 4.7.0 so I have 
not tested recent builds.

Regards,
Peter

matthew sporleder wrote:
> I needed the following patch to get any plugins to work on NetBSD:
> 
> --- src/bind.c.orig     2009-07-26 21:51:32.000000000 -0400
> +++ src/bind.c
> @@ -21,7 +21,9 @@
>   *   Florian Forster <octo at verplant.org>
>   **/
> 
> +#ifdef __linux
>  #define _XOPEN_SOURCE 600 /* glibc2 needs this for strptime */
> +#endif
> 
>  #include "collectd.h"
>  #include "common.h"
> 
> Otherwise there are a ton of errors about strtoll.  I don't know if
> there's a better way for autoconf to test for this glibc requirement,
> but it breaks NetBSD.  :)
> 
> Matt



More information about the collectd mailing list