This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
multiple definitions of symbol _locale_charset
- From: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- To: gcc at gcc dot gnu dot org
- Date: Sat, 9 Sep 2006 01:48:59 -0400 (EDT)
- Subject: multiple definitions of symbol _locale_charset
I notice a warning in the Darwin PPC build of gcc trunk against
libiconv 1.10. There appears to be a duplicate symbol for _locale_charset
in both ./../intl/libintl.a(localcharset.o) and /sw/lib/libiconv.dylib(localcharset.o).
Shouldn't the presence of duplicate symbols in the linkage of cc1plus
be considered a bug?
Jack
ps An example of this is...
gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -o cc1plus \
cp/cp-lang.o stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o darwin-c.o rs6000-c.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o c-omp.o tree-inline.o cc1plus-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ./../intl/libintl.a -L/sw/lib -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
but it happens for other linkages (like xgcc) as well.