Glibc dropped RPC.h, thus either drop RPC or substitute it by libtirpc. It's nearly drop-in replacement, but the -I and -L compiler flags needs to be modified, because e.g.: /usr/include/tirpc/rpc/rpc.h ... gcc -Wp,-MD,util-linux/.mesg.o.d -std=gnu99 -Iinclude -Ilibbb -include gcc -Wp,-MD,util-linux/.mkswap.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mkswap)" -D"KBUILD_MODNAME=KBUILD_STR(mkswap)" -c -o util-linux/mkswap.o util-linux/mkswap.c gcc -Wp,-MD,util-linux/volume_id/.ubifs.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ubifs)" -D"KBUILD_MODNAME=KBUILD_STR(ubifs)" -c -o util-linux/volume_id/ubifs.o util-linux/volume_id/ubifs.c gcc -Wp,-MD,util-linux/.more.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(more)" -D"KBUILD_MODNAME=KBUILD_STR(more)" -c -o util-linux/more.o util-linux/more.c gcc -Wp,-MD,util-linux/.mount.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mount)" -D"KBUILD_MODNAME=KBUILD_STR(mount)" -c -o util-linux/mount.o util-linux/mount.c gcc -Wp,-MD,util-linux/volume_id/.udf.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(udf)" -D"KBUILD_MODNAME=KBUILD_STR(udf)" -c -o util-linux/volume_id/udf.o util-linux/volume_id/udf.c util-linux/mount.c:253:22: fatal error: rpc/rpc.h: No such file or directory # include <rpc/rpc.h> ^ compilation terminated. make[1]: *** [scripts/Makefile.build:197: util-linux/mount.o] Error 1 make: *** [Makefile:743: util-linux] Error 2 make: *** Waiting for unfinished jobs.... gcc -Wp,-MD,util-linux/volume_id/.volume_id.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(volume_id)" -D"KBUILD_MODNAME=KBUILD_STR(volume_id)" -c -o util-linux/volume_id/volume_id.o util-linux/volume_id/volume_id.c gcc -Wp,-MD,util-linux/volume_id/.xfs.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(xfs)" -D"KBUILD_MODNAME=KBUILD_STR(xfs)" -c -o util-linux/volume_id/xfs.o util-linux/volume_id/xfs.c gcc -Wp,-MD,util-linux/volume_id/.util.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(util)" -D"KBUILD_MODNAME=KBUILD_STR(util)" -c -o util-linux/volume_id/util.o util-linux/volume_id/util.c gcc -Wp,-MD,util-linux/volume_id/.linux_swap.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.29.2)" -O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(linux_swap)" -D"KBUILD_MODNAME=KBUILD_STR(linux_swap)" -c -o util-linux/volume_id/linux_swap.o util-linux/volume_id/linux_swap.c rm -f util-linux/volume_id/lib.a; x86_64-pc-linux-gnu-ar rcs util-linux/volume_id/lib.a util-linux/volume_id/bcache.o util-linux/volume_id/btrfs.o util-linux/volume_id/cramfs.o util-linux/volume_id/exfat.o util-linux/volume_id/ext.o util-linux/volume_id/f2fs.o util-linux/volume_id/fat.o util-linux/volume_id/get_devname.o util-linux/volume_id/hfs.o util-linux/volume_id/iso9660.o util-linux/volume_id/jfs.o util-linux/volume_id/lfs.o util-linux/volume_id/linux_raid.o util-linux/volume_id/linux_swap.o util-linux/volume_id/luks.o util-linux/volume_id/minix.o util-linux/volume_id/nilfs.o util-linux/volume_id/ntfs.o util-linux/volume_id/ocfs2.o util-linux/volume_id/reiserfs.o util-linux/volume_id/romfs.o util-linux/volume_id/squashfs.o util-linux/volume_id/sysv.o util-linux/volume_id/ubifs.o util-linux/volume_id/udf.o util-linux/volume_id/util.o util-linux/volume_id/volume_id.o util-linux/volume_id/xfs.o * ERROR: sys-apps/busybox-1.29.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-apps/busybox-1.29.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-apps/busybox-1.29.2::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.29.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.29.2/temp/environment'. * Working directory: '/var/tmp/portage/sys-apps/busybox-1.29.2/work/busybox-1.29.2' * S: '/var/tmp/portage/sys-apps/busybox-1.29.2/work/busybox-1.29.2' >>> Failed to emerge sys-apps/busybox-1.29.2, Log file: >>> '/var/tmp/portage/sys-apps/busybox-1.29.2/temp/build.log'
# emerge --info Portage 2.3.40 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.26-r7, 4.14.8-gentoo-r1 x86_64) ================================================================= System uname: Linux-4.14.8-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6400+-with-gentoo-2.4.1 KiB Mem: 8180748 total, 5421752 free KiB Swap: 17407996 total, 17407996 free Timestamp of repository gentoo: Tue, 04 Sep 2018 09:15:01 +0000 Head commit of repository gentoo: ebc9e147c082463c98124e546950143b56f17c15 sh bash 4.4_p12 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] ccache version 3.3.4 [enabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.24.3-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.38.2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.10.3-r3::gentoo, 1.11.6-r3::gentoo, 1.14.1-r1::gentoo, 1.15.1-r2::gentoo sys-devel/binutils: 2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo, 2.30-r2::gentoo sys-devel/gcc: 4.9.3::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0-r1::gentoo, 7.3.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 x-portage location: /usr/local/portage masters: gentoo priority: 0 fedora location: /var/lib/layman/fedora masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 Installed sets: @system ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CC="gcc" CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/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" CXX="g++" CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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-logs ccache config-protect-if-modified distlocks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo" LANG="cs_CZ.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="cs en" MAKEOPTS="-j4 -l2.0" 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 7zip X X509 a52 aac aalib acl acpi additions afterimage aio alsa amd64 amr amrnb amrwb apache2 apng artswrappersuid authfile auto-hinter bash-completion berkdb blender-game bluetooth branding bzip2 cairo ccache cdda cddb cdio cdr cdrom cdsound cgi chroot clamav clamd clang cli cmdsubmenu consolekit crypt cscope cuda cups custom-cflags custom-optimization cxx dbus declarative dedicated device-mapper dia directfb doc down-root dri dts dv dvb dvd dvdnav dvdr dynload emboss emerald enca encode exif extensions extra fam fat fbcon ffmpeg fftw flac flash fontconfig fortran freetts ftp fts3 fuse g3dvl gallium games gbm gd gdbm gdu geoip gif glamor glitz glut gmp gpm graphics gstreamer gtk gudev harfbuzz hddtemp hpn humanities iconv icq icu ident iptv ipv6 irc jabber jadetex jamu java javafx javascript jit joystick jpeg kdrive kerberos kpathsea laptop lcms ldap libcaca libnotify libsamplerate libtirpc lirc lm_sensors logrotate logwatch lzma lzo mad mainmenuhooks math mbrola md5sum mikmod minizip mmxext mng mod modules mouse mozdevelop mp2 mp3 mp4 mpeg mpeg2 mpeg3 mplayer msn multilib multislot multiuser music mysql mysqli nas ncurses nls nptl nsplugin ntfs ntfsprogs nvidia nvram ogg opencl opengl openmp pam pango pcre pda pdf php pixbuf png policykit ppds pstricks publishers python qt5 rar rdesktop readline rss rtc rtsp samba sasl savedconfig science screen sdl seamonkey seccomp sensord setup setup-plugin sip sipim slang smime sound sounds sox spell srt sse3 ssl startup-notification stream submenu subtitles subversion suid svg sysfs syslog system-cairo system-icu system-jpeg system-sqlite tcpd tex4ht theora threads threadsafe tiff timercmd timerinfo tk truetype ttxtsubs udev udisks unicode unsupported upnp upower usb uvm v4l2 vcd vdpau vdr vim-syntax vim-with-x vlc vnc volctrl vorbis wav wifi wmf wxwidgets wxwindows x264 x265 xattr xcb xcomposite xetex xft xine xinerama xml xosd xplanet xpm xscreensaver xv xvid xvmc zip zlib" ABI_X86="64" 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="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev joystick keyboard" KERNEL="linux" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" NETBEANS_MODULES="cnd dlight enterprise ergonomics groovy identity mobility php profiler ruby apisupport harness ide java nb websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 545890 [details] Build log
Hmm, even libtirpc is not enough and is missing required interface: coreutils/lib.a(mktemp.o): In function `mktemp_main': mktemp.c:(.text.mktemp_main+0x89): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' util-linux/lib.a(mount.o): In function `xdr_fhstatus': mount.c:(.text.xdr_fhstatus+0xd): undefined reference to `xdr_u_int' mount.c:(.text.xdr_fhstatus+0x35): undefined reference to `xdr_opaque' util-linux/lib.a(mount.o): In function `xdr_mountres3': mount.c:(.text.xdr_mountres3+0xd): undefined reference to `xdr_enum' mount.c:(.text.xdr_mountres3+0x35): undefined reference to `xdr_bytes' mount.c:(.text.xdr_mountres3+0x40): undefined reference to `xdr_int' mount.c:(.text.xdr_mountres3+0x61): undefined reference to `xdr_array' util-linux/lib.a(mount.o): In function `xdr_dirpath': mount.c:(.text.xdr_dirpath+0x6): undefined reference to `xdr_string' util-linux/lib.a(mount.o): In function `nfsmount': mount.c:(.text.nfsmount+0x51d): undefined reference to `pmap_getmaps' mount.c:(.text.nfsmount+0x5f2): undefined reference to `clnttcp_create' mount.c:(.text.nfsmount+0x603): undefined reference to `authunix_create_default' mount.c:(.text.nfsmount+0x69b): undefined reference to `clnt_sperror' mount.c:(.text.nfsmount+0xcf8): undefined reference to `clntudp_create' mount.c:(.text.nfsmount+0xd54): undefined reference to `clnt_spcreateerror' mount.c:(.text.nfsmount+0xda6): undefined reference to `clnt_sperror' mount.c:(.text.nfsmount+0xf3d): undefined reference to `pmap_getport' collect2: error: ld returned 1 exit status So probably the only solution is to drop the RPC as e.g. Fedora did.
Created attachment 545906 [details, diff] Proposed fix
I will handle but please also report this upstream, it is not really our problemt that they are still shipping it in the new releases
It seems there is upstream ticket: https://bugs.busybox.net/show_bug.cgi?id=4562
While it seems valid I am wondiring how you are compiling it, it seems your CFLAGS are not being respected and you call gcc directly, which means you either broke something or just using the ebuild command.
(In reply to Mikle Kolyada from comment #7) > While it seems valid I am wondiring how you are compiling it, it seems your > CFLAGS are not being respected and you call gcc directly, which means you > either broke something or just using the ebuild command. I had busybox config in /etc/portage/savedconfig. Maybe I used ebuild command, I am not 100% sure at the moment.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aba8df7a4743549fa3b92ab0a47bcd756ac2291 commit 1aba8df7a4743549fa3b92ab0a47bcd756ac2291 Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2018-11-24 16:44:42 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2018-11-24 16:48:06 +0000 sys-apps/busybox: Disable RPC support explicitly Closes: https://bugs.gentoo.org/665216 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 sys-apps/busybox/busybox-1.29.3.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)