all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Alex Vong <alexvong1995@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/2] daemon: Fix '--version'.
Date: Wed, 31 Aug 2016 23:13:24 +0200	[thread overview]
Message-ID: <877fawk5fv.fsf@gnu.org> (raw)
In-Reply-To: <8760qi282l.fsf@gmail.com> (Alex Vong's message of "Tue, 30 Aug 2016 12:29:22 +0800")

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Hi Alex,

Alex Vong <alexvong1995@gmail.com> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Hi!
>>
>> Alex Vong <alexvong1995@gmail.com> skribis:
>>
>>> This one and the next patch fix '--version' of guix-daemon and
>>> guix-register. Currently, they are not working, which is the reason why
>>> help2man gives error when building from source.

[...]

> I get this output instead:
>
> $ LC_ALL=C ./guix-daemon --version
> ./guix-daemon: unrecognized option '--version'
> Try `guix-daemon --help' or `guix-daemon --usage' for more information.
>
> This is werid, but I think it is because I build guix with lto.

What about the attached program?  It works for me with GCC 6.2.0, both
with and without LTO.

Ludo’.


[-- Attachment #2: argp C++ --]
[-- Type: text/plain, Size: 478 bytes --]

#include <argp.h>

const char *argp_program_version = "foo";
const char *argp_program_bug_address = "foo@example.org";

static const struct argp_option options[] =
  {
    { "system", 's', "SYSTEM", 0,
      "assume SYSTEM as the current system type" },
    { 0, 0, 0, 0, 0 }
  };

static const struct argp argp =
  {
    options, NULL,
    NULL, "doc",
    NULL, NULL,
    NULL
  };

int
main (int argc, char *argv[])
{
  argp_parse (&argp, argc, argv, 0, 0, 0);
  return 0;
}

  reply	other threads:[~2016-08-31 21:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24  1:34 [PATCH 1/2] daemon: Fix '--version' Alex Vong
2016-08-29  1:31 ` (ping!) " Alex Vong
2016-08-29 16:12 ` Ludovic Courtès
2016-08-30  4:29   ` Alex Vong
2016-08-31 21:13     ` Ludovic Courtès [this message]
2016-09-01  6:23       ` Alex Vong
2016-09-01 12:15         ` Ludovic Courtès
2016-09-02  1:00           ` Alex Vong
2016-09-02 12:41             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877fawk5fv.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.