Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931776 - COLLECTD_PLUGINS="nut" emerge app-metrics/collectd-5.12.0-r10 fails configure
Summary: COLLECTD_PLUGINS="nut" emerge app-metrics/collectd-5.12.0-r10 fails configure
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-12 02:44 UTC by anthony
Modified: 2024-05-14 15:28 UTC (History)
1 user (show)

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


Attachments
build.log (collectd-5.12.0-r10_build.log,44.10 KB, application/octet-stream)
2024-05-14 04:48 UTC, anthony
Details
config.log (collectd-5.12.0_config.log,621.02 KB, text/plain)
2024-05-14 04:48 UTC, anthony
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anthony 2024-05-12 02:44:45 UTC
During the `configure` stage, I get the following messages:
```
checking int type of port argument for NUT upscli_splitname... unknown
configure: WARNING: Can not find proper port type for upscli_splitname()
checking int type of length/numbering arguments for NUT upscli_list_next... unknown
configure: WARNING: Can not find proper type for array sizes and string lengths used by upscli_list_next()
[...]
nut . . . . . . . . . no (required data types for NUT API were not detected) (dependency error)
```
and the emerge fails shortly afterward.

As far as I know I'm not doing anything crazy with gcc, or glibc, or CFLAGS/CXXFLAGS, so I'm not sure what this datatype issue is. Apparently the change generating this error message was a fix intended for someone on musl that had some time_t issue? (https://github.com/networkupstools/nut/issues/1638) But I'm not using musl; I don't even have it installed. I'm not a C/C++ developer so I don't really get the test, or why it fails.

I haven't had any issues compiling anything else, but I re-emerged glibc and gcc for kicks, then rebooted, emerged cmake-3.28.5 (was on 3.28.3 originally), and I'm still getting this error.

Reproducible: Always

Steps to Reproduce:
1. sudo COLLECTD_PLUGINS="nut" emerge -v =app-metrics/collectd-5.12.0-r10

Actual Results:  
failed to pass configure tests

Expected Results:  
successful compilation

$ sudo emerge --info
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0, gcc-13, glibc-2.38-r13, 6.6.30-gentoo x86_64)
=================================================================
System uname: Linux-6.6.30-gentoo-x86_64-13th_Gen_Intel-R-_Core-TM-_i9-13900H-with-glibc2.38
KiB Mem:    65572476 total,  62904304 free
KiB Swap:          0 total,         0 free                                                                                                                                                                         Timestamp of repository gentoo: Sun, 12 May 2024 01:45:00 +0000
Head commit of repository gentoo: b8356add5987ed9e5e9032d0f5933772cdcaf783
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0                                                                                                                                                                                  distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo                                                                                                                                                                      dev-build/autoconf:        2.71-r7::gentoo                                                                                                                                                                         dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo                                                                                                                                                                            sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 17.0.6::gentoo                                                                                                                                                       sys-devel/gcc:             13.2.1_p20240210::gentoo                                                                                                                                                                sys-devel/gcc-config:      2.11::gentoo                                                                                                                                                                            sys-devel/lld:             15.0.7::gentoo                                                                                                                                                                          sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo                                                                                                                                       sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)                                                                                                                                                     sys-libs/glibc:            2.38-r13::gentoo                                                                                                                                                                        Repositories:                                                                                                                                                                                                                                                                                                                                                                                                                         gentoo                                                                                                                                                                                                                 location: /var/db/repos/gentoo                                                                                                                                                                                     sync-type: rsync                                                                                                                                                                                                   sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage/                                                                                                                                                              priority: -1000                                                                                                                                                                                                    volatile: False                                                                                                                                                                                                    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes                                                                                                                                                                                sync-rsync-verify-jobs: 1                                                                                                                                                                                          sync-rsync-verify-max-age: 3

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE linux-fw-redistributable intel-ucode no-source-code Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=raptorlake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=raptorlake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=raptorlake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=raptorlake -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/      rsync://mirror.leaseweb.com/gentoo/     rsync://mirrors.rit.edu/gentoo/         rsync://mirror.clarkson.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j20 -l20"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="10bit 12bit accel acl amd64 bash-completion bzip2 cet crypt cxx dav1d doc examples expert-mode ext2 ext4 extra extras firmware gdbm grub h264 heif hwloc iconv io-uring ipv6 ktls ldap libaom libtirpc lm-sensors matroska mp3 mp4 multilib ncurses nls numa nvme offensive ogg opencl openmp pam pcre pretty-log python qemu qmanifest readline sasl savedconfig seccomp sensord ssh ssl sudo symlink system-av1 system-ffmpeg system-qemu test-rust threads tpm uefi unicode vaapi verify-sig vim vim-pager vim-syntax vorbis x264 x265 xattr xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="aggregation bind capabilities check_uptime cgroups connectivity cpu cpufreq cpusleep curl curl_json curl_xml df disk hddtemp hugepages interface ipc ipmi logfile logparser mcelog memcached memory mqtt nfs nginx ntpd numa nut openldap pcie_errors perl ping postgresql processes python routeros sensors smart snmp snmp_agent syslog thermal uptime wireless write_log write_prometheus write_syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-4 lua5-3" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic auth_ldap auth_request http_browser http_cache_purge http_charset http_grpc http_gunzip http_headers_more http_limit_conn http_limit_req http_memc http_memcached http_metrics http_mirror http_mp4 http_perl http_proxy http_push_stream http_realip http_referer http_rewrite http_slice http_slowfs_cache http_split_clients http_sticky http_stub_staus http_upload_progress http_upstream_check http_upstream_hash http_upstream_ip_hash http_upstream_keepalive http_upstream_least_conn http_upstream_zone http_userid http_vhost_traffic_status http_xslt" NGINX_MODULES_STREAM="access limit_conn realip return split_clients ssl_preread upstream_hash upstream_least_conn upstream_zone" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_11" QEMU_SOFTMMU_TARGETS="arm aarch64 x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-12 02:54:29 UTC
please include the build.log & config.log
Comment 2 anthony 2024-05-14 04:48:26 UTC
Created attachment 892908 [details]
build.log
Comment 3 anthony 2024-05-14 04:48:36 UTC
Created attachment 892909 [details]
config.log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-14 05:13:43 UTC
configure:109179: x86_64-pc-linux-gnu-gcc -c -march=raptorlake -O2 -pipe  -Wall -Werror   conftest.c >&5
In file included from conftest.c:179:
/usr/include/upsclient.h:102:87: error: unknown type name 'time_t'
  102 | ssize_t upscli_sendline_timeout(UPSCONN_t *ups, const char *buf, size_t buflen, const time_t timeout);
      |                                                                                       ^~~~~~
