[collectd] x86-64 compilation problems (was: PLEASE help with advice!!!)

Florian Forster octo at verplant.org
Mon Dec 17 10:35:38 CET 2007


Hi Alex,

On Sun, Dec 16, 2007 at 04:56:23PM +0200, a.shubnik at btis.by wrote:
> (both SLES10-SP1 and OpenSUSE-10.3).I get follow error:
> 
> netlink.c:578: warning: passing argument 2 of 'rtnl_dump_filter' from
>   incompatible pointer type

can you please look for the declaration of the `rtnl_dump_filter'
function? On Debian it's in `/usr/include/iproute/libnetlink.h', but you
can use
 $ grep -r rtnl_dump_filter /usr/include
to search all of your include files.

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

This is a known issue, please see:
<http://collectd.org/faq.shtml#faq:static_libs>

> And also i can't use 'iptables' plugin (with --enable-iptables
> option),

If you use any of the ``--enable-foo'' stuff you FORCE the build system
to build the plugin even if the dependencies are not met, see:
<http://collectd.org/faq.shtml#faq:enable_plugin>

Most likely you are missing the libiptc library. Under Debian it's in
the package `iptables-dev'. Please note that the iptables plugin has
that static library problem, too.

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071217/1bc4f0af/attachment.pgp 


More information about the collectd mailing list