Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919712 - net-analyzer/netdata-1.44.0 fails to build with USE="-dbengine": daemon/global_statistics.c:860:9: error: ‘tier_page_type’
Summary: net-analyzer/netdata-1.44.0 fails to build with USE="-dbengine": daemon/globa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL: https://github.com/netdata/netdata/co...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-11 17:43 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2024-01-02 15:01 UTC (History)
1 user (show)

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


Attachments
build log (build.log,512.97 KB, text/x-log)
2023-12-11 17:43 UTC, Michael Mair-Keimberger (iamnr3)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2023-12-11 17:43:32 UTC
Created attachment 878673 [details]
build log

Hi,

Recently i was toying with netdata a bit and tried to install it on some of my VMs. From what i was understanding, "child" installations doesn't need any local db, which is why i was trying to install netdata with USE="-dbengine" set.
Unfortunately this fails with following error:



x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -DVARLIB_DIR="\"/var/lib/netdata\"" 	-DCACHE_DIR="\"/var/cache/netdata\"" 	-DCONFIG_DIR="\"/etc/netdata\"" 	-DLIBCONFIG_DIR="\"/usr/lib64/netdata/conf.d\"" 	-DLOG_DIR="\"/var/log/netdata\"" 	-DPLUGINS_DIR="\"/usr/libexec/netdata/plugins.d\"" 	-DRUN_DIR="\"/var/run/netdata\"" 	-DWEB_DIR="\"/usr/share/netdata/web\""     -I/usr/include/uuid   -lcap          -O2 -pipe -fexceptions -flto         -I/usr/include/uuid                          -I /var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/libnetdata/libjudy/src      -DDLIB_NO_GUI_SUPPORT -I /var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/ml/dlib  -Wno-unused-result -Wno-misleading-indentation -Wno-format-security -Wno-format -Wno-unused-function -Wno-unused-parameter -Wno-type-limits -Wno-unused-but-set-variable -Wno-implicit-fallthrough -I/var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/web/server/h2o/libh2o/include -I/var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/web/server/h2o/libh2o/deps/picotls/include -I/var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/web/server/h2o/libh2o/deps/quicly/include -DH2O_USE_LIBUV=0  -fstack-protector-strong -fstack-clash-protection -fcf-protection=full -c -o daemon/unit_test.o daemon/unit_test.c
daemon/global_statistics.c: In function ‘global_statistics_charts’:
daemon/global_statistics.c:860:9: error: ‘tier_page_type’ undeclared (first use in this function)
  860 |     if (tier_page_type[0] == PAGE_GORILLA_METRICS)
      |         ^~~~~~~~~~~~~~
daemon/global_statistics.c:860:9: note: each undeclared identifier is reported only once for each function it appears in
daemon/global_statistics.c:860:30: error: ‘PAGE_GORILLA_METRICS’ undeclared (first use in this function)
  860 |     if (tier_page_type[0] == PAGE_GORILLA_METRICS)
      |                              ^~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -DVARLIB_DIR="\"/var/lib/netdata\"" 	-DCACHE_DIR="\"/var/cache/netdata\"" 	-DCONFIG_DIR="\"/etc/netdata\"" 	-DLIBCONFIG_DIR="\"/usr/lib64/netdata/conf.d\"" 	-DLOG_DIR="\"/var/log/netdata\"" 	-DPLUGINS_DIR="\"/usr/libexec/netdata/plugins.d\"" 	-DRUN_DIR="\"/var/run/netdata\"" 	-DWEB_DIR="\"/usr/share/netdata/web\""     -I/usr/include/uuid   -lcap          -O2 -pipe -fexceptions -flto         -I/usr/include/uuid                          -I /var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/libnetdata/libjudy/src      -DDLIB_NO_GUI_SUPPORT -I /var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/ml/dlib  -Wno-unused-result -Wno-misleading-indentation -Wno-format-security -Wno-format -Wno-unused-function -Wno-unused-parameter -Wno-type-limits -Wno-unused-but-set-variable -Wno-implicit-fallthrough -I/var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/web/server/h2o/libh2o/include -I/var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/web/server/h2o/libh2o/deps/picotls/include -I/var/tmp/portage/net-analyzer/netdata-1.44.0/work/netdata-v1.44.0/web/server/h2o/libh2o/deps/quicly/include -DH2O_USE_LIBUV=0  -fstack-protector-strong -fstack-clash-protection -fcf-protection=full -c -o web/api/badges/web_buffer_svg.o web/api/badges/web_buffer_svg.c



This exact same error happend on multiple vms.
Comment 1 pva 2024-01-02 13:29:03 UTC
And here is the fix from upstream for this issue:
https://github.com/netdata/netdata/commit/ee6c0bcb7f0bfe6440dd7c4c52dca87486abc181.patch

WFM. Please, apply.
Comment 2 Craig Andrews gentoo-dev 2024-01-02 15:01:05 UTC
Thank you!
Comment 3 Larry the Git Cow gentoo-dev 2024-01-02 15:01:11 UTC
The bug has been closed via the following commit(s):

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

commit a9e7c16c506d4d2f59ffc6a82fc5f0b279bf5619
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2024-01-02 15:00:37 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2024-01-02 15:00:37 +0000

    net-analyzer/netdata: fix build failure when USE="-dbengine"
    
    Closes: https://bugs.gentoo.org/919712
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 .../netdata/files/netdata-1.44.0-dbengine.patch    | 47 ++++++++++++++++++++++
 net-analyzer/netdata/netdata-1.44.0.ebuild         |  6 ++-
 2 files changed, 52 insertions(+), 1 deletion(-)