Summary: | app-admin/collectd-5.4.1-r1 - collectd.c:291:2: error: too few arguments to function ‘sg_init’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Johan Bergström <bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 4glitch, proxy-maint, whissi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge log
Don't link against libstatgrab when not required |
Description
Toralf Förster
2015-02-27 13:14:06 UTC
Created attachment 398526 [details, diff] Don't link against libstatgrab when not required In preparation of collectd-5.4.2 bump I was looking into this. I am wondering why you are using sys-libs/libstatgrab, you are not on *BSD, right? When I install sys-libs/libstatgrab I ran into the same problem. So it looks like we need to disable libstatgrab so collectd won't silently link against this library. @Toralf: Could you please try the attached patch? It is working for me (not tested on FreeBSD but according to upstream's bug https://github.com/collectd/collectd/issues/445 I am not expecting that building against libstatgrab ~ARCH version in tree is currently working). I created the patch against the v5.4.2 ebuild (not yet in tree), but the patch should apply against 5.4.1, too. This patch is now included with the recent bump, see https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b459b6d37f22f9da2c070173756bf12de2591f0 Thanks for the report! |