This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Build on OSX
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