It seems that glib>=2.26 is getting rid of the old SunRPC which included rpc.h in /usr/include/rpc/rpc.h. Now RPC will be supported by the tirpc and ntirpc libraries, which place rpc.h in /usr/include/tirpc/rpc/rpc.h Gentoo Wiki glib 2.26. While the information in the link is Gentoo-specific, the issue seems applicable in a wider basis and even in pythonc repostiories there are some references to it here.
I have been working on a patch for python-cmake-buildsystem that seems to work properly. I will pull-request real soon.
Activity
phcerdan commented on Jun 29, 2018
+1 hitting this in Archlinux (gcc8.1)
WIP:Workaround, disable nis
RafaelPalomar commented on Aug 12, 2019
+1 hitting this in Gentoo (gcc 8.3)
It seems that glib>=2.26 is getting rid of the old SunRPC which included rpc.h in /usr/include/rpc/rpc.h. Now RPC will be supported by the tirpc and ntirpc libraries, which place rpc.h in /usr/include/tirpc/rpc/rpc.h Gentoo Wiki glib 2.26. While the information in the link is Gentoo-specific, the issue seems applicable in a wider basis and even in pythonc repostiories there are some references to it here.
I have been working on a patch for python-cmake-buildsystem that seems to work properly. I will pull-request real soon.
cmake: Support building nis module on system having libtirpc
cmake: Support building nis module on system having libtirpc
cmake: Support building nis module on system having libtirpc
cmake: Support building nis module on system having libtirpc
cmake: Support building nis module on system having libtirpc
cmake: Support building nis module on system having libtirpc