[collectd] PLEASE help with advice!!!
a.shubnik at btis.by
a.shubnik at btis.by
Sun Dec 16 15:56:23 CET 2007
Hello Florian!
I can't compile many last versions of 'collectd' with 'netlink' plugin
on x86_64 machines
(both SLES10-SP1 and OpenSUSE-10.3).I get follow error:
...
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT netlink_la-netlink.lo -MD -MP -MF
".deps/netlink_la-netlink.Tpo" -c -o netlink_la-netlink.lo `test -f
'netlink.c' || echo './'`netlink.c; \
then mv -f ".deps/netlink_la-netlink.Tpo" ".deps/netlink_la-netlink.Plo";
else rm -f ".deps/netlink_la-netlink.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT netlink_la-netlink.lo -MD -MP
-MF .deps/netlink_la-netlink.Tpo -c netlink.c -fPIC -DPIC -o
.libs/netlink_la-netlink.o
netlink.c: In function 'ir_read':
netlink.c:578: warning: passing argument 2 of 'rtnl_dump_filter' from
incompatible pointer type
netlink.c:616: warning: passing argument 2 of 'rtnl_dump_filter' from
incompatible pointer type
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Werror -g -O2 -o
netlink.la -rpath /usr/local/stow/collectd-4.2.2/lib/collectd -module
-avoid-version netlink_la-netlink.lo -lnetlink
gcc -shared .libs/netlink_la-netlink.o -lnetlink -Wl,-soname
-Wl,netlink.so -o .libs/netlink.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libnetlink.a(libnetlink.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libnetlink.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [netlink.la] Error 1
make[3]: Leaving directory `/usr/local/src/collectd-4.2.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/collectd-4.2.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/collectd-4.2.2/src'
make: *** [all-recursive] Error 1
On i386 machines i haven't such error.
And also i can't use 'iptables' plugin (with --enable-iptables
option), i get compilation fault
on both architectures (i386 and x86_64) and distros (SLES10-SP1 and
OpenSUSE-10.3):
...
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I. -Wall -Werror -g -O2 -MT iptables.lo -MD -MP -MF
".deps/iptables.Tpo" -c -o iptables.lo iptables.c; \
then mv -f ".deps/iptables.Tpo" ".deps/iptables.Plo"; else rm -f
".deps/iptables.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT iptables.lo -MD
-MP -MF .deps/iptables.Tpo -c iptables.c -fPIC -DPIC -o .libs/iptables.o
cc1: warnings being treated as errors
iptables.c:198: warning: 'struct ipt_entry' declared inside parameter list
iptables.c:198: warning: its scope is only this definition or declaration,
which is probably not what you want
iptables.c:198: warning: 'struct ipt_entry_match' declared inside
parameter list
iptables.c: In function 'submit_match':
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:240: error: dereferencing pointer to incomplete type
iptables.c:245: error: dereferencing pointer to incomplete type
iptables.c:248: error: dereferencing pointer to incomplete type
iptables.c: At top level:
iptables.c:254: error: expected ')' before '*' token
iptables.c: In function 'iptables_read':
iptables.c:292: error: 'iptc_handle_t' undeclared (first use in this
function)
iptables.c:292: error: (Each undeclared identifier is reported only once
iptables.c:292: error: for each function it appears in.)
iptables.c:292: error: expected ';' before 'handle'
iptables.c:302: error: 'handle' undeclared (first use in this function)
iptables.c:302: warning: implicit declaration of function 'iptc_init'
iptables.c:307: warning: implicit declaration of function 'iptc_strerror'
iptables.c:313: warning: implicit declaration of function 'submit_chain'
iptables.c:314: warning: implicit declaration of function 'iptc_free'
make[3]: *** [iptables.lo] Error 1
make[3]: Leaving directory
`/mnt/xfs/dop/suse/10.3/usr/local/src/tarballs/collectd-4.2.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/mnt/xfs/dop/suse/10.3/usr/local/src/tarballs/collectd-4.2.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/mnt/xfs/dop/suse/10.3/usr/local/src/tarballs/collectd-4.2.2/src'
make: *** [all-recursive] Error 1
I ready to send you any additional debug info what you need.
Thank you very much for any advice.
Alex
More information about the collectd
mailing list