Make OSCx compile again with 2018-05 update of glibc which doesn't have rpc/rpc.h…
Make OSCx compile again with the 2018-05 update of glibc which doesn't have rpc/rpc.h any more.
Apparently the Sun RPC stuff got removed from GNU libc recently (after being deprecated for a long time), cf. https://bugzilla.redhat.com/show_bug.cgi?id=1544568. As a result, the OSCx external doesn't compile any more on systems which already have the latest glibc version (such as Arch), since the /usr/include/rpc/rpc.h file doesn't exist any more.
The quick and dirty solution is to just use libtirpc (http://git.linux-nfs.org/?p=steved/libtirpc.git) instead, which is being packaged by many distributions already. This package includes the required header file, but it resides in a different directory (/usr/include/tirpc
), hence I had to add this to the include path in the Makefile. This change won't do any harm on systems where it isn't needed, but makes OSCx compile and work again on systems with the latest glibc, if libtirpc is installed.
I don't think that OSCx deserves any more effort than what I did here. It's a legacy component anyway, which has been deprecated in favour of the mrpeach OSC externals for many years, and in fact Pd even offers some built-in OSC capabilities now. Maybe we should get rid of it entirely? But then again some older patches might still be using it.