Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946995 - sys-apps/policycoreutils: run_init.c:206:40: error: implicit declaration of function 'getpass' [-Wimplicit-function-declaration]
Summary: sys-apps/policycoreutils: run_init.c:206:40: error: implicit declaration of f...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-12-27 04:57 UTC by Progenyx
Modified: 2025-04-26 20:49 UTC (History)
1 user (show)

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


Attachments
build.log (sys-apps:policycoreutils-3.6:20241226-193741.log,5.80 KB, text/plain)
2024-12-27 04:59 UTC, Progenyx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Progenyx 2024-12-27 04:57:49 UTC
Build fails with the following snippet:

run_init.c: In function 'authenticate_via_shadow_passwd':
run_init.c:206:40: error: implicit declaration of function 'getpass' [-Wimplicit-function-declaration]
  206 |         if (!(unencrypted_password_s = getpass(PASSWORD_PROMPT))) {
      |                                        ^~~~~~~
run_init.c:206:38: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  206 |         if (!(unencrypted_password_s = getpass(PASSWORD_PROMPT))) {
      |                                      ^
make[1]: *** [<builtin>: run_init] Error 1

Reproducible: Always

Steps to Reproduce:
[ebuild   R   ] sys-apps/policycoreutils-3.6  USE="(audit) (split-usr) (-pam)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"



Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr/musl/hardened/selinux, gcc-14, musl-1.2.4-r2, 5.15.173-gentoo x86_64)
=================================================================
System uname: Linux-5.15.173-gentoo-x86_64-AMD_Ryzen_7_2700X_Eight-Core_Processor-with-libc
KiB Mem:    65755520 total,  35155532 free
KiB Swap:    3145724 total,   3145724 free
Timestamp of repository gentoo: Mon, 23 Dec 2024 01:30:01 +0000
Head commit of repository gentoo: 53291eea1ffa480302c43b4f07935755f0f277a3
Head commit of repository flussence: 02332d00476244172c62ade757c2aa10c2b65735

Head commit of repository guru: 81ae287284219d2a73cc490f9c97b6fec77b3821

Head commit of repository jm-overlay: a56c9a83e320fa09306bfd24c75571ba8625caf0

Head commit of repository musl: 3f3ac3a07ce7edef0ff88317c22bc056d63d1b2c

Head commit of repository mv: 13c51bf36a70abd44854f7e2ac2f3bd972ae33f4

Head commit of repository science: c25956d5e95357a8e5ebbdc2f8a23ff54d921bfe

Head commit of repository vapoursynth: c0292c7cdee507273d15ade64ba8fca7fbdeccf6

Head commit of repository without-systemd: 5d3567162093b20268bee39d28ade80ca3732aeb

Head commit of repository zx2c4: ac2514ea1757196324cf950665c516a5e5026dd5

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.8::gentoo
dev-lang/rust:             1.82.0-r101::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.4::gentoo
llvm-core/lld:             18.1.8::gentoo, 19.1.4::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sec-policy/selinux-base:   2.20240916-r1::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/libselinux:       3.7-r1::gentoo
sys-libs/musl:             1.2.4-r2::gentoo
Repositories:

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

flussence
    location: /var/db/repos/flussence
    sync-openpgp-key-refresh: no
    sync-type: git
    sync-uri: https://repo.or.cz/flussence-overlay.git
    masters: gentoo
    priority: 50
    volatile: False
    sync-git-verify-commit-signature: true

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50
    volatile: False

jm-overlay
    location: /var/db/repos/jm-overlay
    sync-type: git
    sync-uri: https://github.com/Jannis234/jm-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

musl
    location: /var/db/repos/musl
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/musl.git
    masters: gentoo
    priority: 50
    volatile: False

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo
    priority: 50
    volatile: False

science
    location: /var/db/repos/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50
    volatile: False

vapoursynth
    location: /var/db/repos/vapoursynth
    sync-type: git
    sync-uri: https://github.com/4re/vapoursynth-portage.git
    masters: gentoo
    priority: 50
    volatile: False

without-systemd
    location: /var/db/repos/without-systemd
    sync-type: git
    sync-uri: https://github.com/KenjiBrown/without-systemd.git
    masters: gentoo
    priority: 50
    volatile: False

zx2c4
    location: /var/db/repos/zx2c4
    sync-type: git
    sync-uri: https://git.zx2c4.com/portage
    masters: gentoo
    priority: 50
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 1000
    volatile: False

Installed sets: @initrd
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-musl"
CFLAGS="-march=znver1 -O2 -pipe"
CHOST="x86_64-pc-linux-musl"
CONFIG_PROTECT="/etc /etc/omega.conf /usr/bin/startx /usr/lib/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /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=znver1 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y"
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="-march=znver1 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait network-sandbox news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver1 -O2 -pipe"
GENTOO_MIRRORS="https://distfiles.gentoo.org/"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias /etc/dbus-1 /etc/pam.d /etc/systemd /lib/systemd /usr/lib/modules-load.d /usr/lib/systemd /usr/lib64/systemd /usr/share/dbus-1 /usr/share/polkit-1 	/usr/share/locale/[a-d]*/ 	/usr/share/locale/e[a-m]*/ 	/usr/share/locale/en@arabic/ 	/usr/share/locale/en@cyrillic/ 	/usr/share/locale/en@greek/ 	/usr/share/locale/en@hebrew/ 	/usr/share/locale/en@piglatin/ 	/usr/share/locale/e[o-z]*/ 	/usr/share/locale/[f-z]*/"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j15 -l13.5"
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 aalib acl acpi amd64 audiofile audit blas bzip2 cairo caps clamav clang crypt cups curl djvu dv emacs emboss exif expat fbcon ffmpeg fftw flac fltk fontconfig fortran gdbm geoip gif git gnuplot gpm gsl hardened hddtemp hdf5 heif iconv imagemagick imlib inotify ipv6 jack jbig jemalloc jpeg jpeg2k json ladspa lapack lash latex lcms ldap libcaca libsamplerate libtirpc llvm lm-sensors lmdb lz4 lzma lzo mad man memcached milter mime mng mp3 ncurses netcdf nis nntp offensive ofx ogg openal openexr opengl openmp openssl opus oss pcre pdf php pic pie plotutils png posix postgres postscript raw readline rss sasl savedconfig sctp seccomp selinux slp smartcard smp sndfile sockets socks5 speex split-usr sqlite ssl ssp svg syslog szip tcl test-rust theora threads tiff tk truetype unicode usb v4l vaapi valgrind vdpau verify-sig vhosts vnc vorbis vulkan wavpack webp wifi wmf xattr xcb xface xft xinetd xmp xmpp xpm xtpax xv zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" ALSA_CARDS="hda-intel" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="apcups bind capabilities cgroups check_uptime connectivity conntrack cpu cpufreq cpusleep csv df disk dns entropy ethstat exec fhcount filecount fscache hddtemp hugepages interface ipc iptables irq load logfile logparser match_empty_counter match_hashed match_regex match_timediff match_value mbmon memcached memory mqtt network nginx notify_email ntpd numa nut openldap openvpn pcie_errors ping postgresql processes procevent rrdcached rrdtool sensors serial smart swap sysevent syslog tail tcpconns ted thermal threshold uptime users uuid vmem write_http write_log write_syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_QUIC="openssl" CURL_SSL="openssl" ELIBC="musl" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic auth_request autoindex browser cache_purge charset dav dav_ext echo empty_gif fancyindex fastcgi geo gzip limit_conn limit_req map memc memcached metrics proxy realip referer rewrite scgi secure_link security split_clients ssi stub_status upload_progress upstream_check upstream_ip_hash userid uwsgi vhost_traffic_status xslt" NGINX_MODULES_MAIL="imap pop3 smtp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="aarch64 i386 mips64 mips64el ppc64 riscv64 sparc64 x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby32" SANE_BACKENDS="epson epson2 epsonds hp5400" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Progenyx 2024-12-27 04:59:41 UTC
Created attachment 915209 [details]
build.log
Comment 2 Progenyx 2025-04-26 16:57:43 UTC
Build fails for v3.7 too.