MAGIC Magic Mailing List
 
 

From: Michael Doster (mtdos AT erols DOT com)
Date: Sat May 17 2003 - 17:38:48 EDT

  • Next message: Michael Doster: "Re: multiple definition errors (ADDENDUM)"

    Stefan,
    
    You may have figured this out already but I figured I might as well follow
    up anyway.  If you go into tech/tech.h and change "bool
    TechOverridesDefault" to "extern bool TechOverridesDefault" then magic
    compiles properly on Mac OS X 10.2.6.  I've also tested this trick on Red
    Hat Linux 7.2 and it doesn't care either way.
    
    -- Mike
    
    
    > Hello,
    > 
    > compiling for MacOS X 10.2.6, I get the following errors at compile:
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > CmdRS.o definition of _TechOverridesDefault in section (__DATA,__common)
    > CmdTZ.o definition of _TechOverridesDefault in section (__DATA,__common)
    > make[2]: *** [libcommands.o] Error 1
    > 
    > These errors are not present in 7.2.36 version. Also, this is not the
    > only error... Below are all the errors I get from the multiple
    > definition problem...
    > 
    > Regards,
    > 
    > Stefan
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > CmdRS.o definition of _TechOverridesDefault in section (__DATA,__common)
    > CmdTZ.o definition of _TechOverridesDefault in section (__DATA,__common)
    > make[2]: *** [libcommands.o] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > DBio.o definition of _TechOverridesDefault in section (__DATA,__common)
    > DBtech.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > DBtcontact.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > DBtechname.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > DBtpaint.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > DBtpaint2.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > DBtechtype.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > DBterminal.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > make[2]: *** [libdatabase.o] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > ResMain.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResJunct.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResMakeRes.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResSimple.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResPrint.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResReadSim.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResConDCS.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResRex.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResBasic.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResChecks.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResUtils.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ResDebug.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > make[2]: *** [libresis.o] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > wireTech.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > wireUndo.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > make[2]: *** [libwiring.o] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > CalmaRead.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > CalmaRdcl.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > CalmaRdio.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > CalmaRdpt.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > CalmaWrite.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > make[2]: *** [libcalma.o] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > CIFrdtech.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > CIFtech.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > CIFwrite.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > make[2]: *** [libcif.o] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > plotGremln.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotPS.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotMain.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotVers.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotPixels.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotPNM.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > make[2]: *** [libplot.o] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > tclplot.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotGremln.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotPS.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotMain.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotVers.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotPixels.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > plotPNM.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > /usr/bin/libtool: internal link edit command failed
    > make[2]: *** [tclplot.dylib] Error 1
    > 
    > d: multiple definitions of symbol _TechOverridesDefault
    > tclroute.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > rtrTech.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > ../mzrouter/libmzrouter.o definition of _TechOverridesDefault in
    > section (__DATA,__common)
    > /usr/bin/libtool: internal link edit command failed
    > make[2]: *** [tclroute.dylib] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > tcllef.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > lef.o definition of _TechOverridesDefault in section (__DATA,__common)
    > /usr/bin/libtool: internal link edit command failed
    > make[2]: *** [magiclef.dylib] Error 1
    > 
    > ld: multiple definitions of symbol _TechOverridesDefault
    > tcllef.o definition of _TechOverridesDefault in section
    > (__DATA,__common)
    > lef.o definition of _TechOverridesDefault in section (__DATA,__common)
    > /usr/bin/libtool: internal link edit command failed
    > make[2]: *** [magiclef.dylib] Error 1
    > make[1]: *** [tcllibrary] Error 2
    > 
    > 
    > 
    > 
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo