Modern versions of glibc remove rpc API. I was able build libvirt with net-libs/libtirpc. I got the hint from Fedora [1]. [1] https://fedoraproject.org/wiki/Changes/SunRPCRemoval
Please post your `emerge --info` output in a comment. Please attach the entire build log to this bug report.
I am sorry, I am unable to do this anymore, because I re-installed my machine. Having a glibc which does not support libvirt forced me to re-install the machine, because there was no safe downgrade path.
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I.. -I../include -I../include -I./util -I./util -DIN_LIBVIRT -Dabs_topbuilddir=\"/tmp/portage/app-emulation/libvirt-4.1.0-r3/work/libvirt-4.1.0\" -Dabs_topsrcdir=\"/tmp/portage/app-emulation/libvirt-4.1.0-r3/work/libvirt-4.1.0\" -O0 -DLIBXL_API_VERSION=0x040400 -c lxc/lxc_monitor_protocol.c -fPIC -DPIC -o lxc/.libs/libvirt_driver_lxc_impl_la-lxc_monitor_protocol.o In file included from lxc/lxc_monitor_protocol.c:7: lxc/lxc_monitor_protocol.h:9:10: fatal error: rpc/rpc.h: No such file or directory #include <rpc/rpc.h> ^~~~~~~~~~~ compilation terminated.
Created attachment 530670 [details] emerge-info.txt
Seems to be fixed in newer upstream release of libvirt-4.3.0.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9fab850263cf3256559e0c15696598f95df4153 commit a9fab850263cf3256559e0c15696598f95df4153 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2018-05-11 21:29:16 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2018-05-11 21:39:06 +0000 app-emulation/libvirt: version bump to 4.3.0 Closes: https://bugs.gentoo.org/654062 Package-Manager: Portage-2.3.36, Repoman-2.3.9 app-emulation/libvirt/Manifest | 1 + app-emulation/libvirt/libvirt-4.3.0.ebuild | 382 +++++++++++++++++++++++++++++ 2 files changed, 383 insertions(+)
I'm getting the same error on 4.3.0
Created attachment 535932 [details] build.log
Created attachment 535934 [details] emerge --info
I am sorry, I cannot reproduce (in a clean stage-3).
Do you have tests enabled?