From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/2] daemon: Fix '--version'. Date: Fri, 02 Sep 2016 14:41:37 +0200 Message-ID: <878tvamq2m.fsf@gnu.org> References: <87fupvx83x.fsf@gmail.com> <87vayjy2nq.fsf@gnu.org> <8760qi282l.fsf@gmail.com> <877fawk5fv.fsf@gnu.org> <87pooo3zpk.fsf@gmail.com> <871t13q0it.fsf@gnu.org> <87d1knazeh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfnmy-0006kC-SA for guix-devel@gnu.org; Fri, 02 Sep 2016 08:41:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfnmu-0006Y6-LW for guix-devel@gnu.org; Fri, 02 Sep 2016 08:41:43 -0400 In-Reply-To: <87d1knazeh.fsf@gmail.com> (Alex Vong's message of "Fri, 02 Sep 2016 09:00:54 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Vong Cc: guix-devel@gnu.org Alex Vong skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Alex Vong 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 =E2=80=98gcc=E2=80=99 (and rename to foo.c) ins= tead of =E2=80=98g++=E2=80=99? >> >> It might be a symbol visibility problem, or name mangling issue. >> >> Ludo=E2=80=99. > > 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?=20 =E2=80=98nm=E2=80=99 shows a capital T for exported symbols, and a lowercas= e t for hidden/private symbols. Maybe you should report a bug against your distro=E2=80=99s package and see= what they think? Ludo=E2=80=99.