emerge fails at configure check phase with message: checking for libevent support... no configure: error: Unable to use libevent (libevent check failed) In an old bug report (#646028) this has been fixed, but it seems to pop up again. Reproducible: Always Steps to Reproduce: 1.emerge zabbix 2.build fails use-flags in use: agent2 ipv6 openssl pcre2 postgres proxy Actual Results: Build fails Expected Results: package should build Workaround: manually install libevent beforehand. emerge info: --------------------------- cut ------------------------------ Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1, gcc-11.3.0, glibc-2.34-r13, 5.10.61-gentoo x86_64) ================================================================= System uname: Linux-5.10.61-gentoo-x86_64-Common_KVM_processor-with-glibc2.34 KiB Mem: 4035404 total, 387116 free KiB Swap: 2097148 total, 2097148 free Timestamp of repository gentoo: Wed, 08 Jun 2022 08:00:01 +0000 Head commit of repository gentoo: b4f653959fc88db0730e0cb89c62b9ea8ae30d21 sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p2) 2.37 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-lang/perl: 5.34.0-r9::gentoo dev-lang/python: 3.9.12::gentoo, 3.10.4::gentoo dev-util/cmake: 3.22.4::gentoo dev-util/meson: 0.61.4-r2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.37_p1-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.34-r13::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-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/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2 -pipe" 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 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" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" 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 amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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 mmxext sse sse2" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS --------------------------- cut ------------------------------ Emerge output: --------------------------- cut ------------------------------ >>> Emerging (1 of 1) net-analyzer/zabbix-6.0.3::gentoo * zabbix-6.0.3.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] * zabbix-6.0.3-go-deps.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking zabbix-6.0.3.tar.gz to /var/tmp/portage/net-analyzer/zabbix-6.0.3/work >>> Unpacking zabbix-6.0.3-go-deps.tar.xz to /var/tmp/portage/net-analyzer/zabbix-6.0.3/work >>> Source unpacked in /var/tmp/portage/net-analyzer/zabbix-6.0.3/work >>> Preparing source in /var/tmp/portage/net-analyzer/zabbix-6.0.3/work/zabbix-6.0.3 ... * Applying zabbix-4.0.18-modulepathfix.patch ... [ ok ] * Applying zabbix-3.0.30-security-disable-PidFile.patch ... [ ok ] * Applying zabbix-6.0.3-system.sw.packages.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/zabbix-6.0.3/work/zabbix-6.0.3 ... * econf: updating zabbix-6.0.3/config.guess with /usr/share/gnuconfig/config.guess * econf: updating zabbix-6.0.3/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --disable-static --docdir=/usr/share/doc/zabbix-6.0.3 --htmldir=/usr/share/doc/zabbix-6.0.3/html --libdir=/usr/lib64 --disable-agent --enable-agent2 --enable-ipv6 --disable-java --enable-proxy --disable-server --disable-static --without-libcurl --without-gnutls --without-ldap --without-libxml2 --without-mysql --without-unixodbc --without-openipmi --with-openssl --without-oracle --with-postgresql --without-net-snmp --without-sqlite3 --without-ssh2 --with-libpcre2 checking for a BSD-compatible install... /usr/lib/portage/python3.9/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes ... checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for zlib support... yes checking for pthread.h... (cached) yes checking for process shared libpthread support... yes checking for libevent support... no configure: error: Unable to use libevent (libevent check failed) !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-analyzer/zabbix-6.0.3/work/zabbix-6.0.3/config.log * ERROR: net-analyzer/zabbix-6.0.3::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 127: Called src_configure * environment, line 3363: Called econf '--disable-agent' '--enable-agent2' '--enable-ipv6' '--disable-java' '--enable-proxy' '--disable-server' '--disable-static' '--without-libcurl' '--without-gnutls' '--without-ldap' '--without-libxml2' '--without-mysql' '--without-unixodbc' '--without-openipmi' '--with-openssl' '--without-oracle' '--with-postgresql' '--without-net-snmp' '--without-sqlite3' '--without-ssh2' '--with-libpcre2' * phase-helpers.sh, line 711: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=net-analyzer/zabbix-6.0.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/zabbix-6.0.3::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info =zabbix-6.0.3 * The complete build log is located at '/var/tmp/portage/net-analyzer/zabbix-6.0.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/zabbix-6.0.3/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/zabbix-6.0.3/work/zabbix-6.0.3' * S: '/var/tmp/portage/net-analyzer/zabbix-6.0.3/work/zabbix-6.0.3'
Please do attach the full build.log as it contains additional information like the true USE flags (excludes masks etc).
i just checked linkage of zabbix_server and it really links against libevent, gonna fix it...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f73cb328316b164a95e3364cd371ead5a5b9fc48 commit f73cb328316b164a95e3364cd371ead5a5b9fc48 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2022-06-10 09:12:07 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2022-06-10 09:12:07 +0000 net-analyzer/zabbix: fixed and improved deps Closes: https://bugs.gentoo.org/850613 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> net-analyzer/zabbix/zabbix-4.0.38-r2.ebuild | 11 ++++++++--- net-analyzer/zabbix/zabbix-4.0.41.ebuild | 11 ++++++++--- net-analyzer/zabbix/zabbix-5.0.22.ebuild | 11 ++++++++--- net-analyzer/zabbix/zabbix-5.0.24.ebuild | 11 ++++++++--- net-analyzer/zabbix/zabbix-6.0.3.ebuild | 12 +++++++++--- net-analyzer/zabbix/zabbix-6.0.5.ebuild | 12 +++++++++--- 6 files changed, 50 insertions(+), 18 deletions(-)