[Nix-dev] name resolution in nix packages not working

Eelco Dolstra eelco at cs.uu.nl
Fri Sep 14 15:31:55 CEST 2007


Tobias Hammerschmidt wrote:

> I attached the complete strace -- the part you mentioned looks like this:

I think the problem is in here:

open("/nix/store/brba7k7qrpk7r8qnha6hf1pr46rkmvzc-glibc-2.5/lib/libnss_mdns4_minimal.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)

Don't know what mdns4_minimal is, but our Glibc doesn't have it.  This is
probably defined in /etc/nsswitch.conf, which normally has a line like

hosts:          files dns

but in your case probably lists mdns4_minimal as well.  Maybe you don't need it?

The alternative is to turn "nscd" *on*, that way the system-wide nscd daemon
(which *will* be able to find the libnss_mdns4_minimal.so.2 from the system
Glibc) will be used for all name lookups.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list