[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] daemon: Fix '--version'.
From: |
Alex Vong |
Subject: |
Re: [PATCH 1/2] daemon: Fix '--version'. |
Date: |
Fri, 02 Sep 2016 09:00:54 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Alex Vong <address@hidden> skribis:
>
[...]
>>
>> 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’.
Hmm, I try to build with 'gcc -O2 -flto version.c' and './a.out
--version' still fails with 'unrecognized option'. I check the symbols
using 'nm' and they are not mangled. How should I check for the sign of
a symbol visibility problems?
Thanks,
Alex