Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517060 - app-admin/collectd with sys-power/nut-2.7.1 - /usr/lib64/libupsclient.so: undefined reference to `upslogx'
Summary: app-admin/collectd with sys-power/nut-2.7.1 - /usr/lib64/libupsclient.so: und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL: http://pkgs.fedoraproject.org/cgit/nu...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-07-14 00:18 UTC by Malcolm Lashley
Modified: 2016-02-29 16:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malcolm Lashley 2014-07-14 00:18:47 UTC
Applying this patch to nut allows collectd to compile with the nut plugin enabled once more

http://pkgs.fedoraproject.org/cgit/nut.git/tree/nut-2.7.1-fixupslog.patch?id=d6655ef281dbeb55d604241b23e939b7e4582ea2

The symptoms are exactly as reported here:

https://bugzilla.redhat.com/show_bug.cgi?id=1071919




Reproducible: Always

Steps to Reproduce:
1. Attempt to compile collectd with the nut plugin enabled.
2.
3.
Actual Results:  
Build failure as per redhat bug above...

Expected Results:  
Compilation succeeds
Comment 1 Johan Bergström 2014-07-24 00:30:57 UTC
Thanks for filing the bug. I'll have a look at this shortly.
Comment 2 Johan Bergström 2014-07-24 00:36:16 UTC
This is probably related: https://github.com/networkupstools/nut/issues/73

..should be fixed with nut 2.7.2. Can you please test bumping locally?

@prometheanfire: Please look at bumping nut. Thanks!
Comment 3 Malcolm Lashley 2014-07-24 01:37:10 UTC
I can confirm bumping nut locally to 2.7.2 also solved the problem.

FYI I had to comment out some patches from the 2.7.2 ebuild to get nut to compile 2.7.2 (I guess those fixes aren't needed anymore, but I didn't do any checking other than it still produced a working upsc, and collectd compiled against the new libupsclient.so)

duality nut # diff nut-2.7.1.ebuild nut-2.7.2.ebuild 
91d90
<       ht_fix_file configure.in
93c92
<       epatch "${FILESDIR}"/${PN}-2.4.1-no-libdummy.patch
100,102c99,101
<       sed -e "s:GD_LIBS.*=.*-L/usr/X11R6/lib \(.*\) -lXpm -lX11:GD_LIBS=\"\1:" \
<           -e '/systemdsystemunitdir=.*echo.*sed.*libdir/s,^,#,g' \
<               -i configure.in || die
Comment 4 Johan Bergström 2014-07-24 01:38:55 UTC
Good to hear. Lets hear back from prometheanfire regarding bumping nut and then possibly version the dependency from collectd.
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-07-24 04:43:08 UTC
ok, nut bumped
Comment 6 Patrice Clement gentoo-dev 2016-02-29 16:20:23 UTC
commit 0351034075163e36645165d2b1e5683fd7511015 (HEAD -> master)
Merge: a0b7390 3b459b6
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Mon Feb 29 15:31:16 2016 +0000

Merge github#887: app-admin/collectd: Version bump to v5.5.1

This PR bumps collectd to version 5.5.1 and fixes a raft of bugs.

See commit 3b459b6d37f22f9da2c070173756bf12de2591f0 for a lengthy explanation
concerning the changes involved.

Pull-Request: https://github.com/gentoo/gentoo/pull/887
Gentoo-Bug: https://bugs.gentoo.org/570766
Gentoo-Bug: https://bugs.gentoo.org/517060
Gentoo-Bug: https://bugs.gentoo.org/524400
Gentoo-Bug: https://bugs.gentoo.org/570778
Reporter: Thomas D <whissi@whissi.de>
Acked-by: Johan Bergström <bugs@bergstroem.nu>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>