Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!gem.mps.ohio-state.edu!ginosko!uunet!tut.cis.ohio-state.edu!SUNDC.EAST.SUN.COM!tfd!kent From: tfd!kent@SUNDC.EAST.SUN.COM (Kent Hauser) Newsgroups: gnu.gcc.bug Subject: gnu ld bug Message-ID: <8909241513.AA14947@tfd.uucp> Date: 24 Sep 89 15:13:09 GMT Sender: uucp@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33 Configuration: Sun-3, SunOS 3.5 BUG: Gnu ld does not report an undefined symbol error if symbol appeared (but was not loaded) in an previous archive. REPEAT BY: (edited script follows) In gcc-1.35 source directory: % config.gcc sun3 % rm gnulib % make CCLIBFLAGS=-mc68010 gnulib # normal messaged deleted % echo "int i,j; main () { i*=j; }" > bug.c % gcc -c -mc68000 bug.c % rm -f a.out % ld bug.o gnulib _mulsi3.o: Undefined symbol lmult referenced from text % ld bug.o -lc gnulib # gnulib spits out blank line but no diagnostic % size size: a.out not found % /bin/ld bug.o -lc gnulib Undefined: lmult % ------ Kent Hauser UUCP: {uunet!cucstud, sun!sundc}!tfd!kent Twenty-First Designs INET: sundc!tfd!kent@sun.com