From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: sockets availability during build Date: Fri, 23 Jan 2015 09:38:46 +0100 Message-ID: <87zj99x561.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEZlb-0005Av-T3 for guix-devel@gnu.org; Fri, 23 Jan 2015 03:39:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEZlS-00013N-28 for guix-devel@gnu.org; Fri, 23 Jan 2015 03:38:59 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEZlS-00013H-01 for guix-devel@gnu.org; Fri, 23 Jan 2015 03:38:50 -0500 In-Reply-To: (Federico Beffa's message of "Thu, 22 Jan 2015 20:54:11 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: Guix-devel Federico Beffa skribis: > I'm working on libupnp. The 'check phase gives the following error: > > Initializing UPnP ... > ** ERROR UpnpInit(): -208 UPNP_E_SOCKET_ERROR > FAIL: test_init > > In spite of this, if I "guix environment" and run the test binary it succ= eeds: > > Initializing UPnP ... > UPnP Initialized OK ip=3D192.168.0.5, port=3D49152 I suspect the IP shown above is the result of: (getaddrinfo (gethostname)) or something like that. DNS lookups don=E2=80=99t work in the chroot, exce= pt for =E2=80=9Clocalhost=E2=80=9D, so you may have to patch tests that rely o= n this. Sockets themselves should work fine. HTH, Ludo=E2=80=99.