Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656150 - net-misc/dhcp-4.4.1: and every version since 4.3.6 has ./configure error on step: checking for random device... /dev/random
Summary: net-misc/dhcp-4.4.1: and every version since 4.3.6 has ./configure error on s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-20 09:20 UTC by xdev52
Modified: 2021-01-07 12:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xdev52 2018-05-20 09:20:51 UTC
configure error because it can not find /dev/random since 4.3.6 and up. Version 4.3.5 works well.

./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 --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/dhcp-4.4.1 --htmldir=/usr/share/doc/dhcp-4.4.1/html --libdir=/usr/lib64 --enable-paranoia --enable-early-chroot --sysconfdir=/etc/dhcp --enable-dhcpv6 --without-ldap --without-ldapcryptoonfigure --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 --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/dhcp-4.4.1 --htmldir=/usr/share/doc/dhcp-4.4.1/html --libdir=/usr/lib64 --enable-paranoia --enable-early-chroot --sysconfdir=/etc/dhcp --enable-dhcpv6 --without-ldap --without-ldapcrypto

(...)

checking for random device... /dev/random
checking for /dev/random... no
configure: error: cannot find /dev/random

Every version since 4.3.5

[ebuild     U  ] net-misc/dhcp-4.4.1::gentoo [4.3.5::gentoo] USE="client ipv6* ssl -ldap -libressl (-selinux) -server -vim-syntax" 10903 KiB



Reproducible: Always

Steps to Reproduce:
just do emerge -u net-misc/dhcp
Actual Results:  
checking for random device... /dev/random
checking for /dev/random... no
configure: error: cannot find /dev/random

Expected Results:  
checking for /dev/random... yes

 emerge --info
Portage 2.3.38 (python 3.6.5-final-0, default/linux/amd64/17.0/no-multilib, gcc-7.3.0, glibc-2.26-r7, 4.14.39-gentoo x86_64)
=================================================================
System uname: Linux-4.14.39-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.4.1
KiB Mem:     8057552 total,   1662284 free
KiB Swap:    7679996 total,   7367704 free
Head commit of repository gentoo: 59ceecc592c49f454e33025b5d8b136ab5bb12c7


sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p2) 2.30.0
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.11.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
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 ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
Comment 1 Conrad Kostecki gentoo-dev 2019-08-18 17:45:43 UTC
Same problem here.
Thus /dev/random does exist here..
Comment 2 Conrad Kostecki gentoo-dev 2019-08-18 17:59:53 UTC
I digged further into it. It's a problem with usersandbox.

When I do disable the usersandbox with FEATURES="-usersandbox", the Check works and /dev/random is found.
Comment 3 Conrad Kostecki gentoo-dev 2021-01-04 19:40:44 UTC
Still a problem with newest version in tree.
Comment 4 Conrad Kostecki gentoo-dev 2021-01-07 12:31:00 UTC
Closing, as it's a configuration problem.

My test system had NAMESPACE_USER_ENABLE="yes" enabled. This is not the default and not supposed enabled by a user by default.