/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../ lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_globallookup': (.text+0x13): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc vers ion used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../ lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_globallookup': (.text+0x13): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_globallookup': (.text+0x13): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libudev.a(util.o): in function `get_group_creds': (.text+0x1f57): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1fb4): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libudev.a(util.o): in function `get_user_creds': (.text+0x1e64): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1daa): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libcrypto.a(b_addr.o): in function `BIO_lookup_ex': (.text+0xcee): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking : /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libudev.a(util.o): in function `get_group_creds': (.text+0x1f57): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1fb4): /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libudev.a(util.o): in function `get_group_creds': (.text+0x1f57): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1fb4): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libudev.a(util.o): in function `get_user_creds': (.text+0x1e64): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1daa): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libudev.a(util.o): in function `get_user_creds': (.text+0x1e64): warning: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libcrypto.a(b_addr.o): in function `BIO_lookup_ex': (.text+0xcee): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1daa): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libcrypto.a(b_sock.o): in function `BIO_gethostbyname': (.text+0x71): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libcrypto.a(b_addr.o): in function `BIO_lookup_ex': (.text+0xcee): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libcrypto.a(b_sock.o): in function `BIO_gethostbyname': (.text+0x71): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libcrypto.a(b_sock.o): in function `BIO_gethostbyname': (.text+0x71): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a(libdm-common.o): in function `_add_dev_node': (.text+0x54dd): undefined reference to `__xmknod' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a(libdm-iface.o): in function `_open_control': (.text+0x7fc): undefined reference to `__xmknod' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a(libdm-common.o): in function `_add_dev_node': (.text+0x54dd): undefined reference to `__xmknod' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a(libdm-common.o): in function `_add_dev_node': (.text+0x54dd): undefined reference to `__xmknod' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a(libdm-iface.o): in function `_open_control': (.text+0x7fc): undefined reference to `__xmknod' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a(libdm-iface.o): in function `_open_control': (.text+0x7fc): undefined reference to `__xmknod' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1585: veritysetup.static] Error 1 make[2]: *** Waiting for unfinished jobs.... collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1565: cryptsetup.static] Error 1 collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1575: integritysetup.static] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-fs/cryptsetup-2.3.6/work/cryptsetup-2.3.6' make[1]: *** [Makefile:2318: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-fs/cryptsetup-2.3.6/work/cryptsetup-2.3.6' make: *** [Makefile:1138: all] Error 2 * ERROR: sys-fs/cryptsetup-2.3.6::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-fs/cryptsetup-2.3.6::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-fs/cryptsetup-2.3.6::gentoo'`. * The complete build log is located at '/var/log/portage/sys-fs:cryptsetup-2.3.6:20210705-083122.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-fs/cryptsetup-2.3.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryptsetup-2.3.6/temp/environment'. * Working directory: '/var/tmp/portage/sys-fs/cryptsetup-2.3.6/work/cryptsetup-2.3.6' * S: '/var/tmp/portage/sys-fs/cryptsetup-2.3.6/work/cryptsetup-2.3.6'
Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.3.0, glibc-2.33-r1, 5.10.27-gentoo x86_64) ================================================================= System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-_i5-3470_CPU_@_3.20GHz-with-glibc2.33 KiB Mem: 16287264 total, 2982680 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 05 Jul 2021 07:00:01 +0000 Head commit of repository gentoo: df5bd92cf718c79e7dedf7d72d3e063fa1e2ee74 Head commit of repository matrix: 1f48686bfd3788987df8abb9c60122ca2fe6c2b0 Head commit of repository src_prepare-overlay: 341e2b5bbd8a1aceb9c6dcaf1fbf0ef10858ceb7 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 2.7.18_p10::gentoo, 3.9.5_p2::gentoo dev-util/cmake: 3.18.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.3.0::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.33-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-max-age: 28 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=ivybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=ivybridge -fstack-protector-strong -mfpmath=sse" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /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 -fomit-frame-pointer -march=ivybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=ivybridge -fstack-protector-strong -mfpmath=sse" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" 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 -fomit-frame-pointer -march=ivybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=ivybridge -fstack-protector-strong -mfpmath=sse" 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 pid-sandbox protect-owned qa-unresolved-soname-deps sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -fomit-frame-pointer -march=ivybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=ivybridge -fstack-protector-strong -mfpmath=sse" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4 --load-average=4" 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="64bit R X a52 aac aalib acoustid acpi additions adobe-cff aio alsa amd64 ap arcade arping asf asm audio audiofile avcodec avformat blake2 blksha1 bookmarks bwscheduler bzip2 cacert cairo caps cdda cdio cdr chm chromaprint chromium chroot classic cli client clock-panel-plugin cpumining crypt cryptsetup css cups daemon dav1d dbus desktop-utils device-mapper dga directfb display-manager djvu downloadorder dri dri3 drm drop-root dvbpsi dvd dvdnav dvdr e2e ebook egl eigen encode epub espeak exceptions exif expat extra extra-filters fbcon fdt ffmpeg file-transfer filecaps flac fluidsynth fontconfig fortran gallium gbm gcj gd ggi gif glass glib glibc-omitfp globalcfg gmp gpm gsm handbook hardcoded-tables harfbuzz hddtemp hpcups hpn hunspell iconv icu idea imap imlib infowidget inotify iostats ipc ipfilter iptables ipv6 jabber javafx jbig jit joystick jpeg jpeg2k jsbsim kdcraw kmod lame lcms less libass libglvnd libinput libkms libmpv libsamplerate libtirpc libwww live lm_sensors logviewer luajittex lzma mad matroska mbox mdns-bundled memlimit mesh midi mime minizip mmx mmxext mouse mp3 mp4 mpeg mta nas native-extensions native-symlinks ncurses net netifrc network nls no-old-linux nodrm npm nptl ntfsprogs ntp ocamlopt offlinehelp ofx ogg okular omemo opengl openmedia openmp openssl opus oscar osdmenu p2p pango pch pcre pcre16 pdf pie pin-upstream-blobs pm-utils png portmon postproc private-home ps qml quotes raptor readline real recursion-limit redland rsync-verify rtc rtmp savedconfig scanfolder scanner scp scrypt sdl search seccomp secure-delete security-key sensord shared-glapi shm silc slirp slit smbclient smtp snapshot sndfile sound speex spell spice split-usr sse sse2 sse2_4way sse2check sse4 ssl ssse3 stats svc svg swscale sysfs system-icu systray taglib tcmalloc tcpd test theora thin threads threadsafe tiff tinfo tls-heartbeat toolbar truetype udev unicode upower urandom usb usbredir userlocales userns utils uvm v4l2 vaapi vdpau vhost-net vhost-user-fs video vorbis vtv vulkan wav webdav-neon webp wg-quick whitelist widgets x264 x265 xattr xcb xinerama xkb xml xmp xscreensaver xslt xv xvfb xvid zlib zrtp zstd" ABI_X86="64" ADA_TARGET="gnat_2018" 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="sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt 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="libinput" KERNEL="linux" L10N="en-US" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python2_7" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="i965 intel" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
I guess this has something to do with the glibc update, I re-emerged sys-fs/lvm2 (/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a belongs to it) and after that I was able to update cryptsetup successfully.
(In reply to Frederik Pfautsch from comment #2) > I guess this has something to do with the glibc update, I re-emerged > sys-fs/lvm2 > (/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libdevmapper.a > belongs to it) and after that I was able to update cryptsetup successfully. That worked (thank you). Portage should require the rebuild of sys-fs/lvm2 whenever sys-libs/glibc gets built (although maybe only with the static-libs USE flag enabled).
The error happened to me as well with an: # emerge -uDN @world Yes, glibc was updated. Comment #2 helped to fix the build.
It is a package version issue: sys-fs/cryptsetup-2.3.6 sys-fs/lvm2-2.02.188 just installed succesfully for me. Failed with sys-fs/lvm2-2.02.187-r2: (.text+0x4b49): undefined reference to `__xmknod' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux- gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib6 /libdevmapper.a(libdm-iface.o): in function `_open_control': (.text+0x852): undefined reference to `__xmknod' collect2: error: ld returned 1 exit status
*** This bug has been marked as a duplicate of bug 786816 ***