When compiling app-emulation/libvirt since 1.3.4, it fails with /var/tmp/portage/app-emulation/libvirt-1.3.5-r1/work/libvirt-1.3.5/src/rpc/virnetprotocol.h:9:21: fatal error: rpc/rpc.h: No such file or directory This is due the sys-libs/glibc not having the "rpc" flag enabled. After enabling rps USE flag for sys-libs/glibc, >app-emulation/libvirt-1.3.4 compiles fine. The app-emulation/libvirt ebuild should check that prerequisite if it requires it. Reproducible: Always Steps to Reproduce: 1. disable rpc USE flag for glibc 2. try to compile libvirt 3. fail
Please always include full build.log and emerge --info
Have similar problem with libvirt-2.0.0. But i get configure error: configure: error: Cannot find a XDR library Enabled rpc flag with glibc fixes this. Also, could be it is needed to link this bug with this one https://bugs.gentoo.org/show_bug.cgi?id=381391 .
commit a62513a728c5fd823dff0bc2ea650f1dd677aaee Author: Matthias Maier <tamiko@gentoo.org> Date: Sun Aug 7 23:42:03 2016 -0500 app-emulation/libvirt: Fix various dependencies, bug #587708, #590410 Package-Manager: portage-2.2.28