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

Bug 776358

Summary: sys-auth/sssd-2.4.2[python] configure: error: Could not find python3 headers
Product: Gentoo Linux Reporter: Leonid Kopylov <leonchik1976>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: normal CC: alexxy, foufou33, ionen, jasmin+gentoo, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/SSSD/sssd/issues/5336
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732648    
Attachments: build.log

Description Leonid Kopylov 2021-03-15 13:39:40 UTC
# emerge -pqv '=sys-auth/sssd-2.4.2::gentoo'
[ebuild  N    ] sys-auth/sssd-2.4.2  USE="acl doc locator man netlink nfsv4 nls pac python samba sudo systemd (-selinux) -test -valgrind" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"

# emerge --info '=sys-auth/sssd-2.4.2::gentoo'
Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-10.2.0, glibc-2.32-r8, 5.11.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-10710U_CPU_@_1.10GHz-with-glibc2.2.5
KiB Mem:     8149636 total,   3244880 free
KiB Swap:    8388604 total,   8387544 free
Timestamp of repository gentoo: Mon, 15 Mar 2021 10:00:01 +0000
Head commit of repository gentoo: 9f4d078cf2feeaab0e3fddad20192f5781a26380
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.8.8::gentoo, 3.9.2::gentoo, 3.10.0_alpha6-r2::gentoo
dev-util/cmake:           3.19.6::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::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.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome OPERA-2018 PUEL AnyDesk-TOS geekbench TeamViewer microsoft-edge"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="/var/cache/distfiles"
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="-march=native -O2 -pipe -fomit-frame-pointer"
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="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="X a52 aac aacs aalib accessibility acl acpi addc addns ads afp afs alsa amd64 apidoc apng archive aspell audio audit authdaemond autoipd avif bdplus berkdb bidi bluetooth bluray bookmarks branding brotli bzip2 cacert cairo ccache cdda cddb cdio cdr cgi cgroup-hybrid chromaprint chromium cli clockdiff codec2 colord conch conntrack contrib cookie_check corefonts creds cron crypt cryptsetup cscope cups curl dbus declarative designer device-mapper djvu dnd dns dns-over-tls doc doctool dot doxysearch dri dts dvb dvd dvdr dynamic-loading emacs emboss encode eolconv equalizer examples exif experimental extra extras fam fbcon fdk ffmpeg firmware flac flite fontconfig fontforge fortran fribidi fuse games gconf gd gdbm geoclue geolocation gfile gif git gles2 gme gmp go google gopher gpg gphoto2 gpm graph graphviz gsettings gsm gssapi gstreamer gtk gtk-doc gui guile harfbuzz hdri heif help highlight howl-compat hpn html http http2 iconv icu idn imagemagick imlib importd inputlirc ios ipod ipv6 iscsi jadetex java jpeg json junction justify kerberos kvazaar ladspa latex lcms ldap ldap-bind ldap-sasl ldapdb leaps-timezone libass libcaca libde265 libdrm libglvnd libnotify librtmp libsoxr libtesseract libtirpc libv4l libzfs lirc lm-sensors lmdb localstorage location lua lzma mad magic mailutils man math mdadm mdnsresponder-compat mediawiki mediawiki-experimental metalink metric minizip mng modplug mongo mongodb mount mp3 mp4 mpeg mpfr mpx mtp mule multilib mysql nas nat natspec ncurses netgroups nethack netlink networkauth networkmanager nfs nfsv4 nfsv41 nftables nis nls nptl nscd nsplugin ntlm odbc odbcmanual offensive ogg openexr opengl openh264 openldap openmp openntpd opus orientation overlay overlays ovs pac pam pango parse-clocks pcap pci pcre pdf perl plugins png policykit pop positioning postfix postgres ppds pulseaudio pwhich python qml qrcode qt5 quota radius raw readline realtime remote remotecalls repart rpc rtmp rubberband ruby samba sample sasl savedconfig sctp sdl sdl-image seccomp security-key sensord sensors slp smbkrb5passwd snapper snappy sndfile sndio snmp sound source source-highlight sox speex spell spidermonkey split-usr spoof-source spotlight sql sqlite srp srt ssh ssl startup-notification stunnel sudo svg symlink sync-plugin-portage syslog systemd tcl tcpd tdb teamd telnet terminal theora threads tiff tk tls-heartbeat tools trashquota truetype tty-helpers twolame udev udisks unicode upower usb user-session utils v4l vala valadoc vamp vidstab vim vim-pager vim-syntax vnc voices vorbis wayland webchannel webkit webp websockets widgets wifi winbind wininst wks-server wmf wps wxwidgets x11extras x264 x265 xattr xcb xemacs xetex xface xft xindy xinerama xinetd xkb xml xmlpatterns xmss xpm xscreensaver xv xvid xxhash yaml z3 zeroconf zeromq zimg zip zlib zmq zsh-completion zstd" ABI_X86="64 32" ADA_TARGET="gnat_2018" 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 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 sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby25 ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris vmware vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Leonid Kopylov 2021-03-15 13:40:07 UTC
Created attachment 691587 [details]
build.log
Comment 2 Ionen Wolkens gentoo-dev 2021-03-15 14:49:20 UTC
configure:27493: checking for headers required to compile python extensions
configure:27502:   -I/usr/include/python3.9 -I/usr/include/python3.9 conftest.c
./configure: line 3016: -I/usr/include/python3.9: No such file or directory

Looks like $CC goes missing for this one test with USE=python, can only reproduce with autoconf:2.71 (no issue with :2.69)
Comment 3 foufou33 2021-03-19 03:43:28 UTC
I got the same thing with samba version detection.

The probleme seems to stem from the fact that CPP is undefined in configure

this 
https://github.com/SSSD/sssd/issues/5336

point to autoconf. And indeed, after removing autoconf-0.71 sssd-2.4.2 compile fine (at least or seems to).
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-03 23:43:43 UTC
The fix for this seems to be in 2.5.0. Could anybody verify say, 2.5.2 works?
Comment 5 foufou33 2021-08-07 08:05:06 UTC
(In reply to Sam James from comment #4)
> The fix for this seems to be in 2.5.0. Could anybody verify say, 2.5.2 works?

it seems so. 
both autconf and sssd were updated (autoconf first, if the timestamp in eix is to be believed)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-18 23:19:08 UTC
(In reply to foufou33 from comment #5)
> (In reply to Sam James from comment #4)
> > The fix for this seems to be in 2.5.0. Could anybody verify say, 2.5.2 works?
> 
> it seems so. 
> both autconf and sssd were updated (autoconf first, if the timestamp in eix
> is to be believed)

Excellent.