Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893112 - sys-apps/rng-tools-6.16: stabilisation (was: sys-apps/rng-tools-6.15[jitterentropy] build error: invalid use of undefined type ‘struct jent_notime_ctx’)
Summary: sys-apps/rng-tools-6.16: stabilisation (was: sys-apps/rng-tools-6.15[jitteren...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Göktürk Yüksek
URL:
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks:
 
Reported: 2023-02-03 17:15 UTC by Zdenek Sojka
Modified: 2023-12-14 04:36 UTC (History)
2 users (show)

See Also:
Package list:
sys-apps/rng-tools-6.16
Runtime testing required: ---
nattka: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zdenek Sojka 2023-02-03 17:15:42 UTC
Trying to build sys-apps/rng-tools-6.15 with USE="jitterentropy" fails on compilation error.

Reproducible: Always

Steps to Reproduce:
1. # USE="jitterentropy" emerge -v1 rng-tools

Actual Results:  
Build fails with:
...
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector  -Wl,-O1 -Wl,--as-needed -o rngtest stats.o rngtest.o librngd.a -ljitterentropy 
rngd_jitter.c: In function ‘rngd_notime_start’:
rngd_jitter.c:56:45: error: invalid use of undefined type ‘struct jent_notime_ctx’
   56 |         ret = -pthread_attr_init(&thread_ctx->notime_pthread_attr);
      |                                             ^~
rngd_jitter.c:79:48: error: invalid use of undefined type ‘struct jent_notime_ctx’
   79 |         pthread_attr_setaffinity_np(&thread_ctx->notime_pthread_attr, cpusize, cpus);
      |                                                ^~
rngd_jitter.c:81:42: error: invalid use of undefined type ‘struct jent_notime_ctx’
   81 |         ret = -pthread_create(&thread_ctx->notime_thread_id,
      |                                          ^~
rngd_jitter.c:82:44: error: invalid use of undefined type ‘struct jent_notime_ctx’
   82 |                                 &thread_ctx->notime_pthread_attr,
      |                                            ^~
rngd_jitter.c: In function ‘rngd_notime_stop’:
rngd_jitter.c:97:32: error: invalid use of undefined type ‘struct jent_notime_ctx’
   97 |         pthread_join(thread_ctx->notime_thread_id, NULL);
      |                                ^~
rngd_jitter.c:98:41: error: invalid use of undefined type ‘struct jent_notime_ctx’
   98 |         pthread_attr_destroy(&thread_ctx->notime_pthread_attr);
      |                                         ^~


Expected Results:  
Build succeeds

Portage 3.0.43 (python 3.10.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.36-r5, 6.1.9-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.1.9-gentoo-dist-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.36
KiB Mem:    65231096 total,  45085468 free
KiB Swap:   16511984 total,  16511984 free
Timestamp of repository gentoo: Fri, 03 Feb 2023 15:30:01 +0000
Head commit of repository gentoo: 429536804c65445a2c663c149dd6ee21502b2115
Timestamp of repository gamerlay: Mon, 30 Jan 2023 17:48:18 +0000
Head commit of repository gamerlay: 2aab6c57ab3eb03c4a7e7a365cf163e2c20cecdb

Timestamp of repository palemoon: Thu, 02 Feb 2023 22:01:59 +0000
Head commit of repository palemoon: f71ffc7f9a1e486707b61ca074782b87f0e36766

Timestamp of repository steam-overlay: Mon, 30 Jan 2023 17:48:24 +0000
Head commit of repository steam-overlay: cb2e509008f4686631582637696f9f98d10588d6

Head commit of repository tlp: 4ba9fce0927a4bc87a4df54eb352a163a439810e

Timestamp of repository x11: Mon, 30 Jan 2023 17:48:25 +0000
Head commit of repository x11: c4a50c60b5f885adbd4d50b92c07ab4288d771ab

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.9-r1::gentoo, 3.11.1-r1::gentoo
dev-lang/rust:             1.66.1::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.7-r1::gentoo
sys-devel/gcc:             10.4.1_p20230119-r1::gentoo, 11.3.1_p20230120-r1::gentoo, 12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

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

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gamerlay.git
    masters: gentoo
    volatile: True

palemoon
    location: /var/db/repos/palemoon
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/palemoon.git
    masters: gentoo
    volatile: True

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: True

tlp
    location: /var/db/repos/localrepo-tlp
    sync-type: git
    sync-uri: https://github.com/dywisor/tlp-portage.git
    sync-user: portage
    masters: gentoo
    volatile: True

x11
    location: /var/db/repos/x11
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/x11.git
    masters: gentoo
    volatile: True

crossdev
    location: /var/db/repos/localrepo-crossdev
    masters: gentoo
    priority: 10
    volatile: True

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    priority: 10
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
DISTDIR="/var/cache/distfiles"
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 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache 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"
FFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="cs en"
MAKEOPTS="-j8"
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"
SHELL="/bin/bash"
USE="X a52 aac acpi activities alsa amd64 amr avif bluetooth bluray branding btrfs bzip2 cairo cdda cdr cli crypt cups dav1d dbus declarative dri drm dts dvb dvd dvdr egl elogind encode eps exif flac fortran gdbm gif gles gles2 gles3 gpm graphite gsm gtk gtk3 gui heif iconv icu jbig jpeg jpeg2k jpegxl kde kwallet lcms libglvnd libnotify libtirpc lto lz4 lzma lzo mad matroska midi mng mount mp3 mp4 mpeg multilib multitarget ncurses nls nopic nossp nptl ntfs offensive ogg openexr opengl openh264 openmp opus pam pango pcre pdf pgo plasma png policykit postscript ppds proprietary-codecs qml qt5 rar rav1e raw readline rtmp sdl semantic-desktop smp sound speex spell split-usr ssl startup-notification svg test-rust tga theora threads tiff timidity truetype udev udisks unicode upower usb v4l vaapi vdpau vkd3d vorbis vtv vulkan wayland webp widevine widgets wmf wxwidgets x264 x265 xcb xft xinerama xml xpm xv xvfb xvid xwayland zlib zstd" ABI_X86="32 64" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 BPF AMDGPU" 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_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" 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, LFLAGS, LIBTOOL, 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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-03 17:18:30 UTC
Let's call this a stable bug for fixed rng-tools.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-12 06:13:17 UTC
amd64 done
Comment 3 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-02-20 20:09:54 UTC
x86 done
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-03-16 14:04:12 UTC
ppc64 done
Comment 5 ernsteiswuerfel archtester 2023-08-05 11:24:21 UTC
Looking good on ppc.

Fails tests like other arches (bug #833338).

 # cat rng-tools-893112.report 
USE tests started on Sa 5. Aug 12:24:24 CEST 2023

 FEATURES=' test' failed for =sys-apps/rng-tools-6.16
USE='jitterentropy -nistbeacon -pkcs11 -qrypt -rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy -nistbeacon pkcs11 -qrypt -rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy -nistbeacon -pkcs11 qrypt -rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy nistbeacon -pkcs11 qrypt -rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy -nistbeacon pkcs11 qrypt -rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='jitterentropy nistbeacon -pkcs11 -qrypt rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy -nistbeacon pkcs11 -qrypt rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy nistbeacon pkcs11 -qrypt rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy nistbeacon -pkcs11 qrypt rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='jitterentropy nistbeacon -pkcs11 qrypt rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy -nistbeacon pkcs11 qrypt rtlsdr' succeeded for =sys-apps/rng-tools-6.16
USE='-jitterentropy nistbeacon pkcs11 qrypt rtlsdr' succeeded for =sys-apps/rng-tools-6.16
Comment 6 matoro archtester 2023-12-14 04:36:13 UTC
arm64 done
Comment 7 matoro archtester 2023-12-14 04:36:17 UTC
arm done
Comment 8 matoro archtester 2023-12-14 04:36:22 UTC
ppc done

all arches done