Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667620 - sys-libs/pam-1.3.0-r2: emerge failed: libpam_misc/misc_conv.c:329:19: warning: the address of 'binary_prompt' will always evaluate as 'true'
Summary: sys-libs/pam-1.3.0-r2: emerge failed: libpam_misc/misc_conv.c:329:19: warning...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-03 06:23 UTC by reot+gentoo
Modified: 2018-10-09 13:54 UTC (History)
3 users (show)

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


Attachments
Relevant snippets from build.log (snippets-from-build.log,8.10 KB, text/x-log)
2018-10-03 06:23 UTC, reot+gentoo
Details
Output from emerge --info (emerge--info.txt,5.17 KB, text/plain)
2018-10-03 06:24 UTC, reot+gentoo
Details
Full build log (sys-libs:pam-1.3.0-r2:20181003-060146.log.xz,19.90 KB, application/x-xz)
2018-10-07 15:34 UTC, reot+gentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description reot+gentoo 2018-10-03 06:23:44 UTC
Created attachment 549056 [details]
Relevant snippets from build.log

First Gentoo bug (and switched to Gentoo only two weeks ago), so please be gentle. :)

emerge --update --deep tries to update pam from 1.2.1-r2 to 1.3.0-r2 and fails with:

 * ERROR: sys-libs/pam-1.3.0-r2::gentoo failed:
 *   install aborted due to severe warnings shown above
 * 
 * Call stack:
 *   misc-functions.sh, line 601:  Called install_qa_check
 *   misc-functions.sh, line 217:  Called source 'install_symlink_html_docs'
 *      90gcc-warnings, line 167:  Called gcc_warn_check
 *      90gcc-warnings, line 161:  Called die
 * The specific snippet of code:
 *                              has stricter ${FEATURES} && \
 *                                      die "install aborted due to severe warnings shown above"

Will attach relevant sections of the build log (am I really supposed to post the whole thing?  It's nearly 450 KB) plus output from emerge --info.
Comment 1 reot+gentoo 2018-10-03 06:24:41 UTC
Created attachment 549058 [details]
Output from emerge --info
Comment 2 Jonas Stein gentoo-dev 2018-10-07 15:18:35 UTC
Yes, *attach* the full logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The logs must be part of the ticket, but not on external websites.
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Have a look at the other bugs about 
sys-libs/pam
I think it is a duplicate, but I can not say for sure, because I do not know 
sys-libs/pam well.
Comment 3 reot+gentoo 2018-10-07 15:34:54 UTC
Created attachment 549630 [details]
Full build log
Comment 4 reot+gentoo 2018-10-07 15:46:48 UTC
Thank you for your kind reply.  Full build log has been compressed and attached.

Sorry about emerge --info: I must have overlooked the part about appending category/packagename.  Unfortunately, I have thus not saved the necessary information.  I have since reconfigured my system not to use pam at all (a rather agreeable workaround for this problem, made possible by the wonders of Gentoo), so I guess running `emerge --info sys-libs/pam' now would not make a whole lot of sense anymore.

I have not been able to find another bug for sys-libs/pam that contains the particular warning that caused my build to fail.

Having learned a bit more about Gentoo in the meantime, I now realize that I probably would not have encountered this problem if I had not selected the "stricter" FEATURE in /etc/portage/make.conf.  I am not sure if you expect a build to succeed at all if "stricter" has been selected.  However, the description of "stricter" in make.conf(5) certainly leads me to believe that it should be possible to compile a security-critical package such as pam with "stricter" set.
Comment 5 reot+gentoo 2018-10-07 15:50:55 UTC
Ok, so I compared the output of `emerge --info sys-libs/pam' and `emerge --info', and it is identical.  So here's the saved output of `emerge --info' from the time the build failed, pasted into the comment box as requested.  (This is identical to the contents of the second attachment created on 10/3.)



Portage 2.3.49 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r7, 4.18.11-mas1 x86_64)
=================================================================
System uname: Linux-4.18.11-mas1-x86_64-AMD_Ryzen_3_2200G_with_Radeon_Vega_Graphics-with-gentoo-2.4.1
KiB Mem:     7130048 total,   4573892 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 03 Oct 2018 00:45:01 +0000
Head commit of repository gentoo: cf5756d9f7c89635bf73b4f781f464b24019a77c
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/libexec/dbus-daemon-launch-helper /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/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 -pipe -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --ask-enter-invalid"
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 -march=znver1"
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 stricter suidctl unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe -march=znver1"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/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 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc modules multilib ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr 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="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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow aes avx mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="libinput 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-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-10-09 13:54:43 UTC
Your failure is releated to the FEATURES="srtricter" in your make.conf. It should _not_ be set on a user's system, it is for developers. And, as portage noticed, please do not report these bugs to gentoo, but to the upstream developers.