Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909362 - net-analyzer/zabbix-5.0.35: #error zabbix_agent2 does not support GnuTLS library. Compile with OpenSSL (configure parameter --with-openssl) or without encryption support.
Summary: net-analyzer/zabbix-5.0.35: #error zabbix_agent2 does not support GnuTLS libr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 911404
  Show dependency tree
 
Reported: 2023-06-29 07:29 UTC by Sam James
Modified: 2023-08-23 22:48 UTC (History)
2 users (show)

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


Attachments
build.log (file_909362.txt,619.77 KB, text/plain)
2023-06-29 07:29 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-29 07:29:01 UTC
Created attachment 864798 [details]
build.log

# zabbix.com/pkg/tls
pkg/tls/tls.go:779:9: error: #error zabbix_agent2 does not support GnuTLS library. Compile with OpenSSL (configure parameter --with-openssl) or without encryption support.
  779 | #       error zabbix_agent2 does not support GnuTLS library. Compile with OpenSSL\
      |         ^~~~~

----

# emerge --info
Portage 3.0.45.3 (python 3.11.4-final-0, default/linux/x86/17.0/systemd, gcc-12, glibc-2.37-r3, 6.1.35-sam_box i686)
=================================================================
System uname: Linux-6.1.35-sam_box-i686-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.37
KiB Mem:    65757428 total,  30098024 free
KiB Swap:   16662520 total,  11850388 free
Timestamp of repository gentoo: Thu, 29 Jun 2023 07:16:58 +0000
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.10.12::gentoo, 3.11.4::gentoo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.32::gentoo
sys-apps/systemd:          253.3-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::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-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --complete-graph --usepkg=y"
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 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
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="acl bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd test-rust udev unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2021" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31 ruby30" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Miroslav Šulc gentoo-dev 2023-06-29 07:40:03 UTC
my guess is gnutls should be disabled for agent2, but just for that one (but then it would need openssl for agent2 even when gnutls is enabled), as other modules (agent, server, proxy) might still support gnutls (i did not check it). it would be definitely easier to drop gnutls support and support just openssl.
Comment 2 Larry the Git Cow gentoo-dev 2023-08-23 16:48:56 UTC
The bug has been closed via the following commit(s):

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

commit 0a38c2aa42c8b69efb99c6e919a17b67143d087e
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2023-08-23 16:32:51 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2023-08-23 16:48:46 +0000

    net-analyzer/zabbix: when compiling with agent2, prohibit gnutls
    
    agent2 supports only openssl whereas the other modules support also
    gnutls - it would be better to still allow gnutls for other modules
    and force use of openssl only for agent2 (in fact
    https://www.zabbix.com/documentation/current/en/manual/encryption
    mentions it should be possible but does not show how) but that would
    need to find out how to do that (probably splitting agent2 to
    a separate package would be the solution)
    
    Closes: https://bugs.gentoo.org/909362
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 net-analyzer/zabbix/zabbix-5.0.35.ebuild | 1 +
 net-analyzer/zabbix/zabbix-5.0.36.ebuild | 1 +
 net-analyzer/zabbix/zabbix-6.0.18.ebuild | 1 +
 net-analyzer/zabbix/zabbix-6.0.19.ebuild | 1 +
 net-analyzer/zabbix/zabbix-6.0.20.ebuild | 1 +
 net-analyzer/zabbix/zabbix-6.4.3.ebuild  | 1 +
 net-analyzer/zabbix/zabbix-6.4.4.ebuild  | 1 +
 net-analyzer/zabbix/zabbix-6.4.5.ebuild  | 1 +
 8 files changed, 8 insertions(+)
Comment 3 matoro archtester 2023-08-23 20:05:14 UTC
The commit for this is wrong, it forgot the question mark after agent2 so it is now forcing USE=agent2 via REQUIRED_USE.
Comment 4 Larry the Git Cow gentoo-dev 2023-08-23 22:47:47 UTC
The bug has been referenced in the following commit(s):

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

commit ca70fbee41969352b6340aa69e883c48aa9f9bdd
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2023-08-23 22:47:22 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2023-08-23 22:47:42 +0000

    net-analyzer/zabbix: fixed REQUIRED_USE syntax
    
    Bug: https://bugs.gentoo.org/909362
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 net-analyzer/zabbix/zabbix-5.0.35.ebuild | 2 +-
 net-analyzer/zabbix/zabbix-5.0.36.ebuild | 2 +-
 net-analyzer/zabbix/zabbix-5.0.37.ebuild | 2 +-
 net-analyzer/zabbix/zabbix-6.0.18.ebuild | 2 +-
 net-analyzer/zabbix/zabbix-6.0.19.ebuild | 2 +-
 net-analyzer/zabbix/zabbix-6.0.20.ebuild | 2 +-
 net-analyzer/zabbix/zabbix-6.0.21.ebuild | 2 +-
 net-analyzer/zabbix/zabbix-6.4.3.ebuild  | 2 +-
 net-analyzer/zabbix/zabbix-6.4.4.ebuild  | 2 +-
 net-analyzer/zabbix/zabbix-6.4.5.ebuild  | 2 +-
 net-analyzer/zabbix/zabbix-6.4.6.ebuild  | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)
Comment 5 Miroslav Šulc gentoo-dev 2023-08-23 22:48:34 UTC
(In reply to matoro from comment #3)
> The commit for this is wrong, it forgot the question mark after agent2 so it
> is now forcing USE=agent2 via REQUIRED_USE.

thanks for noticing it and reporting back, should be fixed now.