[gnu.utils.bug] ld multiply defined messages out of control

murf@CS.UTEXAS.EDU (Steve Murphy) (07/25/89)

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