This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Build on OSX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]