net-dns/pdns-recursor-4.5.1 failed to build on x86 and fails at configure stage with: configure: error: size of time_t is 4, which is not large enough to fix the y2k38 bug Reproducible: Always Steps to Reproduce: 1. get a x86 build host 2. start emerge of pdns-recursor-4.5.1 3. watch configure fail Actual Results: failed build Expected Results: successful build Portage 3.0.18 (python 3.8.9-final-0, default/linux/x86/17.0/hardened, gcc-10.2.0, glibc-2.32-r7, 5.12.8-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-5.12.8-gentoo-i686-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2350-with-glibc2.1.3 KiB Mem: 2973292 total, 385796 free KiB Swap: 1048572 total, 1042684 free Timestamp of repository gentoo: Tue, 01 Jun 2021 14:00:01 +0000 Head commit of repository gentoo: e9b2e23cce3f1c1b049953f82118b10e671d4135 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 3.8.9_p2::gentoo, 3.9.4_p1::gentoo dev-util/cmake: 3.18.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.23::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.2.0-r5::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 2 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: local-overlay location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="@FREE" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=native -pipe" CHOST="i686-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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -mtune=native -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 -march=i686 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-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 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="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j3" 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="activefilter aio ap bzip2 cacert cdb cgi clamav clamdtop crypt ctype curl dane dbm dhcp dkim dovecot-sasl epoll flatfile ftp gd gdbm gif gnutls hardened iconv ipppd iproute2 ipv6 isdnlog jpeg libglvnd libtirpc logrotate lz4 maildir managesieve mbox memlimit mhash mime mmap mschap mysql mysqli ncurses nls nptl openmp pam pcntl pcre pdo perl php pic pie png pop3d posix pppd readline rrdtool sasl seccomp session sharedmem sieve sockets spamassassin split-usr ssl ssp svg sysvipc szip tools unicode x86 xattr xtpax zip zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="3dnow 3dnowext mmx mmxext sse sse2 sse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" 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="php5-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
build.log too please? (and config.log?)
Created attachment 713169 [details] build.log
Created attachment 713172 [details] config.log
This probably affects 32-bit ARM as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2442d569a857955c4afc42529f25d0d4e0cc333 commit c2442d569a857955c4afc42529f25d0d4e0cc333 Author: Sven Wegener <swegener@gentoo.org> AuthorDate: 2021-06-10 19:30:14 +0000 Commit: Sven Wegener <swegener@gentoo.org> CommitDate: 2021-06-10 19:33:25 +0000 net-dns/pdns-recursor: Drop arm and x86 keywords Upstream will only support systems with 64-bit time_t from now on. Closes: https://bugs.gentoo.org/793722 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Sven Wegener <swegener@gentoo.org> net-dns/pdns-recursor/pdns-recursor-4.5.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
erm, newer glibc supports 64-bit time_t even on x86/arm. please see: https://www.gnu.org/software/libc/manual/html_node/64_002dbit-time-symbol-handling.html so, iiuc, you should be able to handle this in the ebuild. you prob also want to kick a request upstream for them to handle this define automatically so you don't have to. i.e. i wonder if `append-lfs-flags; append-cppflags -D_TIME_BITS=64` would do it.
(In reply to SpanKY from comment #6) > erm, newer glibc supports 64-bit time_t even on x86/arm. please see: > https://www.gnu.org/software/libc/manual/html_node/64_002dbit-time-symbol- > handling.html > > so, iiuc, you should be able to handle this in the ebuild. you prob also > want to kick a request upstream for them to handle this define automatically > so you don't have to. > > i.e. i wonder if `append-lfs-flags; append-cppflags -D_TIME_BITS=64` would > do it. yep. ping swegener
Upstream hasn't integrated it yet: https://github.com/PowerDNS/pdns/pull/10933
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d1de341e1404a46b15ae3e84bc400d474cf1a2c commit 1d1de341e1404a46b15ae3e84bc400d474cf1a2c Author: Sven Wegener <swegener@gentoo.org> AuthorDate: 2022-01-08 15:58:23 +0000 Commit: Sven Wegener <swegener@gentoo.org> CommitDate: 2022-01-08 16:12:19 +0000 net-dns/pdns: Enable 64bit time_t support, bug #793722 Closes: https://bugs.gentoo.org/793722 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Sven Wegener <swegener@gentoo.org> net-dns/pdns/pdns-4.5.2-r1.ebuild | 167 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64c23f7fc6604e202f4e9916c85827eee728f58a commit 64c23f7fc6604e202f4e9916c85827eee728f58a Author: Sven Wegener <swegener@gentoo.org> AuthorDate: 2022-01-08 15:58:22 +0000 Commit: Sven Wegener <swegener@gentoo.org> CommitDate: 2022-01-08 16:12:07 +0000 net-dns/pdns-recursor: Enable 64bit time_t support, bug #793722 Closes: https://bugs.gentoo.org/793722 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Sven Wegener <swegener@gentoo.org> .../{pdns-recursor-4.6.0.ebuild => pdns-recursor-4.6.0-r1.ebuild} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
(In reply to Sven Wegener from comment #8) > Upstream hasn't integrated it yet: > https://github.com/PowerDNS/pdns/pull/10933 Can't read minds, you didn't link it here ;)