Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 822855

Summary: net-dns/dnsdist-1.6.1: configure: error: size of time_t is 4 on x86
Product: Gentoo Linux Reporter: Jakov Smolić <jsmolic>
Component: Current packagesAssignee: Andreas Schürch <nativemad>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 910502, 796137    

Description Jakov Smolić archtester gentoo-dev 2021-11-10 09:44:43 UTC
* Package:    net-dns/dnsdist-1.6.1
 * Repository: gentoo
 * Maintainer: nativemad@gentoo.org
 * USE:        abi_x86_32 elibc_glibc kernel_linux lmdb lua_single_target_lua5-1 ssl systemd test userland_GNU x86
 * FEATURES:   network-sandbox preserve-libs sandbox test userpriv usersandbox
 * Using lua5.1 to build
>>> Unpacking source...
>>> Unpacking dnsdist-1.6.1.tar.bz2 to /var/tmp/portage/net-dns/dnsdist-1.6.1/work
>>> Source unpacked in /var/tmp/portage/net-dns/dnsdist-1.6.1/work
>>> Preparing source in /var/tmp/portage/net-dns/dnsdist-1.6.1/work/dnsdist-1.6.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-dns/dnsdist-1.6.1/work/dnsdist-1.6.1 ...
 * econf: updating dnsdist-1.6.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating dnsdist-1.6.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/dnsdist-1.6.1 --htmldir=/usr/share/doc/dnsdist-1.6.1/html --with-sysroot=/ --libdir=/usr/lib --sysconfdir=/etc/dnsdist --with-lua=lua5.1 --disable-dns-over-https --disable-dnscrypt --disable-dnstap --with-lmdb --without-re2 --without-net-snmp --enable-dns-over-tls --without-gnutls --with-libssl --enable-systemd --enable-unit-tests
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 a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '250' is supported by ustar format... yes
checking whether GID '250' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether i686-pc-linux-gnu-gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of i686-pc-linux-gnu-gcc... none
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of i686-pc-linux-gnu-g++... none
checking size of time_t... 4
configure: error: size of time_t is 4, which is not large enough to fix the y2k38 bug

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-dns/dnsdist-1.6.1/work/dnsdist-1.6.1/config.log
 * ERROR: net-dns/dnsdist-1.6.1::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  127:  Called src_configure
 *             environment, line 2024:  Called econf '--sysconfdir=/etc/dnsdist' '--with-lua=lua5.1' '--disable-dns-over-https' '--disable-dnscrypt' '--disable-dnstap' '--with-lmdb' '--without-re2' '--without-net-snmp' '--enable-dns-over-tls' '--without-gnutls' '--with-libssl' '--enable-systemd' '--enable-unit-tests'
 *        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-dns/dnsdist-1.6.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-dns/dnsdist-1.6.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-dns/dnsdist-1.6.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dns/dnsdist-1.6.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-dns/dnsdist-1.6.1/work/dnsdist-1.6.1'
 * S: '/var/tmp/portage/net-dns/dnsdist-1.6.1/work/dnsdist-1.6.1'

# emerge --info
Portage 3.0.28 (python 3.9.8-final-0, default/linux/x86/17.0/systemd, gcc-11.2.0, glibc-2.33-r7, 5.10.68-gentoo-dist i686)
=================================================================
System uname: Linux-5.10.68-gentoo-dist-i686-Common_KVM_processor-with-glibc2.33
KiB Mem:    65850768 total,  25236592 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 10 Nov 2021 08:00:01 +0000
Head commit of repository gentoo: 32725cfaa385879bb21be243fa83255f653609cf
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.9.8::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/cmake:           3.21.4::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::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.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 20"
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="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j64 -l64"
PKGDIR="/var/cache/binpkgs"
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 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2019" 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 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" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-10 09:51:55 UTC
From glibc-2.34 release notes:
“* Add support for 64-bit time_t on configurations like x86 where time_t
  is traditionally 32-bit.  Although time_t still defaults to 32-bit on
  these configurations, this default may change in future versions.
  This is enabled with the _TIME_BITS preprocessor macro set to 64 and is
  only supported when LFS (_FILE_OFFSET_BITS=64) is also enabled.  It is
  only enabled for Linux and the full support requires a minimum kernel
  version of 5.1.”

So, we can revisit this once we keyword it. Feel free to run with 2.34 if you’re bored and see if we’re missing appending LFS flags in ebuilds.

On x86/32 bit, typical LFS failures involve off_t.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-10 09:53:14 UTC
(Actually, for keywording/~arch, please do if you can! Most stuff shojld work and if it doesn’t, we want to now about it.)
Comment 3 Larry the Git Cow gentoo-dev 2022-06-08 02:57:07 UTC
The bug has been referenced in the following commit(s):

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

commit 323f769c2484458668a03f4a5a497f5d58ab2ee4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-08 02:56:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-08 02:56:58 +0000

    net-dns/dnsdist: add LFS flags
    
    Includes time64 bits too.
    
    Bug: https://bugs.gentoo.org/822855
    Bug: https://bugs.gentoo.org/796137
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/dnsdist/dnsdist-1.7.1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2022-06-08 07:10:55 UTC Comment hidden (obsolete)