On Sun, Jan 23, 2005 at 10:35:44AM -0700, stuporglue wrote: > I'm trying to build GRAMPS on OSX and am working on it's > dependencies. At the moment I'm trying to build pango (so I can > build GARNOME, so I can build GRAMPS... aaah dependencies! ). I'm > getting stuck with a series of 4 "ld: warning multiple definitions > of symbol" errors. I'm not really sure where to go from here.
From a practical standpoint, you would probably save time by
dual-booting Ubuntu PPC and running gramps from there. Now, to
address this particular issue...
> make[3]: Nothing to be done for `all'.
> /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -pthreads
libtool is of the devil. I speak from hard experience. :-)
> -I/Users/moondog/garnome/include/glib-2.0
> -I/Users/moondog/garnome/lib/glib-2.0/include -o libpango-1.0.la
> -rpath /usr/local/lib -version-info 0:5:0 -L/Users/moondog/garnome/lib
> -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv break.lo
> fonts.lo glyphstring.lo mapping.lo modules.lo pango-attributes.lo
> pango-color.lo pango-context.lo pango-coverage.lo pango-fontmap.lo
> pango-fontset.lo pango-intset.lo pango-item.lo pango-layout.lo
> pango-markup.lo pango-tabs.lo pango-utils.lo reorder-items.lo shape.lo
> pango-enum-types.lo mini-fribidi/libmini-fribidi.la
> rm -fr .libs/libpango-1.0.la .libs/libpango-1.0.* .libs/libpango-1.0.*
> gcc -dynamiclib -flat_namespace -undefined suppress -o
> .libs/libpango-1.0.0.0.5.dylib break.lo fonts.lo glyphstring.lo
> mapping.lo modules.lo pango-attributes.lo pango-color.lo
> pango-context.lo pango-coverage.lo pango-fontmap.lo pango-fontset.lo
> pango-intset.lo pango-item.lo pango-layout.lo pango-markup.lo
> pango-tabs.lo pango-utils.lo reorder-items.lo shape.lo
> pango-enum-types.lo -all_load mini-fribidi/.libs/libmini-fribidi.al
> -L/Users/moondog/garnome/lib -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
> -lintl -liconv mini-fribidi/.libs/libmini-fribidi.al -lc -install_name
> /usr/local/lib/libpango-1.0.0.dylib -compatibility_version 1
> -current_version 1.5
> ld: multiple definitions of symbol __pango_fribidi_get_type
> mini-fribidi/.libs/libmini-fribidi.al(fribidi_get_type.lo)
> -definition
Run nm on mini-fribidi/.libs/libmini-fribidi.al and grep for the
__pango_fribidi_get_type symbol. See what you get. You may have two
object files in that library archive contending to define that
symbol.
> of __pango_fribidi_get_type in section (__TEXT,__text)
> mini-fribidi/.libs/libmini-fribidi.al(fribidi_get_type.lo) definition
> of __pango_fribidi_get_type in section (__TEXT,__text)
> ld: multiple definitions of symbol _pango_get_mirror_char
> mini-fribidi/.libs/libmini-fribidi.al(fribidi_get_type.lo) definition
> of _pango_get_mirror_char in section (__TEXT,__text)
> mini-fribidi/.libs/libmini-fribidi.al(fribidi_get_type.lo) definition
> of _pango_get_mirror_char in section (__TEXT,__text)
> ld: multiple definitions of symbol _pango_log2vis_get_embedding_levels
> mini-fribidi/.libs/libmini-fribidi.al(fribidi.lo) definition of
> _pango_log2vis_get_embedding_levels in section (__TEXT,__text)
> mini-fribidi/.libs/libmini-fribidi.al(fribidi.lo) definition of
> _pango_log2vis_get_embedding_levels in section (__TEXT,__text)
> ld: warning multiple definitions of symbol _locale_charset
> /Users/moondog/garnome/lib/libiconv.dylib(localcharset.o) definition
> of _locale_charset
> /Users/moondog/garnome/lib/libintl.dylib(localcharset.o) definition of
> _locale_charset
Looks like both libiconv.dylib and libintl.dylib are including the
localcharset.o object file. Remove it from one of those archives and
try linking again.
Mike
.___________________________________________________________________.
Michael A. Halcrow
Security Software Engineer, IBM Linux Technology Center
GnuPG Fingerprint: 05B5 08A8 713A 64C1 D35D 2371 2D3C FDDA 3EB6 601D
"What we wish, that we readily believe."
- Demosthenes
signature.asc
Description: Digital signature
-------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
