bug-guix
[Top][All Lists]
Advanced

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

Re: FTBFS on GNU/Hurd


From: Matthew Lien
Subject: Re: FTBFS on GNU/Hurd
Date: Wed, 3 Jul 2013 15:46:44 +0800

Hi Ludovic,

Sure I would like to test for you, but don't see any code to change. In your mail between the line
"Could you try changing lines 174 and 177 like this:"
and
"This is not a problem on GNU/Linux where argp.h does this:"
is an empty space.

What file and what content should I edit?


Best wishes,
BlueT



2013/7/3 Ludovic Courtès <address@hidden>
Matthew Lien <address@hidden> skribis:

> nix/nix-daemon/guix-daemon.cc: In function ‘error_t parse_opt(int, char*, argp_state*)’:
> nix/nix-daemon/guix-daemon.cc:174:14: error: invalid conversion from ‘int’ to ‘error_t {aka __error_t_codes}’ [-fpermissive]
>        return ARGP_ERR_UNKNOWN;
>               ^
> nix/nix-daemon/guix-daemon.cc:177:10: error: invalid conversion from ‘int’ to ‘error_t {aka __error_t_codes}’ [-fpermissive]
>    return 0;
>           ^

Could you try changing lines 174 and 177 like this:



This is not a problem on GNU/Linux where argp.h does this:

  #ifndef __error_t_defined
  typedef int error_t;
  # define __error_t_defined
  #endif

... whereas on GNU/Hurd ‘error_t’ is a enum, and is always defined:

  typedef enum __error_t_codes error_t;

TIA,
Ludo’.




--
/ Just another [ Perl | FOSS | Security ] Hacker. /
/ BlueT = Matthew Lien = ���疵� /
/ http://BlueT.org /
/ GPG: 4A293CBD /

reply via email to

[Prev in Thread] Current Thread [Next in Thread]