From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32252 invoked by alias); 28 Feb 2007 10:18:04 -0000 Received: (qmail 32242 invoked by uid 22791); 28 Feb 2007 10:18:04 -0000 X-Spam-Check-By: sourceware.org Received: from p12018-ipbffx02marunouchi.tokyo.ocn.ne.jp (HELO mail.pizzafactory.jp) (222.147.75.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Feb 2007 10:17:56 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.pizzafactory.jp (Postfix) with ESMTP id B073518C27AA; Wed, 28 Feb 2007 19:17:53 +0900 (JST) Received: from mail.pizzafactory.jp ([127.0.0.1]) by localhost (ldap.monami-software.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29582-05; Wed, 28 Feb 2007 19:17:48 +0900 (JST) Received: from [192.168.0.6] (unknown [192.168.0.6]) by mail.pizzafactory.jp (Postfix) with ESMTP id CC5FB18C2789; Wed, 28 Feb 2007 19:17:48 +0900 (JST) In-Reply-To: <20070227165651.GD31729@caradoc.them.org> References: <20070227165651.GD31729@caradoc.them.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5C32E705-6B6E-4CD9-9A84-547E5816DDBE@monami-software.com> Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: 7bit From: Masaki Muranaka Subject: Re: [RFC] Build on OSX Date: Wed, 28 Feb 2007 10:18:00 -0000 To: Daniel Jacobowitz X-Mailer: Apple Mail (2.752.2) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00373.txt.bz2 On 2007/02/28, at 1:56, Daniel Jacobowitz wrote: >> /usr/bin/ld: warning multiple definitions of symbol _locale_charset >> ./../intl/libintl.a(localcharset.o) definition of _locale_charset in >> section (__TEXT,__text) >> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libiconv.dylib >> (localcharset.o) definition of _locale_charset >> >> >> It is well known issue. OSX (maybe also Darwin) hosts >> need to link 'resolv' library beforge libintl.a. >> >> Here is a brute-forced patch. But I don't think this is >> the good solution. > > I know that people built GCC on this platform all the time. GCC > doesn't explicitly do this, so why does it work for GCC but not for > GDB? I would recommend building GCC and trying to figure out what's > different. I have an mistake. In fact, there is warning already shown, but binaries (gdb, gdbtui) are generated successfully. > (You can build just a C compiler with --enable-languages=c, that's > much quicker.) I can't build GCC immediately because I don't have darwin version of GMP/MPFR. So I'm not sure, but it is posible that GCC developers regard this issue as harmless. -- Masaki Muranaka Monami software