Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928164 - net-analyzer/netdata-1.45.1: src/daemon/main.c:1523:29: error: ‘default_rrdeng_disk_quota_mb’ undeclared
Summary: net-analyzer/netdata-1.45.1: src/daemon/main.c:1523:29: error: ‘default_rrden...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-03-30 11:54 UTC by Michael Mair-Keimberger (mm1ke)
Modified: 2024-05-07 18:35 UTC (History)
2 users (show)

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


Attachments
build log (vs5-240330-net-analyzer-netdata-1.45.1-build.log.xz,10.91 KB, application/x-xz)
2024-03-30 11:54 UTC, Michael Mair-Keimberger (mm1ke)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (mm1ke) 2024-03-30 11:54:10 UTC
Created attachment 889045 [details]
build log

Hi,

net-analyzer/netdata-1.45.1 fails to build on a couple of system for me. I've attached the build log from one system.

emerge --info netdata

Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 6.6.21-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.21-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.38
KiB Mem:     8134492 total,   7698560 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 29 Mar 2024 23:04:05 +0000
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.75.0::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: --info=progress2,name0,del0
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

Installed sets: @g_base, @g_base_openrc, @g_base_vm, @vs5
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/openldap/ldap.conf /etc/ssh/sshd_config /etc/sssd/sssd.conf /usr/share/gnupg/qualified.txt"
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=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs=3 -g --binpkg-changed-deps=y --binpkg-respect-use=y --keep-going --oneshot"
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="-O2 -pipe -march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync 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="-O2 -pipe -march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="http://vs7:8080/vs5"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--info=progress2,name0,del0"
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="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp split-usr ssl test-rust threads udev unicode vim-syntax xattr zlib" 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="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" 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="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="qxl virtio" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

net-analyzer/netdata-1.44.0::gentoo was built with the following:
USE="compression filecaps jsonc python -caps -cloud -cups -dbengine -ipmi -mongodb -mysql -nfacct -nodejs -postgres -prometheus -tor -xen" ABI_X86="(64)" CPU_FLAGS_X86="sse2" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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"
Comment 1 Michael Mair-Keimberger (mm1ke) 2024-03-30 11:56:11 UTC
relevant log from the build.log:

[211/435] /usr/bin/x86_64-pc-linux-gnu-gcc -DDLIB_NO_GUI_SUPPORT -D_GNU_SOURCE -I/usr/include/uuid -I/usr/include/json-c -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1_build -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/libnetdata/libjudy/src -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/libnetdata/libjudy/src/JudyCommon -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/aclk/helpers -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/include -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/cloexec -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/brotli/enc -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/golombset -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/libgkc -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/libyrmcds -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/klib -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/neverbleed -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/picohttpparser -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/picotest -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/yaml/include -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/yoml  -O2 -pipe -march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -fexceptions   -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection=full  -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -std=gnu11 -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -DH2O_USE_LIBUV=0 -MD -MT CMakeFiles/netdata.dir/src/daemon/main.c.o -MF CMakeFiles/netdata.dir/src/daemon/main.c.o.d -o CMakeFiles/netdata.dir/src/daemon/main.c.o -c /var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/daemon/main.c
FAILED: CMakeFiles/netdata.dir/src/daemon/main.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DDLIB_NO_GUI_SUPPORT -D_GNU_SOURCE -I/usr/include/uuid -I/usr/include/json-c -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1_build -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/libnetdata/libjudy/src -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/libnetdata/libjudy/src/JudyCommon -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/aclk/helpers -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/include -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/cloexec -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/brotli/enc -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/golombset -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/libgkc -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/libyrmcds -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/klib -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/neverbleed -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/picohttpparser -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/picotest -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/yaml/include -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/yoml  -O2 -pipe -march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -fexceptions   -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection=full  -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -std=gnu11 -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -DH2O_USE_LIBUV=0 -MD -MT CMakeFiles/netdata.dir/src/daemon/main.c.o -MF CMakeFiles/netdata.dir/src/daemon/main.c.o.d -o CMakeFiles/netdata.dir/src/daemon/main.c.o -c /var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/daemon/main.c
/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/daemon/main.c: In function ‘main’:
/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/daemon/main.c:1523:29: error: ‘default_rrdeng_disk_quota_mb’ undeclared (first use in this function)
 1523 |                             default_rrdeng_disk_quota_mb = default_multidb_disk_quota_mb = 256;
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/daemon/main.c:1523:29: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/daemon/main.c:1523:60: error: ‘default_multidb_disk_quota_mb’ undeclared (first use in this function)
 1523 |                             default_rrdeng_disk_quota_mb = default_multidb_disk_quota_mb = 256;
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[212/435] /usr/bin/x86_64-pc-linux-gnu-gcc -DDLIB_NO_GUI_SUPPORT -D_GNU_SOURCE -I/usr/include/uuid -I/usr/include/json-c -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1_build -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/libnetdata/libjudy/src -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/libnetdata/libjudy/src/JudyCommon -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/aclk/helpers -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/include -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/cloexec -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/brotli/enc -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/golombset -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/libgkc -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/libyrmcds -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/klib -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/neverbleed -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/picohttpparser -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/picotest -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/yaml/include -I/var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/web/server/h2o/libh2o/deps/yoml  -O2 -pipe -march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -fexceptions   -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection=full  -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -std=gnu11 -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -DH2O_USE_LIBUV=0 -MD -MT CMakeFiles/netdata.dir/src/daemon/global_statistics.c.o -MF CMakeFiles/netdata.dir/src/daemon/global_statistics.c.o.d -o CMakeFiles/netdata.dir/src/daemon/global_statistics.c.o -c /var/tmp/portage/net-analyzer/netdata-1.45.1/work/netdata-v1.45.1/src/daemon/global_statistics.c
Comment 2 Larry the Git Cow gentoo-dev 2024-05-07 18:35:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=952d6f852c860f4cc37b98ca10a509e78bc78d60

commit 952d6f852c860f4cc37b98ca10a509e78bc78d60
Author:     Michael Mair-Keimberger <mmk@levelnine.at>
AuthorDate: 2024-05-07 18:04:53 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2024-05-07 18:35:25 +0000

    net-analyzer/netdata: fix bug #928164
    
    Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
    
    Closes: https://bugs.gentoo.org/928164
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-analyzer/netdata/files/netdata-1.45.3-dbengine.patch | 13 +++++++++++++
 net-analyzer/netdata/netdata-1.45.3.ebuild               |  2 ++
 2 files changed, 15 insertions(+)