[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: static linking: alternatives for glibc?

Paul Wise <pabs@debian.org> writes:
> On Mon, Oct 6, 2014 at 11:27 PM, Michael Tokarev wrote:

>> But with jessie, for one, all network name resolution (gethostby* etc
>> APIs) don't work anymore, because glibc does not provide them instatic
>> libraries.  So usual network utilities in busybox does not anymore,
>> they just return `host not found' (unless you use IP addresses).

> Was the removal of gethostby* APIs from the static glibc intentional?

Yes.  It's the nsswitch problem.  The behavior of those APIs is controlled
by the nsswitch mechanism (specifically the hosts configuration), which is
inherently dynamic and doesn't support static linking.

> Perhaps glibc upstream would be willing to restore them?

It would be nice, but I doubt you'll make much progress.  Lots of people
have complained about this over the years.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: