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]

"multiply defined" ___CTOR_LIST___ under FreeBSD 2.2-980105-SNAP


Now that egcs-current-CVS finally works under FreeBSD[1], I get link
errors like the following for a C++ project:

  [...]
  diag.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
  sql.o: Definition of symbol `___DTOR_LIST__' (multiply defined)
  sql.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
  ld: /sw/swtest/egcs/BSD/lib/libstdc++.a(streambuf.o): unexpected
  multiple definitions of symbol `___DTOR_LIST__', type 0x16
  sql.o:13: Definition of symbol `___DTOR_LIST__' (multiply defined)
  ld: /sw/swtest/egcs/BSD/lib/libstdc++.a(streambuf.o): unexpected
  multiple definitions of symbol `___CTOR_LIST__', type 0x16
  sql.o:13: Definition of symbol `___CTOR_LIST__' (multiply defined)
  collect2: ld returned 1 exit status


If you want, I can try to destill something from my larger codebase,
but this seems to be a very general problem, so perhaps those lines
above already trigger some fix?

Gerald


[1] Thanks Jeff, Jörn and Mark, plus probably a couple of others!
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/



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