/usr/include/upsclient.h:105:81: error: unknown type name 'time_t'
  105 | ssize_t upscli_readline_timeout(UPSCONN_t *ups, char *buf, size_t buflen, const time_t timeout);
      |                                                                                 ^~~~~~
conftest.c: In function 'main':
conftest.c:199:53: error: passing argument 4 of 'upscli_list_next' from incompatible pointer type [-Werror=incompatible-pointer-types]
  199 | int res = upscli_list_next(&ups, query_num, &query, &answer_num, &answer);
      |                                                     ^~~~~~~~~~~
      |                                                     |
      |                                                     int *
/usr/include/upsclient.h:100:25: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *'
  100 |                 size_t *numa, char ***answer);
      |                 ~~~~~~~~^~~~
cc1: all warnings being treated as errors
configure:109179: $? = 1
configure: failed program wasconfigure:109179: x86_64-pc-linux-gnu-gcc -c -march=raptorlake -O2 -pipe  -Wall -Werror   conftest.c >&5
In file included from conftest.c:179:
/usr/include/upsclient.h:102:87: error: unknown type name 'time_t'
  102 | ssize_t upscli_sendline_timeout(UPSCONN_t *ups, const char *buf, size_t buflen, const time_t timeout);
      |                                                                                       ^~~~~~
/usr/include/upsclient.h:105:81: error: unknown type name 'time_t'
  105 | ssize_t upscli_readline_timeout(UPSCONN_t *ups, char *buf, size_t buflen, const time_t timeout);
      |                                                                                 ^~~~~~
conftest.c: In function 'main':
conftest.c:199:53: error: passing argument 4 of 'upscli_list_next' from incompatible pointer type [-Werror=incompatible-pointer-types]
  199 | int res = upscli_list_next(&ups, query_num, &query, &answer_num, &answer);
      |                                                     ^~~~~~~~~~~
      |                                                     |
      |                                                     int *
/usr/include/upsclient.h:100:25: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *'
  100 |                 size_t *numa, char ***answer);
      |                 ~~~~~~~~^~~~
cc1: all warnings being treated as errors
configure:109179: $? = 1
configure: failed program was

... so the header is broken.
Comment 5 anthony 2024-05-14 05:37:13 UTC
While I can't assert that it _works_ yet, collectd does appear to build successfully with =sys-power/nut-2.7.4-r8. And 2.8.2 is out, but isn't in portage, for whatever that's worth.