Hey guys, I'm trying to update an old gentoo install and I came across following issue. I posted on the forum, they asked me to file a bug. the error happens when dev-db/cdb is installed. It provides Making dependencies in /var/tmp/portage/mail-mta/sendmail-8.16.1-r1/work/sendmail-8.16.1/obj.Linux.5.10.27-gentoo.x86_64/vacation make[1]: Entering directory '/var/tmp/portage/mail-mta/sendmail-8.16.1-r1/work/sendmail-8.16.1/obj.Linux.5.10.27-gentoo.x86_64/vacation' rm -f sm_os.h ln -f -s ../../include/sm/os/sm_os_linux.h sm_os.h x86_64-pc-linux-gnu-gcc -M -I. -I../../sendmail -I../../include -DNEWDB -DCDB -DMAP_REGEX -DMAXDAEMONS=64 -DHAS_GETHOSTBYNAME2=1 -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL -D_FFR_TLS_1 -D_FFR_TLS_EC -DNETINET6 -DSOCKETMAP -DNOT_SENDMAIL -O2 vacation.c >> Makefile make[1]: Leaving directory '/var/tmp/portage/mail-mta/sendmail-8.16.1-r1/work/sendmail-8.16.1/obj.Linux.5.10.27-gentoo.x86_64/vacation' Making in /var/tmp/portage/mail-mta/sendmail-8.16.1-r1/work/sendmail-8.16.1/obj.Linux.5.10.27-gentoo.x86_64/vacation make[1]: Entering directory '/var/tmp/portage/mail-mta/sendmail-8.16.1-r1/work/sendmail-8.16.1/obj.Linux.5.10.27-gentoo.x86_64/vacation' (cd ../../libsmdb; sh Build ) Configuration: pfx=, os=Linux, rel=5.10.27-gentoo, rbase=5, rroot=5.10, arch=x86_64, sfx=, variant=optimized Making in /var/tmp/portage/mail-mta/sendmail-8.16.1-r1/work/sendmail-8.16.1/obj.Linux.5.10.27-gentoo.x86_64/libsmdb make[2]: Entering directory '/var/tmp/portage/mail-mta/sendmail-8.16.1-r1/work/sendmail-8.16.1/obj.Linux.5.10.27-gentoo.x86_64/libsmdb' x86_64-pc-linux-gnu-gcc -O2 -I. -I../../sendmail -I../../include -DNEWDB -DCDB -DMAP_REGEX -DMAXDAEMONS=64 -DHAS_GETHOSTBYNAME2=1 -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL -D_FFR_TLS_1 -D_FFR_TLS_EC -DNETINET6 -DSOCKETMAP -DNOT_SENDMAIL -O2 -c -o smcdb.o smcdb.c smcdb.c:22:10: fatal error: cdb.h: No such file or directory 22 | #include <cdb.h> | ^~~~~~~ compilation terminated. my emerge --info Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r7, 5.10.27-gentoo x86_64) ================================================================= System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Celeron-R-_CPU_J1900_@_1.99GHz-with-glibc2.33 KiB Mem: 7850016 total, 859620 free KiB Swap: 16383996 total, 16144248 free Timestamp of repository gentoo: Mon, 27 Dec 2021 00:45:01 +0000 Head commit of repository gentoo: e0747475d19950cb2f536b21b11117cb3133f0fe sh bash 5.1_p8 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.34.0-r3::gentoo dev-lang/python: 2.7.18-r4::gentoo, 3.6.11-r2::gentoo, 3.7.12_p1::gentoo, 3.8.12_p1::gentoo, 3.9.7_p1::gentoo dev-lang/rust: 1.56.1::gentoo dev-util/cmake: 3.20.5::gentoo dev-util/meson: 0.59.4::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo sys-devel/binutils: 2.34-r2::gentoo, 2.35.2::gentoo, 2.36.1-r2::gentoo, 2.37_p1::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/gcc: 10.3.0-r2::gentoo, 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/llvm: 10.0.1::gentoo, 11.1.0::gentoo, 12.0.1::gentoo, 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2" 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/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/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="-O2" DISTDIR="/usr/portage/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 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="http://distfiles.gentoo.org" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de jp cn en" MAKEOPTS="-j1" 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" SHELL="/bin/bash" USE="X a52 aac aacplus acl amd64 amr amrenc apache2 bcmath bl bluray boost bridge bs2b bzip2 cairo calendar cdb cdda cddb cdio cdparanoia cgi cjk cli client consolekit corefonts coverage cpudetection crypt cryptsetup css cups curl dbus djvu dri dts dv dvb dvd dvdarchive dvdnav dvdr dvi elogind encode exif exiv2 faac faad ffmpegthumbnailer fftw flac flatfile fontconfig fortran fpm fpx ftp gd gdbm ggi gif gme gmp gpm gsm gtk gtk2 harfbuzz hddtemp iconv icu iec61883 imagemagick imap inifile intl iostats ipv6 jpeg jpeg2k kvazaar kvm ladspa lastfm libass libglvnd libilbc libmpeg2 librtmp libsoxr libtirpc libv4l live logrotate lzma lzo mad magic md5sum mhash minizip mjpeg mng mp3 mp3rtp mp3tunes mp4 mpeg mpeg2 mpeg3 mpg123 multilib mysql mysqli nas ncat ncurses ndiff nls nmap-update nping nptl nss ogg openexr opengl openh264 openmp opus pam pcntl pcre pcre16 pdf pdo php pic png pnm policykit postscript protocol-extensions pulseaudio python quicktime rar readline rtmp samba sdl seccomp server snmp soap sockets speex spell split-usr sqlite ssl svg sysvipc taglib text theora tidy tiff toolame truetype twolame unicode urandom usb usbredir v4l vaapi vcd vorbis vpx wavpack wddx webp websockets wmf x264 x265 xattr xcb xetex xkb xml xmlreader xmlrpc xmlwriter xpm xrandr xslt xvid yuv4mpeg zimg zip zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="mmx sse sse2 mmxext" 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" 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="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="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: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Thanks for filing the bug! In future, please include the full build.log, but probably isn't necessary here. Remember to depclean once your upgrades are done :)