From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15353 invoked by alias); 27 Feb 2007 16:57:00 -0000 Received: (qmail 15337 invoked by uid 22791); 27 Feb 2007 16:57:00 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 27 Feb 2007 16:56:54 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HM5dD-0007tq-SM; Tue, 27 Feb 2007 11:56:51 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HM5dD-0008WU-L3; Tue, 27 Feb 2007 11:56:51 -0500 Date: Tue, 27 Feb 2007 16:57:00 -0000 From: Daniel Jacobowitz To: Masaki Muranaka Cc: gdb-patches@sourceware.org Subject: Re: [RFC] Build on OSX Message-ID: <20070227165651.GD31729@caradoc.them.org> Mail-Followup-To: Masaki Muranaka , gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00334.txt.bz2 On Mon, Feb 12, 2007 at 06:19:26PM +0900, Masaki Muranaka wrote: > Hello, > > I've trying to build cross-gdb on OSX host from CVS head. > And the build was failed with following message: > > /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. (You can build just a C compiler with --enable-languages=c, that's much quicker.) -- Daniel Jacobowitz CodeSourcery