Bug#535106: libc6-i386: getaddrinfo() fails
On Tue, Jun 30, 2009 at 09:19:18PM +0200, Pieter-Tjerk de Boer wrote:
> On Tue, Jun 30, 2009 at 12:58:58PM +0200, Aurelien Jarno wrote:
> > On Mon, Jun 29, 2009 at 08:42:48PM +0200, Pieter-Tjerk de Boer wrote:
> > > Package: libc6-i386
> > > Version: 2.7-18
> > > Severity: normal
> > >
> > > The function getaddrinfo() in the i386 compatibility library returns
> > > -2 (i.e. EAI_NONAME) for any query, while getaddrinfo() in the amd64
> > > library does find the host and returns 0.
> > >
> >
> > What is the contents of your /etc/nsswitch.conf file? It most probably
> > contains an entry available on amd64, but not in i386.
>
> Thanks!
> Indeed, /etc/nsswitch.conf contained this entry:
>
> hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
>
> and there is no such thing as a /lib32/libnss_mdns4_minimal on my
> system.
> Removing the "[NOTFOUND=return]" part resolves the problem, though
> I don't understand why: based on libc.info, I would expect that in
> the absence of a libnss_mdns4_minimal, 'unavail' would be returned,
> not 'notfound'.
>
> Anyway, the problem is now gone for me, but it would be nice if it
> could be fixed in the distribution. My current system is a fresh
> install done a few weeks ago, and I did not edit this file by hand,
> so apparently it was set up like this by some package, though I don't
> know which, nor why...
>
This file is edited by libnss-mdns. Installing lib32nss-mdns should fix
the problem.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: