Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610846 - net-libs/libtirpc-1.0.1: fatal error: rpcsvc/yp_prot.h: No such file or directory
Summary: net-libs/libtirpc-1.0.1: fatal error: rpcsvc/yp_prot.h: No such file or direc...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Blocks: glibc-rpc
  Show dependency tree
Reported: 2017-02-24 21:52 UTC by Michael Hofmann
Modified: 2017-07-05 11:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build-log,61.06 KB, text/plain)
2017-02-24 22:07 UTC, Michael Hofmann

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hofmann 2017-02-24 21:52:59 UTC
When I emerge net-libs/libtirpc-1.0.1, I get the error message below:

  /var/tmp/portage/net-libs/libtirpc-1.0.1/work/libtirpc-1.0.1/src/getpublickey.c:41:28: fatal error: rpcsvc/yp_prot.h: No such file or directory
compilation terminated.

The file "/usr/include/rpcsvc/yp_prot.h" does not exist on my server since sys-libs/glibc-2.23-r3 was installed WITHOUT use flag "rpc".

So either libtirpc should get a dependency on glibc[rpc] or a way must be found to compile libtirpc without requiring the rpc header files of glibc. 

A similar problem is discussed here:
Comment 1 Michael Hofmann 2017-02-24 22:07:24 UTC
Created attachment 465046 [details]
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-02-26 03:42:23 UTC
Could you also please add your emerge --info?
Comment 3 nE0sIghT 2017-02-26 19:37:39 UTC

emerge --info 
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r3, 4.9.6-gentoo-r1 x86_64)
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.3
KiB Mem:    16390308 total,   7172304 free
KiB Swap:    2095100 total,   2095100 free
Timestamp of repository gentoo: Sun, 26 Feb 2017 19:03:13 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo

    location: /var/db/repos/gentoo
    sync-type: git
    priority: -1000

    location: /var/db/repos/crossdev
    masters: gentoo
    priority: -1

    location: /var/db/repos/steam-overlay
    sync-type: git
    masters: gentoo

    location: /var/db/repos/vortex
    sync-type: git
    masters: gentoo
    priority: 1000

CFLAGS="-O3 -march=native -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -pipe -fomit-frame-pointer"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="7zip X a-like-o a52 aac aacplus aacs aalib acl acpi alsa alsa-plugin amd64 androiddump apng applet archive argyllcms artworkextra audacious audiofile autoconf-archive automount avx bazaar berkdb bidi bittorrent bittorrent-external blksha1 bluray branding broadway bsf bzip2 cairo caps ccid chardet chdir cjk cli client colord cover cracklib cron crypt css cuda cue cupsddk curl cxx dbus dconf device-mapper dga dhcp dhcpcd dht diff dirac disk-partition divx djvu dnsretry dos drawing dri driver drm dv eap-tls edit elfutils enca encode exceptions exif experimental extensions extras facedetect fat fbcondecor ffmpeg fftw filecaps fileinfo firmware flac fontconfig fortran frei0r fts3 fuse g-sorcery g3dvl gd gdbm gdm geoip gif glade glib glitz gnome gnome-keyring gnome-online-accounts gnome-shell gnuefi gpg gphoto2 gpl gpm gptfdisk graphite grp grub gstreamer gtk gtk3 gtkstyle gudev gzip harfbuzz hash hddtemp highlight histman hog http hvm hwdb iconsets iconv icq id3tag idle idn imagemagick infinality inifile intl introspection ioemu iptables ipv6 iso jabber java javascript jdbc jemalloc jemalloc3 jingle jit joystick jpeg jpeg2k kate keymap kinetic kmod kms kvm ladspa lame lcms libass libcaca libguess libkms libmpv libnotify libsamplerate libsecret libtiger lights lm_sensors loop-aes lto lucene lyrics lz4 lzma lzo mad magic matroska mbox melt mercurial mime minizip mmxext mng modern-top modules mp2 mp3 mp4 mp4live mpeg mpeg2 mpg123 mplayer mpris mpu401 mtp mudflap multilib multimedia musepack mvl mysql mysqli native-extensions natspec nautilus netplay network nls nptl nscd nss nss-pem ntfs ntfsprogs nvidia offensive ofx ogg ogm oodict openal opencore-amr opengl openmp openssl opensslcrypt optimization optimized-qmake oscar osmesa pam pango parse-clocks passwordsave pcap pcf pch pcre pcre16 pdf pdo pgo phar php player plugins png policykit posix postproc postscript ppapi ppds pppd projectm proprietary-codecs psf pulseaudio purple qml qpak quicktime rar readline realmedia realtime reiserfs resolvconf romio rtsp ru-dv ru-g ru-i ru-k run-exes s3tc sanitize scale0tilt screen screenshot sdl secure-delete sendto session simplexml skins slang slp smp sndfile socialweb sockets sound sounds speex spell split-ucode sqlite sqlite3 sse2_4way sse3 sse4 sse4.1 sse4.2 sse4_1 sse4_2 ssh-agent ssl ssse3 staging startup-notification stream stroke strong-optimization subtitles subversion svc svg sync-plugin-portage syslog system-icu system-jpeg systemd t1lib taglib tcpd textures theora threads thunderbird tiff tint2conf tk tls tokenizer toolbar tools tracepath trayicon truetype tta tweak-mode twolame udev udisks unicode unzip upower usb utils uvm v4l2 vaapi vala vdpau verse vf-dlopen video vkontakte vorbis vorbis-psy vpx vulkan wad wav wavpack webgl webkit webp webphoto webstart whiteboarding widevine winbind wma wmf wmp x264 x265 xanim xattr xcb xcomposite xdg xhtml xinetd xkb xml xmlreader xmlrpc xmlwriter xorg xosd xpm xsl xslt xv xvfb xvid xz youtube zip zlib" ABI_X86="64" CAMERAS="ptp2" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="ru ru_RU en" LINGUAS="ru ru_RU en" NETBEANS_MODULES="apisupport cnd enterprise harness ide j2ee java nb php profiler webcommon websvccommon xml" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia"
Comment 4 Joshua Kinard gentoo-dev 2017-02-27 22:37:32 UTC
A similar issue exists on uclibc[-ng], as that doesn't provide yp_prot.h at all.  There's a proposed patch over on the buildroot mailing list from ~2015 to exclude the NIS elements of libtirpc:

Maybe a solution on our side would be to make the NIS components of libtirpc optional via the existing 'nis' global USE flag?  That would solve the uclibc-side of the issue.  For glibc, tying it to glibc having USE 'rpc' enabled sounds like it'd work as well.
Comment 5 Joshua Kinard gentoo-dev 2017-07-05 11:03:57 UTC
I added libtirpc-1.0.1-r2 to ~arch earlier to fix building under a sys-libs/uclibc-ng system.  One of the patches (libtirpc-1.0.1_ifdef-out-yp-headers-742bbdff6ddf.patch) also fixes this case.  Test and re-open if this is somehow not resolved for you, or file a new bug if you discover something else that breaks with -r2.