Hello, I can't compile xterm-367, gcc complains as below: In file included from ./misc.c:58: ./xterm_io.h:180:10: fatal error: sys/stream.h: No such file or directory 180 | #include <sys/stream.h> /* get typedef used in ptem.h */ | ^~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:140: misc.o] Error 1 My last successfull compile was xterm-351. I looked everywhere for sys/stream.h, I think it is non-existent in Linux. Am I missing something? Do I have a wrong config or ENV parameter? I manually tried to compile the source code fiddling with configure script's --disable options, no luck.. Could you help about this please? Since it is marked stable, maintainer should have compiled it successfully. I think there might be something wrong with my system. Am I missing a dependency? Reproducible: Always Steps to Reproduce: 1. emerge x11-terms/xterm-367 2. 3. Actual Results: x86_64-pc-linux-gnu-gcc -I. -I. -DHAVE_CONFIG_H -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DNARROWPROTO=1 -DFUNCPROTO=15 -DOSMAJORVERSION=5 -DOSMINORVERSION=10 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/freetype2 -D_CONST_X_STRING -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/usr/share/pixmaps/\" -march=amdfam10 -O2 -mmmx -mfpmath=sse -msse -msse2 -msse3 -msse4a -m3dnow -pipe -fomit-frame-pointer -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wextra -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wno-inline -Wignored-qualifiers -Wlogical-op -Wvarargs -Wdeclaration-after-statement -Wextra -Wno-unknown-pragmas -Wswitch-enum -Wno-cast-qual -c ./Tekproc.c In file included from ./screen.c:61: ./xterm_io.h:180:10: fatal error: sys/stream.h: No such file or directory 180 | #include <sys/stream.h> /* get typedef used in ptem.h */ | ^~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:140: screen.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from ./main.c:128: ./xterm_io.h:180:10: fatal error: sys/stream.h: No such file or directory 180 | #include <sys/stream.h> /* get typedef used in ptem.h */ | ^~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:140: main.o] Error 1 In file included from ./resize.c:64: ./xterm_io.h:180:10: fatal error: sys/stream.h: No such file or directory 180 | #include <sys/stream.h> /* get typedef used in ptem.h */ | ^~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:140: resize.o] Error 1 In file included from ./misc.c:58: ./xterm_io.h:180:10: fatal error: sys/stream.h: No such file or directory 180 | #include <sys/stream.h> /* get typedef used in ptem.h */ | ^~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:140: misc.o] Error 1 * ERROR: x11-terms/xterm-367::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-terms/xterm-367::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-terms/xterm-367::gentoo'`. * The complete build log is located at '/var/log/portage/x11-terms:xterm-367:20210531-085301.log'. * For convenience, a symlink to the build log is located at '/tmp/portage/x11-terms/xterm-367/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/x11-terms/xterm-367/temp/environment'. * Working directory: '/tmp/portage/x11-terms/xterm-367/work/xterm-367' * S: '/tmp/portage/x11-terms/xterm-367/work/xterm-367' >>> Failed to emerge x11-terms/xterm-367, Log file: >>> '/var/log/portage/x11-terms:xterm-367:20210531-085301.log' * Messages for package x11-terms/xterm-367: * Log file: /var/log/portage/x11-terms:xterm-367:20210531-085301.log * ERROR: x11-terms/xterm-367::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-terms/xterm-367::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-terms/xterm-367::gentoo'`. * The complete build log is located at '/var/log/portage/x11-terms:xterm-367:20210531-085301.log'. * For convenience, a symlink to the build log is located at '/tmp/portage/x11-terms/xterm-367/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/x11-terms/xterm-367/temp/environment'. * Working directory: '/tmp/portage/x11-terms/xterm-367/work/xterm-367' * S: '/tmp/portage/x11-terms/xterm-367/work/xterm-367' Expected Results: Successful compilateion of xterm-367. emerge --info '=x11-terms/xterm-367::gentoo' Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-10.2.0, glibc-2.32-r7, 5.10.14-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.10.14-gentoo-x86_64-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-glibc2.2.5 KiB Mem: 16360788 total, 1677296 free KiB Swap: 16777212 total, 16147708 free Timestamp of repository gentoo: Sat, 29 May 2021 19:30:01 +0000 Head commit of repository gentoo: 19db2de02c7f82573aab1fbf664d3a06d3d0faa7 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 ccache version 4.2.1 [enabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 2.7.18_p9::gentoo, 3.6.13_p3::gentoo, 3.7.10_p3::gentoo, 3.8.9_p2::gentoo, 3.9.4_p1::gentoo dev-lang/rust: 1.51.0-r2::gentoo dev-util/ccache: 4.2.1::gentoo dev-util/cmake: 3.18.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.23::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 9.3.0-r2::gentoo, 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.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 Installed sets: @system ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -mmmx -mfpmath=sse -msse -msse2 -msse3 -msse4a -m3dnow -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind" 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=amdfam10 -O2 -mmmx -mfpmath=sse -msse -msse2 -msse3 -msse4a -m3dnow -pipe -fomit-frame-pointer" DISTDIR="/tmp/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="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://ftp.fau.de/gentoo ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.kaist.ac.kr/gentoo/ ftp://ftp.lanet.kr/pub/gentoo/ ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.swin.edu.au/gentoo ftp://ftp.twaren.net/Linux/Gentoo/ ftp://ftp.vectranet.pl/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://gentoo.bloodhost.ru/ ftp://gentoo.mirror.web4u.cz/ ftp://gentoo.wheel.sk/pub/linux/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.dkm.cz/gentoo/ ftp://mirror.mdfnet.se/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://mirror.ps.kz/gentoo/pub ftp://mirror.rise.ph/gentoo ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://mirrors.rit.edu/gentoo/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://tux.rainside.sk/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.daum.net/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://ftp.fau.de/gentoo http://ftp.fi.muni.cz/pub/linux/gentoo/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/ http://ftp.lanet.kr/pub/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ http://ftp.romnet.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.swin.edu.au/gentoo http://ftp.twaren.net/Linux/Gentoo/ http://ftp.vectranet.pl/gentoo/ http://gentoo-mirror.alexxy.name/ http://gentoo.aditsu.net:8000/ http://gentoo.bloodhost.ru/ http://gentoo.c3sl.ufpr.br/ http://gentoo.cs.utah.edu/ http://gentoo.gossamerhost.com http://gentoo.mirror.web4u.cz/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tera-byte.com/ http://gentoo.modulix.net/gentoo/ http://gentoo.osuosl.org/ http://gentoo.wheel.sk/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.bytemark.co.uk/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.dkm.cz/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.isoc.org.il/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.ps.kz/gentoo/pub http://mirror.rise.ph/gentoo http://mirror.yandex.ru/gentoo-distfiles/ http://mirrors.163.com/gentoo/ http://mirrors.rit.edu/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirrors.xservers.ro/gentoo/ http://tux.rainside.sk/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://www.mirrorservice.org/sites/distfiles.gentoo.org/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://ftp.fau.de/gentoo https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.lanet.kr/pub/gentoo/ https://ftp.linux.org.tr/gentoo/ https://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ https://ftp.snt.utwente.nl/pub/os/linux/gentoo https://gentoo-mirror.alexxy.name/ https://gentoo.c3sl.ufpr.br/ https://gentoo.osuosl.org/ https://gentoo.wheel.sk/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ https://mirror.bytemark.co.uk/gentoo/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.dkm.cz/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ https://mirror.isoc.org.il/pub/gentoo/ https://mirror.leaseweb.com/gentoo/ https://mirror.mdfnet.se/gentoo https://mirror.netcologne.de/gentoo/ https://mirror.ps.kz/gentoo/pub https://mirror.yandex.ru/gentoo-distfiles/ https://mirrors.163.com/gentoo/ https://mirrors.rit.edu/gentoo/ https://mirrors.soeasyto.com/distfiles.gentoo.org/ https://mirrors.tuna.tsinghua.edu.cn/gentoo https://www.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://ftp-stud.hs-esslingen.de/gentoo/ rsync://ftp.fau.de/gentoo rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.linux.org.tr/gentoo-distfiles/ rsync://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ rsync://ftp.snt.utwente.nl/gentoo rsync://ftp.vectranet.pl/gentoo/ rsync://gentoo.bloodhost.ru/gentoo-distfiles rsync://gentoo.c3sl.ufpr.br/gentoo/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ rsync://mirror.bytemark.co.uk/gentoo/ rsync://mirror.dkm.cz/gentoo/ rsync://mirror.eu.oneandone.net/gentoo/ rsync://mirror.leaseweb.com/gentoo/ rsync://mirror.netcologne.de/gentoo/ rsync://mirror.ps.kz/gentoo rsync://mirrors.rit.edu/gentoo/ rsync://mirrors.tera-byte.com/gentoo rsync://rsync.gtlib.gatech.edu/gentoo rsync://rsync.mirrorservice.org/distfiles.gentoo.org/" LANG="C" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="tr en en_GB en_US" MAKEOPTS="-j6" PKGDIR="/usr/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="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo caja cdda cdr cli crypt cups dbus dconf dri dts dvd dvdr emboss encode exif flac fortran gdbm gif glibc-omitfp gnutls gpm gtk gtk3 gudev gui iconv icu introspection iphone ipv6 java jpeg jpeg2k lcms libglvnd libnotify libtirpc mad mmx mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl nptlonly ogg opencl opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba sdl seccomp smp spell split-usr sqlite sse sse2 sse3 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb user-session vaapi vdpau vorbis wxwidgets x264 xattr xcb xml xmp xv xvid xvmc zeroconf zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="intel8x0" APACHE2_MODULES="dir mime authz_host cgi cgid" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx 3dnow 3dnowext mmxext ssse3 sse3 sse2 sse" 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="pc efi-64 coreboot" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS emerge -pqv '=x11-terms/xterm-367::gentoo' [ebuild U ] x11-terms/xterm-367 [351] USE="openpty truetype unicode -Xaw3d -sixel -toolbar -xinerama"
Please attach the full build.log?
Created attachment 712725 [details] x11-terms:xterm-367:20210531-085301.log
Created attachment 712728 [details] /tmp/portage/x11-terms/xterm-367/temp/environment
checking if we should define SYSV... yes I think this is where it went odd, but unsure why it'd think this. Maybe try disabling ccache? On my system the test fails with: configure:9954:10: fatal error: sys/termio.h: No such file or directory And doesn't set SYSV, then doesn't try to include sys/stream.h either. To clarify, that sys/stream.h isn't on your system is normal, something is misleading the build system into thinking it needs it.
Hello, I unmerged ccache, no luck. :/ I am not very familiar with old UNIX ways.. Do I have some kernel setting or a env variable that triggers SystemV need during configure? I don't know where should I exactly look at, any hints?
Could we have config.log please? Also, share if you've done anything "interesting" with your system?
Created attachment 712794 [details] /tmp/portage/x11-terms/xterm-367/work/xterm-367/config.log
About "interesting" things.. Actually, gentoo is the first distro that taught me linux. It was, about I guess 2004 that I installed my current Gentoo OS and since then I am rolling it on. It opened its eyes in a pentium 3 system with 128MB of ram.. From then on, it went through so many rebuilds and CFLAGS changes, portage upgrades, gcc upgrades which might have messed things up on the way.. Until a few weeks ago I was using my custom kernel config, which I started to learn trivially since the beginning. Recently, I switched to systemd and while walking through, noticed that genkernel had a default config. So I decided to switch to it for making my system less experimental. I can attach my kernel config if you suspect anything about it..
gcc-10.2.0 is very old. 10.3.0 is the latest stable. Please check that the last updates completed fine. We can help you live on IRC to track this down. I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3]. I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4]. Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product. [1] https://www.gentoo.org/get-involved/irc-channels/ [2] https://forums.gentoo.org/ [3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html [4] https://www.gentoo.org/support/
Hello all, I recently recompiled my system, switched to supported profiles etc. After about 4 years my system still consistently fail to build xterm, as of today, v396. Since nobody complains about it, there should be something weird about my system I guess. Nevertheless, I tried to discover the cause with some AI help. As I am just a bash scripter, I could not exactly understand why my system is detected as SysV positive. But I made following changes in ptyx.h as AI suggested: It was: #if (defined (__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))) #define USE_USG_PTYS #elif (defined(ATT) && !defined(__sgi)) || defined(__MVS__) || (defined(SYSV) && defined(i386)) #define USE_USG_PTYS #endif AI Suggested: /* Only define USE_USG_PTYS if configure explicitly asks for it */ #ifdef ENABLE_USG_PTYS_FROM_CONFIGURE #define USE_USG_PTYS #endif After this, it got past where it failed. At least, I can compile it manually from where emerge left at its work directory. Even though I cannot understand it in depth, below I am sharing an AI generated report based on my talk, hoping you pro people get a hint about what might have been going wrong: ################# Begin AI TALK Snippet #################### 🧠 Why is SYSV being defined on your system? Within ptyx.h, there's a conditional block that defines USE_USG_PTYS based on certain criteria: #if (defined (__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))) #define USE_USG_PTYS #elif (defined(ATT) && !defined(__sgi)) || defined(__MVS__) || (defined(SYSV) && defined(i386)) #define USE_USG_PTYS #endif This logic unconditionally defines USE_USG_PTYS for systems with glibc version 2.1 or higher, which includes your system with glibc 2.40. The presence of USE_USG_PTYS then leads to the definition of SYSV in other parts of the code. This approach bypasses the configure script's detection mechanisms and assumes a System V–style environment based solely on the glibc version, which is not accurate for modern Linux systems. ################# End AI TALK Snippet #################### Hope that helps.. Thank you.
It doesn't really help, unfortunately. Would be far better to do as jstein said and hop on IRC to allow debugging.
(That fix isn't right at all, either.)
I finally found it. I fiddled with the SysV check logic and do them manually. I found /usr/include/sys/termio.h file from 2020, which made SysV checks positive. The actual file managed by portage was /usr/include/termio.h which is pretty recent. I cannot remember why that termio.h file was put under sys folder. Perhaps it was my doing to try something and forgotten there. Anyway, sorry for the headache I caused. As this is not a bug, perhaps you may consider removing it. Else, that will be a statue of clumsiness to watch and contemplate for those like myself. :D Thank you for your time. All the best.