This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug lto/49992] lto-bootstrap reveals duplicate symbols on x86_64-apple-darwin11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49992

--- Comment #18 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-08-09 13:52:29 UTC ---
The radr://6320843, "duplicate symbols from static libraries not properly
ignored", has been open since 26-Oct-2008. I later opened radr://6733684,
"duplicate symbols in static libs not properly ignored when linking in 10A###"
with additional examples including...

gcc -I/sw/include -DXNO_MTSAFE_STRINGAPI -DXNO_MTSAFE_PWDAPI
-DXNO_MTSAFE_TIMEAPI -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment
-fno-tree-ter -I/sw/include/freetype2 -I/sw/include -I/usr/X11/include
-I/sw/include -I/sw/include -o wml wml.o -Wl,-framework -Wl,CoreServices
-Wl,-framework -Wl,ApplicationServices  -L/sw/lib
-L/sw/src/fink.build/openmotif4-2.3.1-3/openmotif-2.3.1/tools/wml -lwml
/sw/lib/libiconv.dylib -L/usr/X11R6/lib -lXt -L/usr/X11/lib -lXft -lXrender
-lfontconfig /sw/lib/freetype219/lib/libfreetype.dylib -lX11
/sw/lib/libjpeg.dylib /sw/lib/libpng12.dylib -lz  
ld: duplicate symbol _main in
/sw/src/fink.build/openmotif4-2.3.1-3/openmotif-2.3.1/tools/wml/libwml.a(wml.o)
and wml.o

from openmotif 2.3.0 and it was closed as a duplicate without additional
comment. I don't think Apple views this as a critical bug but rather coddling
lazy programmers.


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