Building sunrpc from glibc source

Binello, Severino sev@bnl.gov
Thu Aug 5 23:12:54 GMT 2021


Hello

  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.
However, running into difficulties separating it out.
Can you recommend a method for just building the sunrpc code ?

Thanks Much
-Sev

ps: Below is the reason why our code is incompatible with the tirpc design
with old glibc every RPC server runs in its own thread,
with tirpc library there can be only one RPC server per program.
See:
from svc.c of tirpc library:

static struct svc_callout /* removed declaration */ *svc_head;

from svc.c of glibc-2.25:

#ifdef _RPC_THREAD_SAFE_
#define svc_head RPC_THREAD_VARIABLE(svc_head_s)
#else
static struct svc_callout *svc_head;
#endif

As you can see, if RPC_THREAD_SAFE_ is defined,
svc_head is per thread variable.


--

Sev Binello
Brookhaven National Laboratory
Upton, New York
631-344-5647
sev@bnl.gov




More information about the Libc-alpha mailing list