This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Build on OSX
- From: Daniel Jacobowitz <drow at false dot org>
- To: Masaki Muranaka <monaka at monami-software dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 27 Feb 2007 11:56:51 -0500
- Subject: Re: [RFC] Build on OSX
- References: <C61B6EC5-94B9-47F9-95EA-7E2E1358D952@monami-software.com>
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