public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [RFC] glibc-2.14 and RPC
@ 2011-07-05 22:41 Yann E. MORIN
  2011-07-07  1:46 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Yann E. MORIN @ 2011-07-05 22:41 UTC (permalink / raw)
  To: crossgcc

Hello All!

The Sun RPC has been obsoleted in glibc-2.14: the SunRPC headers have been
removed. It is now recommended to use the TI-RPC (Transport Independent RPC)
library [1] [2].

'Obsoleted in glibc-2.14' means:
- programs can no longer be compiled, as headers are missing
- already compiled programs can still run, as the libraries are still
  packaged

What this means to crosstool-NG: basically, not much.

In fact, we can look at the big picture, and consider that the RPC are a
non-system feature, and thus need not be implemented by a system library.
It is the responsibility of the user to properly add TI-RPC to its
environment before compiling programs that require RPC. In this situation,
we should do nothing at all.

OTOH, the SunRPC has long been provided by the C library, and people got
used to that situation. A missing RPC lib no longer provided by the system
components might be seen as a big breakage. In this situation, we could
build TI-RPC as part of the toolchain build, for a finite transition period
(say 'n' days, n probably no bigger than 365.25).

But I still did not had  look at TI-RPC, and how nicely it plays with
cross-compilation, what its dependencies are, and well, all those issues
we will probably (!) encounter.

One thing to know is that TI-RPC is not a drop-in replacement for the glibc
version. At least, it now requires to link programs against -ltirpc. We
could try to mitigate this by providing appropriate symlinks, but is it
worth the effort?

So, what is your opinion on the subject?
- do not provide RPC as a system component,
or:
- transition with TI-RPC.

[1] http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php (seems old)
[2] http://sourceforge.net/projects/libtirpc/ (seems current)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: [RFC] glibc-2.14 and RPC
  2011-07-05 22:41 [RFC] glibc-2.14 and RPC Yann E. MORIN
@ 2011-07-07  1:46 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2011-07-07  1:46 UTC (permalink / raw)
  To: crossgcc

On 07/05/2011 03:41 PM, Yann E. MORIN wrote:
> Hello All!
>
> The Sun RPC has been obsoleted in glibc-2.14: the SunRPC headers have been
> removed. It is now recommended to use the TI-RPC (Transport Independent RPC)
> library [1] [2].
>
> 'Obsoleted in glibc-2.14' means:
> - programs can no longer be compiled, as headers are missing
> - already compiled programs can still run, as the libraries are still
>    packaged
>
> What this means to crosstool-NG: basically, not much.
>
> In fact, we can look at the big picture, and consider that the RPC are a
> non-system feature, and thus need not be implemented by a system library.
> It is the responsibility of the user to properly add TI-RPC to its
> environment before compiling programs that require RPC. In this situation,
> we should do nothing at all.
>
> OTOH, the SunRPC has long been provided by the C library, and people got
> used to that situation. A missing RPC lib no longer provided by the system
> components might be seen as a big breakage. In this situation, we could
> build TI-RPC as part of the toolchain build, for a finite transition period
> (say 'n' days, n probably no bigger than 365.25).
>
> But I still did not had  look at TI-RPC, and how nicely it plays with
> cross-compilation, what its dependencies are, and well, all those issues
> we will probably (!) encounter.
>
> One thing to know is that TI-RPC is not a drop-in replacement for the glibc
> version. At least, it now requires to link programs against -ltirpc. We
> could try to mitigate this by providing appropriate symlinks, but is it
> worth the effort?
>
> So, what is your opinion on the subject?

libtirpc needs more to become drop in replacement into glibc provided 
rpc see my hacks

http://git.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/eglibc-2.14

but IMO crosstool is just for toolchains so better leave this headache
to distros that will make ct-ng generate external toolchains to fit well
too

> - do not provide RPC as a system component,
> or:
> - transition with TI-RPC.
>
> [1] http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php (seems old)
> [2] http://sourceforge.net/projects/libtirpc/ (seems current)
>
> Regards,
> Yann E. MORIN.
>


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2011-07-07  1:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05 22:41 [RFC] glibc-2.14 and RPC Yann E. MORIN
2011-07-07  1:46 ` Khem Raj

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).