Building sunrpc from glibc source

Florian Weimer fweimer@redhat.com
Fri Aug 6 08:24:38 GMT 2021


* Severino via Libc-alpha Binello:

> As of RedHat 8, the sunrpc is no longer included with glibc shared
> object library.  Unfortunately, our communications software would
> require extensive redesign in order to use tirpc.  As such, we are
> looking into an alternative approach where we just build the sunrpc
> portion from the glibc source tar file.

You can build your software on Red Hat Enterprise Linux 7 and run it on
Red Hat Enterprise Linux 8.  The interfaces are there, they are just not
exposed for linking new applications.

Have you tried to copy the src/svc.c out of libtirpc, rename the
function, and the kind of per-thread data management you need, and use
that?  I haven't checked in detail, but it looks like the code does not
depend on libtirpc internals, so this should be feasible.  It may even
make sense to contribute this service framework to upstream libtirpc.

(I strongly suggest to start with libtirpc because the separate building
issue has already been solved there.  Also, IPv6.)

In any case, this sounds more like an enhancement request for libtirpc
than for glibc.  We will not bring back the old, IPv4-only and DES-only
RPC code.

Thanks,
Florian



More information about the Libc-alpha mailing list