[collectd] Compiling error with libiptc 4.9.3

Andreas Schulze andreas.schulze at datev.de
Fri Dec 17 11:50:00 CET 2010


Am 17.12.2010 03:06 schrieb Alan Pevec:
> I guess owniptc should be refreshed, it's rather old version
> and fails to build on Fedora rawhide (i.e. F-15):
> 
> In file included from libip4tc.c:136:0:
> libiptc.c:84:8: error: redefinition of 'struct xt_error_target'
> /usr/include/linux/netfilter/x_tables.h:69:8: note: originally defined here
> 

Hi,

I have similiar problems compiling collectd-4.10.2. on SLES10.
SLES9, SLES11 and Debian Lenny works fine.

SLES9:
$ rpm -qf /usr/include/linux/netfilter/x_tables.h
error: file /usr/include/linux/netfilter/x_tables.h: No such file or directory

SLES10:
$ rpm -qf /usr/include/linux/netfilter/x_tables.h
glibc-devel-2.4-31.30

SLES11:
$ rpm -qf /usr/include/linux/netfilter/x_tables.h
linux-kernel-headers-2.6.27-2.22

OpenSUSE_Factory: ( the nearly latest daily build )
$ rpm -qf /usr/include/linux/netfilter/x_tables.h
linux-glibc-devel-2.6.36-2.1.noarch


Debian Lenny:
$ dpkg -S /usr/include/linux/netfilter/x_tables.h
linux-libc-dev: /usr/include/linux/netfilter/x_tables.h
(Version 2.6.26-26lenny1)




Build faild with this errors:
make[3]: Entering directory `/usr/src/packages/BUILD/collectd-4.10.2/src/owniptc'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src    -Wall -Werror -g -O2 -c -o libip4tc.lo libip4tc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -g -O2 -c libip4tc.c  -fPIC -DPIC -o .libs/libip4tc.o
cc1: warnings being treated as errors
In file included from libiptc.c:47,
                 from libip4tc.c:136:
xtables.h:67: warning: 'struct xt_entry_match' declared inside parameter list
xtables.h:67: warning: its scope is only this definition or declaration, which is probably not what you want
xtables.h:74: warning: 'struct xt_entry_match' declared inside parameter list
xtables.h:82: warning: 'struct xt_entry_match' declared inside parameter list
xtables.h:86: warning: 'struct xt_entry_match' declared inside parameter list
xtables.h:123: warning: 'struct xt_entry_target' declared inside parameter list
xtables.h:130: warning: 'struct xt_entry_target' declared inside parameter list
xtables.h:137: warning: 'struct xt_entry_target' declared inside parameter list
xtables.h:141: warning: 'struct xt_entry_target' declared inside parameter list
make[3]: *** [libip4tc.lo] Error 1
make[3]: Leaving directory `/usr/src/packages/BUILD/collectd-4.10.2/src/owniptc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/collectd-4.10.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/collectd-4.10.2/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.17848 (%build)


-- 
Andreas Schulze
Internetdienste | P532

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail info @datev.de | Internet www.datev.de
Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70
Vorstand
Prof. Dieter Kempf (Vorsitzender)
Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender)
Dipl.-Kfm. Michael Leistenschneider
Jörg Rabe v. Pappenheim
Dipl.-Vw. Eckhard Schwarzer
Vorsitzender des Aufsichtsrates: Reinhard Verholen




More information about the collectd mailing list