GNU bug report logs - #21925
"make check" fails: "guix package: error: socket: Protocol not supported"

Previous Next

Package: guix;

Reported by: Chris Marusich <cmmarusich <at> gmail.com>

Date: Sat, 14 Nov 2015 20:43:01 UTC

Severity: normal

Merged with 21924

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


Message #13 received at 21925 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 21925 <at> debbugs.gnu.org, 21924 <at> debbugs.gnu.org
Subject: Re: bug#21925: Additional information for bug report: 21925
Date: Mon, 16 Nov 2015 17:44:42 +0100
[Message part 1 (text/plain, inline)]
Chris Marusich <cmmarusich <at> gmail.com> skribis:

> I've noticed that I also experience similar failures when I try to
> install certain packages. For example, I cannot install ncurses or
> autoconf:
>
> marusich <at> garuda ~$ guix package -i autoconf
> guix package: error: socket: Protocol not supported
> marusich <at> garuda ~$ guix package -i ncurses
> guix package: error: socket: Protocol not supported

Could you apply this patch:

[Message part 2 (text/x-patch, inline)]
diff --git a/guix/ftp-client.scm b/guix/ftp-client.scm
index f02d460..e76f08a 100644
--- a/guix/ftp-client.scm
+++ b/guix/ftp-client.scm
@@ -140,8 +140,9 @@ TIMEOUT, an ETIMEDOUT error is raised."
 
   (let loop ((addresses addresses))
     (let* ((ai (car addresses))
-           (s  (socket (addrinfo:fam ai) SOCK_STREAM ;TCP only
-                       (addrinfo:protocol ai))))
+           (s  (socket (addrinfo:fam ai)
+                       ;; TCP/IP only
+                       SOCK_STREAM IPPROTO_IP)))
 
       (catch 'system-error
         (lambda ()
[Message part 3 (text/plain, inline)]
and then try again, with:

  ./pre-inst-env guix package -i autoconf

(I can provided more info on how to apply the patch if needed.  See also
<http://www.gnu.org/software/guix/manual/html_node/Running-Guix-Before-It-Is-Installed.html>.)

This may be a regression introduced in 279ec1d.

TIA!

Ludo’.


This bug report was last modified 9 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.