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

Bug#757941: static linking: alternatives for glibc?

reassign 757941 src:glibc
affects 757941 busybox-static

On Mon, Oct 06, 2014 at 07:32:17PM -0700, Russ Allbery wrote:
> 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.

It nevertheless is expected to work when the corresponding NSS modules are
present.  It's not truly static, but the dynamic loading from static libc is

So bug #757941 should be reassigned to glibc, instead of claiming that this
is somehow expected glibc behavior.

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

At issue here is a glibc regression, not the standard complaints about
static glibc being not truly static.

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature

Reply to: