[PATCH] sunrpc: Turn bindresvport into a compatibility symbol

Florian Weimer fweimer@redhat.com
Wed Jul 8 12:10:43 GMT 2020


* H. J. Lu via Libc-alpha:

> On Tue, Jul 7, 2020 at 10:04 AM Florian Weimer <fweimer@redhat.com> wrote:
>>
>> * H. J. Lu:
>>
>> > On Tue, Jul 7, 2020 at 9:13 AM Florian Weimer via Libc-alpha
>> > <libc-alpha@sourceware.org> wrote:
>> >>
>> >> (This is a bit of a controversial change, but I'm not sure what our
>> >> alternatives are, given the conflict with libtirpc.)
>> >>
>> >> bindresvport is mostly used along with Sun RPC functions.  libtirpc
>> >> has its own implementation of it, and this implementation is
>> >> is used when linking against libtirpc (under a separate symbol
>> >> version).  The libtirpc implementation is superior because it
>> >> provides a filter for well-known ports, addressing historic bug 456.
>> >>
>> >> Exceptions that use bindresvport without linking against libtirpc
>> >> are torque (the resource manager) and the sign command in OBS
>> >> (the build service).
>> >
>> > Have they been fixed?  Otherwise, they won't compile/link with glibc
>> > 2.32.
>>
>> I suppose I can try to submit patches for them if this indeed the
>> direction we want to move in.
>
> I think it is a good thing when using with glibc, regardless of what
> glibc does with
> bindresvport.  We need to provide a solution before it is removed from
> glibc API.

I've posted a patch that disentangles bindresvport from sunrpc, so that
we can revisit this issue at a later point:

  <https://sourceware.org/pipermail/libc-alpha/2020-July/115979.html>

Thanks,
Florian



More information about the Libc-alpha mailing list