|
From: | Matthew Lien |
Subject: | Re: FTBFS on GNU/Hurd |
Date: | Wed, 3 Jul 2013 15:46:44 +0800 |
Matthew Lien <address@hidden> skribis:
Could you try changing lines 174 and 177 like this:
> 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;
> ^
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’.
[Prev in Thread] | Current Thread | [Next in Thread] |