When I try to compille collectd with "nut" I'm getting error. [...] config.status: executing libtool commands Configuration: Libraries: intel mic . . . . . . no (MicAccessApi not found) libaquaero5 . . . . . no (libaquaero5.h not found) libcurl . . . . . . . yes libdbi . . . . . . . no (dbi/dbi.h not found) libcredis . . . . . . no (credis.h not found) libesmtp . . . . . . no (libesmtp not found) libganglia . . . . . no (gm_protocol.h not found) libgcrypt . . . . . . yes libiokit . . . . . . no libiptc . . . . . . . no libjvm . . . . . . . no (jar not found) libkstat . . . . . . no (Solaris only) libkvm . . . . . . . no libmemcached . . . . no (libmemcached/memcached.h not found) libmnl . . . . . . . yes libmodbus . . . . . . no (pkg-config doesn't know libmodbus) libmysql . . . . . . no (mysql_config failed) libnetapp . . . . . . no (netapp_api.h not found) libnetsnmp . . . . . yes libnotify . . . . . . no (No package 'libnotify' found) [...] Reproducible: Always Portage 2.2.14 (python 3.3.5-final-0, hardened/linux/amd64, gcc-4.8.3, glibc-2.19-r1, 3.16.2-gentoo x86_64) ================================================================= System uname: Linux-3.16.2-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1230_V2_@_3.30GHz-with-gentoo-2.2 KiB Mem: 16452896 total, 518168 free KiB Swap: 4193264 total, 2210732 free Timestamp of tree: Thu, 19 Feb 2015 05:15:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p53 dev-lang/perl: 5.20.1-r4 dev-lang/python: 2.7.7, 3.3.5-r1, 3.4.1 dev-util/ccache: 3.1.9-r4 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.9 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.12.6, 1.13.4 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.16 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fexpensive-optimizations" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fexpensive-optimizations" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="pl_PL.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="-O" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gentoo-mirror/gentoo-portage" USE="acl acpi amd64 avx bash-completion bzip2 caps cli cracklib crypt custom-cflags cxx dri filecaps hardened hwdb iconv ipv6 justify libav mmx mmxext modules multilib ncurses nls nptl openmp pax_kernel pcre readline session sse sse2 sse3 sse4 sse41 sse4_1 ssse3 threads udev unicode urandom vim-syntax xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="cgroups conntrack contextswitch cpu df disk entropy ethstat interface irq libvirt load md memory netlink network ntpd nut processes swap syslog tcpconns uptime vmem" CPU_FLAGS_X86="mmx sse sse2" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
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.