The new package install of net-dns/unbound-1.8.0 ends with: checking for SYSTEMD... no checking for SYSTEMD_DAEMON... no configure: error: systemd enabled but libsystemd not found net-dns/unbound-1.7.3 installs Reproducible: Always Steps to Reproduce: 1.emerge =net-dns/unbound Actual Results: the following message: checking for SYSTEMD... no checking for SYSTEMD_DAEMON... no configure: error: systemd enabled but libsystemd not found !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-dns/unbound-1.8.0/work/unbound-1.8.0-abi_x86_64.amd64/config.log * ERROR: net-dns/unbound-1.8.0::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 124: Called src_configure * environment, line 4132: Called multilib-minimal_src_configure * environment, line 2487: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 2701: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2417: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2415: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 459: Called multilib-minimal_abi_src_configure * environment, line 2481: Called multilib_src_configure * environment, line 2913: Called econf '--disable-debug' '--disable-gost' '--disable-dnscrypt' '--disable-dnstap' '--enable-ecdsa' '--enable-static' '--enable-systemd' '--without-pythonmodule' '--without-pyunbound' '--without-pthreads' '--disable-flto' '--disable-rpath' '--enable-ipsecmod' '--enable-subnet' '--enable-tfo-client' '--enable-tfo-server' '--with-libevent=/usr' '--with-pidfile=/var/run/unbound.pid' '--with-rootkey-file=/etc/dnssec/root-anchors.txt' '--with-ssl=/usr' '--with-libexpat=/usr' * phase-helpers.sh, line 718: Called __helpers_die 'econf failed' * isolated-functions.sh, line 121: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=net-dns/unbound-1.8.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-dns/unbound-1.8.0::gentoo'`. * The complete build log is located at '/var/log/portage/net-dns:unbound-1.8.0:20180914-092956.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-dns/unbound-1.8.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dns/unbound-1.8.0/temp/environment'. * Working directory: '/var/tmp/portage/net-dns/unbound-1.8.0/work/unbound-1.8.0-abi_x86_64.amd64' * S: '/var/tmp/portage/net-dns/unbound-1.8.0/work/unbound-1.8.0' Expected Results: installs Portage 2.3.49 (python 3.5.5-final-0, default/linux/amd64/17.0/systemd, gcc-7.3.0, glibc-2.27-r6, 4.17.6-gentoo-xen-dom0-blktap x86_64) ================================================================= System uname: Linux-4.17.6-gentoo-xen-dom0-blktap-x86_64-Intel-R-_Core-TM-_i3-6300_CPU_@_3.80GHz-with-gentoo-2.6 KiB Mem: 8055584 total, 1528080 free KiB Swap: 8380412 total, 8380412 free Timestamp of repository gentoo: Fri, 14 Sep 2018 08:00:01 +0000 Head commit of repository gentoo: 88da23ee25b92b585362696420115ec027566f10 sh bash 4.4_p23 ld GNU ld (Gentoo 2.30 p3) 2.30.0 app-shells/bash: 4.4_p23::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.15::gentoo, 3.5.5-r1::gentoo dev-util/cmake: 3.12.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo, 2.30-r3::gentoo, 2.31.1::gentoo sys-devel/gcc: 6.4.0-r3::gentoo, 7.3.0-r4::gentoo, 8.2.0-r2::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r6::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-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 libressl location: /var/lib/layman/libressl masters: gentoo priority: 1 pentoo location: /var/lib/layman/pentoo masters: gentoo priority: 2 xpol location: /var/lib/layman/xpol-overlay masters: gentoo priority: 3 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -U_FORTIFY_SOURCE" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -U_FORTIFY_SOURCE" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going y -t" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned 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.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de dk fi jp it tr nl fr" MAKEOPTS="-j5" 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" USE="acl amd64 apache apache2 bcmath berkdb branding bzip2 bzlib calendar cli crypt ctype curl curlwrappers cxx dba dbase dbx dio dri dvd emacs encode exif fam flatfile fortran ftp gd gdbm gmp gudev iconv idn imap ipv6 jpeg ldap libressl libtirpc mad maildir mhash mime mmx mng modules mssql multilib mysql mysqli ncurses nls nptl nptlonly openmp pam pcre pdf pdflib php pic png posix readline samba seccomp session sharedext simplexml soap sockets spell sse sse2 ssl static-libs systemd sysvipc tcpd tidy tiff truetype udev unicode upcall usb vhost xattr xen xml2 xmlrpc xpm xsl zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias authn_core ratelimit socache_shmcb slotmem_shm mysqli access_compat authz_core unixd mpm-prefork suexec" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon plan sheets stage 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="jython2_7 python2_7 jython3_5 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 546902 [details] unbound-1.8.0-build.log build.log of unbound-1.8.0
Are you sure this works for you in previous versions? I debugged the problem and noticed that PKG_CONFIG is unset when systemd.m4 macro will run because "PKG_PROG_PKG_CONFIG" wasn't called (if you compile with USE=python it will work because the code to detect Python will call that macro and run before systemd.m4 macro). But when I fix that I'll run into another build error caused by systemd includes: > libtool: compile: x86_64-pc-linux-gnu-gcc -I. -I/usr/include/python2.7 -DSRCDIR=. -O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wno-error=missing-prototypes -Wno-error=enum-compare -Wno-error=unused-function -Wno-error=deprecated-declarations -frecord-gcc-switches -pthread -c services/cache/dns.c -fPIC -DPIC -o .libs/dns.o > In file included from ./config.h:1226, > from services/cache/dns.c:41: > ./compat/fake-rfc2553.h:53: warning: "_SS_PADSIZE" redefined > # define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr)) > > In file included from /usr/include/sys/socket.h:33, > from ./config.h:968, > from services/cache/dns.c:41: > /usr/include/bits/socket.h:185: note: this is the location of the previous definition > #define _SS_PADSIZE \ > > In file included from ./config.h:1226, > from services/cache/dns.c:41: > ./compat/fake-rfc2553.h:54:8: error: redefinition of ‘struct sockaddr_storage’ > struct sockaddr_storage { > ^~~~~~~~~~~~~~~~ > In file included from /usr/include/sys/socket.h:33, > from ./config.h:968, > from services/cache/dns.c:41: > /usr/include/bits/socket.h:188:8: note: originally defined here > struct sockaddr_storage > ^~~~~~~~~~~~~~~~ >
(In reply to Thomas Deutschmann from comment #2) > Are you sure this works for you in previous versions? I debugged the problem > and noticed that PKG_CONFIG is unset when systemd.m4 macro will run because > "PKG_PROG_PKG_CONFIG" wasn't called (if you compile with USE=python it will > work because the code to detect Python will call that macro and run before > systemd.m4 macro). > > But when I fix that I'll run into another build error caused by systemd > includes: > > > libtool: compile: x86_64-pc-linux-gnu-gcc -I. -I/usr/include/python2.7 -DSRCDIR=. -O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wno-error=missing-prototypes -Wno-error=enum-compare -Wno-error=unused-function -Wno-error=deprecated-declarations -frecord-gcc-switches -pthread -c services/cache/dns.c -fPIC -DPIC -o .libs/dns.o > > In file included from ./config.h:1226, > > from services/cache/dns.c:41: > > ./compat/fake-rfc2553.h:53: warning: "_SS_PADSIZE" redefined > > # define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr)) > > > > In file included from /usr/include/sys/socket.h:33, > > from ./config.h:968, > > from services/cache/dns.c:41: > > /usr/include/bits/socket.h:185: note: this is the location of the previous definition > > #define _SS_PADSIZE \ > > > > In file included from ./config.h:1226, > > from services/cache/dns.c:41: > > ./compat/fake-rfc2553.h:54:8: error: redefinition of ‘struct sockaddr_storage’ > > struct sockaddr_storage { > > ^~~~~~~~~~~~~~~~ > > In file included from /usr/include/sys/socket.h:33, > > from ./config.h:968, > > from services/cache/dns.c:41: > > /usr/include/bits/socket.h:188:8: note: originally defined here > > struct sockaddr_storage > > ^~~~~~~~~~~~~~~~ > > Yes, works with 1.7.3: >>> Completed installing unbound-1.7.3 into /var/tmp/portage/net-dns/unbound-1.7.3/image/ * Final size of build directory: 58360 KiB (56.9 MiB) * Final size of installed tree: 6152 KiB ( 6.0 MiB) strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version usr/lib64/libunbound.a usr/lib64/libunbound.so.2.5.11 usr/sbin/unbound usr/sbin/unbound-checkconf usr/sbin/unbound-control usr/sbin/unbound-host usr/sbin/unbound-anchor ecompressdir: bzip2 -9 /usr/share/doc ecompressdir: bzip2 -9 /usr/share/man >>> Installing (1 of 1) net-dns/unbound-1.7.3::gentoo * * If you want unbound to automatically update the root-anchor file for DNSSEC validation * set 'auto-trust-anchor-file: /etc/unbound/var/root-anchors.txt' in /etc/unbound/unbound.conf * and run * * su -s /bin/sh -c '/usr/sbin/unbound-anchor -a /etc/unbound/var/root-anchors.txt' unbound * * as root to create it initially before starting unbound for the first time after enabling this. * >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
"That can't be true" :) I can reproduce failure with 1.7.3, even 1.6.x and 1.8.0. Anyway, I will commit a fix shortly which will fix systemd detection. Let's see if unbound will then fail to compile for you due to header issue or not (I don't have a real systemd system, I am just testing against a temporary installed image created via `ebuild systemd...ebuild install`; Image location is of course added to PKG_CONFIG_PATH so that pkg-config can locate systemd's pc file(s)).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9610de202f5f50abef2fe675b9fa2c05555dd77 commit f9610de202f5f50abef2fe675b9fa2c05555dd77 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-09-14 15:36:06 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-09-14 22:03:42 +0000 net-dns/unbound: add patch to define PKG_CONFIG in configure Closes: https://bugs.gentoo.org/666218 Package-Manager: Portage-2.3.49, Repoman-2.3.10 net-dns/unbound/files/unbound-1.6.3-pkg-config.patch | 11 +++++++++++ net-dns/unbound/unbound-1.7.3-r1.ebuild | 1 + net-dns/unbound/unbound-1.8.0-r1.ebuild | 1 + 3 files changed, 13 insertions(+)
*** Bug 666236 has been marked as a duplicate of this bug. ***