[collectd] [patch] swap plugin - swap in/out does not work for kernels <2.6
Mirko Buffoni
briareos at eswat.org
Wed Jan 20 16:59:56 CET 2010
>Try to build it with only the plugins you really need. I got 4.9.0 on
>redhat 6 :)
Naturally that's what I tried to do first :)
And since I need DNS, I included pcap requirement.
Here is a compilation error with 4.8.1
make[4]: Entering directory
`/usr/src/redhat/BUILD/collectd-4.8.1/src/libcollectdclient'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../src -Wall -Werror -O2 -g -march=i386 -mcpu=i686 -c -o client.lo
client.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -O2 -g -march=i386
-mcpu=i686 -c client.c -fPIC -DPIC -o .libs/client.o
cc1: warnings being treated as errors
client.c:171: warning: `nonnull' attribute directive ignored
client.c:184: warning: `nonnull' attribute directive ignored
__attribute__((malloc, nonnull (1)))
static char *lcc_strdup (const char *str) /* {{{ */
{
and
__attribute__((nonnull (1, 2)))
static char *lcc_strescape (char *dest, const char *src, size_t dest_size)
/* {{{ */
{
which I can comment out the __attribute__ line
then later:
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -DPREFIX='"/usr"' -DCONFIGFILE='"/etc/collectd.conf"'
-DLOCALSTATEDIR='"/var"' -DPKGLOCALSTATEDIR='"/var/lib/collectd"'
-DPIDFILE='"/var/run/collectd.pid"' -DPLUGINDIR='"/usr/lib/collectd"'
-DPKGDATADIR='"/usr/share/collectd"' -Wall -O2 -g -march=i386 -mcpu=i686
-MT utils_dns.lo -MD -MP -MF .deps/utils_dns.Tpo -c -o utils_dns.lo utils_dns.c
gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/usr\"
-DCONFIGFILE=\"/etc/collectd.conf\" -DLOCALSTATEDIR=\"/var\"
-DPKGLOCALSTATEDIR=\"/var/lib/collectd\"
-DPIDFILE=\"/var/run/collectd.pid\" -DPLUGINDIR=\"/usr/lib/collectd\"
-DPKGDATADIR=\"/usr/share/collectd\" -Wall -O2 -g -march=i386 -mcpu=i686
-MT utils_dns.lo -MD -MP -MF .deps/utils_dns.Tpo -c utils_dns.c -fPIC
-DPIC -o .libs/utils_dns.o
utils_dns.c: In function `handle_ipv6':
utils_dns.c:460: storage size of `ext_hdr' isn't known
utils_dns.c:464: sizeof applied to an incomplete type
utils_dns.c:471: sizeof applied to an incomplete type
utils_dns.c:460: warning: unused variable `ext_hdr'
I couldn't fix this though.
Mirko
More information about the collectd
mailing list