Summary: | app-admin/collectd-5.4.1-r1 USE=nut - configure: checking for upscli_connect in -lupsclient // /usr/lib64/libupsclient.so: undefined reference to `upsdebugx' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Mirosław <bug> |
Component: | Current packages | Assignee: | Johan Bergström <bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jer, prometheanfire, proxy-maint, robbat2, whissi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
http://bugs.debian.org/731156 https://github.com/networkupstools/nut/issues/73 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
config.log |
Description
Marcin Mirosław
2015-02-20 12:03:53 UTC
Created attachment 397032 [details]
build.log
Created attachment 397034 [details]
config.log
configure:25283: checking for upscli_connect in -lupsclient configure:25308: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -march=native -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fexpensive-optimizations -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -lupsclient conftest.c -lupsclient -ldl -lperl -lpthread >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libupsclient.so: undefined reference to `upsdebugx' /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libupsclient.so: undefined reference to `upslogx' collect2: error: ld returned 1 exit status configure:25308: $? = 1 Please post your `emerge -pvq sys-power/nut' output in a comment. Here is output of `emerge -pvq sys-power/nut`: [ebuild U ] sys-power/nut-2.7.2-r2 [2.7.1] USE="cgi ups_drivers_apcsmart ups_drivers_apcupsd-ups ups_drivers_blazer_usb ups_drivers_usbhid-ups usb -avahi -ipmi (-selinux) -snmp -ssl -tcpd -ups_drivers_al175 -ups_drivers_apcsmart-old -ups_drivers_bcmxcp -ups_drivers_bcmxcp_usb -ups_drivers_belkin -ups_drivers_belkinunv -ups_drivers_bestfcom -ups_drivers_bestfortress -ups_drivers_bestuferrups -ups_drivers_bestups -ups_drivers_blazer_ser -ups_drivers_clone -ups_drivers_clone-outlet -ups_drivers_dummy-ups -ups_drivers_etapro -ups_drivers_everups -ups_drivers_gamatronic -ups_drivers_genericups -ups_drivers_isbmex -ups_drivers_ivtscd -ups_drivers_liebert -ups_drivers_liebert-esp2 -ups_drivers_masterguard -ups_drivers_metasys -ups_drivers_mge-shut -ups_drivers_mge-utalk -ups_drivers_microdowell -ups_drivers_netxml-ups -ups_drivers_nut-ipmipsu -ups_drivers_nutdrv_qx -ups_drivers_oldmge-shut -ups_drivers_oneac -ups_drivers_optiups -ups_drivers_powercom -ups_drivers_powerpanel -ups_drivers_rhino -ups_drivers_richcomm_usb -ups_drivers_riello_ser -ups_drivers_riello_usb -ups_drivers_safenet -ups_drivers_snmp-ups -ups_drivers_solis -ups_drivers_tripplite -ups_drivers_tripplite_usb -ups_drivers_tripplitesu -ups_drivers_upscode2 -ups_drivers_victronups -xml" After upgrade nut to 2.7.2-r2 collectd compiles without error. Could you report the nut-relasted is upstream? I'm guessing it isn't really related to gentoo. Try out latest master and if it breaks similarly, file an issue here: https://github.com/collectd/collectd 5.5 is closing in; it'd be good to get this in beforehand (if they are interested in fixing building against an older version). worst case we'll just pin against a newer version. The original problem was in sys-power/nut, not in app-admin/collectd. Fix from nut project appeared first in sys-power/nut-2.7.2 (see the linked issue 73) so we adjusted requirement in app-admin/collectd to enforce a working sys-power/nut version: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=941399e79779a7d7187af1cc4e17b29bc5988b4c Thanks for the report! Shame on me - I forgot about this bug... Thank you. |