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: Thu, 01 Sep 2016 14:15:22 +0200	[thread overview]
Message-ID: <871t13q0it.fsf@gnu.org> (raw)
In-Reply-To: <87pooo3zpk.fsf@gmail.com> (Alex Vong's message of "Thu, 01 Sep 2016 14:23:51 +0800")

Alex Vong <alexvong1995@gmail.com> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:

[...]

>> #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;
>> }
>
> I think you have isolated the problem! This test case does not work for
> me.
>
>
> I get the following output after building with
> (g++ -O2 -flto version.cxx):

What if you compile with ‘gcc’ (and rename to foo.c) instead of ‘g++’?

It might be a symbol visibility problem, or name mangling issue.

Ludo’.

  reply	other threads:[~2016-09-01 12:15 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
2016-09-01  6:23       ` Alex Vong
2016-09-01 12:15         ` Ludovic Courtès [this message]
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=871t13q0it.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.