public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Building sunrpc from glibc source
@ 2021-08-05 23:12 Binello, Severino
  2021-08-06  8:24 ` Florian Weimer
  2021-08-06 12:07 ` Ian Kent
  0 siblings, 2 replies; 12+ messages in thread
From: Binello, Severino @ 2021-08-05 23:12 UTC (permalink / raw)
  To: libc-alpha

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-08-11  8:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05 23:12 Building sunrpc from glibc source Binello, Severino
2021-08-06  8:24 ` Florian Weimer
2021-08-06 12:07 ` Ian Kent
2021-08-07  0:27   ` Ian Kent
2021-08-10 17:47     ` Binello, Severino
2021-08-11  0:53       ` Ian Kent
2021-08-11  2:37         ` Marusic, Aljosa
2021-08-11  5:14           ` Ian Kent
2021-08-11  7:10             ` Ian Kent
2021-08-11  7:30             ` Marusic, Aljosa
2021-08-11  7:55               ` Ian Kent
2021-08-11  8:08               ` Ian Kent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).