[collectd] libiptc build problems

Mirko Buffoni briareos at eswat.org
Thu Sep 17 16:27:06 CEST 2009


Hi Sebastian,

At 15:42 17/09/2009 +0200, you wrote:
> > 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.

I'm trying to compile version 4.8.0 which I redownloaded again, but there
is no such option --with-libiptc=shipped

If I specify --with-libiptc=yes, it compiles the library and libs can be
found under src/owniptc/.libs/

However:

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 -m32 -march=i386 
-mtune=generic -fasynchronous-unwind-tables -MT irq.lo -MD -MP -MF 
.deps/irq.Tpo -c irq.c  -fPIC -DPIC -o .libs/irq.o
iptables.c:55: error: conflicting types for 'iptc_handle_t'
owniptc/libiptc.h:48: error: previous declaration of 'iptc_handle_t' was here
iptables.c:58: error: conflicting types for 'ip6tc_handle_t'
owniptc/libip6tc.h:40: error: previous declaration of 'ip6tc_handle_t' was here
iptables.c: In function 'submit6_chain':
iptables.c:375: warning: passing argument 2 of 'ip6tc_first_rule' from 
incompatible pointer type
iptables.c:394: warning: passing argument 2 of 'ip6tc_next_rule' from 
incompatible pointer type
iptables.c: In function 'submit_chain':
iptables.c:407: warning: passing argument 2 of 'iptc_first_rule' from 
incompatible pointer type
iptables.c:426: warning: passing argument 2 of 'iptc_next_rule' from 
incompatible pointer type
iptables.c: In function 'iptables_read':
iptables.c:470: warning: passing argument 1 of 'iptc_free' from 
incompatible pointer type
iptables.c:493: warning: passing argument 1 of 'ip6tc_free' from 
incompatible pointer type
make[3]: *** [iptables.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/irq.Tpo .deps/irq.Plo

>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>

Will do. Thank you for specifying this.

Mirko




More information about the collectd mailing list