🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #316

ld multiply defined messages out of control

#316
From: Steve Murphy
Date: Mon, 24 Jul 1989 19:08
76 lines
5505 bytes
I have two  files that both  contain definitions for   for  funcs that
support a "paramlist" feature. I also have about 30 or  60 other files
that access   these routines. I compile  with  gdb -g -O -traditional,
and when I ld them together with gcc-ld, I get:

sym_detpin_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_detpin_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_submod_main.d:76: Definition of symbol _paramlistwrite (multiply defined)
sym_submod_main.d:106: Definition of symbol _paramlistfree (multiply defined)
sym_via_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_via_main.o: Definition of symbol _paramlistfree (multiply defined)
textlist.d:109: Definition of symbol _paramlistwrite (multiply defined)
textlist.d:139: Definition of symbol _paramlistfree (multiply defined)
sym_apage_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_apage_main.: Definition of symbol _paramlistfree (multiply defined)
sym_bipolar_mai: Definition of symbol _paramlistwrite (multiply defined)
sym_bipolar_mai: Definition of symbol _paramlistfree (multiply defined)
sym_cap_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_cap_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_clinv_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_clinv_main.: Definition of symbol _paramlistfree (multiply defined)
sym_cload_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_cload_main.: Definition of symbol _paramlistfree (multiply defined)
sym_diode_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_diode_main.: Definition of symbol _paramlistfree (multiply defined)
sym_hilatch_mai: Definition of symbol _paramlistwrite (multiply defined)
sym_hilatch_mai: Definition of symbol _paramlistfree (multiply defined)
sym_induc_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_induc_main.: Definition of symbol _paramlistfree (multiply defined)
sym_inv_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_inv_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_latch_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_latch_main.: Definition of symbol _paramlistfree (multiply defined)
sym_log_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_log_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_mod_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_mod_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_mos_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_mos_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_nanor_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_nanor_main.: Definition of symbol _paramlistfree (multiply defined)
sym_net_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_net_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_noran_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_noran_main.: Definition of symbol _paramlistfree (multiply defined)
sym_pad_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_pad_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_pla_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_pla_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_plamod_main: Definition of symbol _paramlistwrite (multiply defined)
sym_plamod_main: Definition of symbol _paramlistfree (multiply defined)
sym_rcload_main: Definition of symbol _paramlistwrite (multiply defined)
sym_rcload_main: Definition of symbol _paramlistfree (multiply defined)
sym_res_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_res_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_schem_main.: Definition of symbol _paramlistwrite (multiply defined)
sym_schem_main.: Definition of symbol _paramlistfree (multiply defined)
sym_subpin_main: Definition of symbol _paramlistwrite (multiply defined)
sym_subpin_main: Definition of symbol _paramlistfree (multiply defined)
sym_vpwr_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_vpwr_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_vss_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_vss_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_xfer_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_xfer_main.o: Definition of symbol _paramlistfree (multiply defined)
sym_xor_main.o: Definition of symbol _paramlistwrite (multiply defined)
sym_xor_main.o: Definition of symbol _paramlistfree (multiply defined)

All but 4 of the above lines are bolderdash. Nonsense. Lies.  The only
good messages were the ones with the line numbers.

What's going on? If I get any multiply defined error, I get a thousand
messages covering all the references besides the defs.

murf
Technical Details
Message-ID: <8907241908.AA12894@dingus.sun.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!dingus!murf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!dingus!murf
From: oakhill!dingus!murf@CS.UTEXAS.EDU (Steve Murphy)
Newsgroups: gnu.utils.bug
Subject: ld multiply defined messages out of control
Message-ID: <8907241908.AA12894@dingus.sun.com>
Date: 24 Jul 89 19:08:05 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 76