[Ecls-list] sttandalone linking problem

Rick Taube taube at uiuc.edu
Fri Oct 13 15:24:29 UTC 2006


im trying to build a standalone app in ecl. everything compiles fine  
with :system-p t but i get an error about multiple definitions of a  
symbol _init_CM when linking:

this only happens when i include a compilation of my cm.asd system  
file into the .o file list. the .asd file compiles fine but triggers  
the error during linking. i do have a function called 'cm' define in  
cm.asd but there is only one definition of it.

i can figure out what to fix, any help appreciated!:

here is the link error:

/usr/bin/ld: multiple definitions of symbol _init_CM
/Lisp/cm/ECLINITjRf3iM.o definition of _init_CM in section  
(__TEXT,__text)
//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//cm.o definition of _init_CM in  
section (__TEXT,__text)
collect2: ld returned 1 exit status
(SYSTEM "gcc -o \"/Lisp/cm/cm\" -L\"/usr/local/lib/ecl/\" \"/Lisp/cm/ 
ECLINITjRf3iM.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//cm.o\" \"// 
Lisp/cm/bin/ecl_0.9i_darwin-powerpc//pkg.o\" \"//Lisp/cm/bin/ 
ecl_0.9i_darwin-powerpc//ecl.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin- 
powerpc//iter.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//level1.o\"  
\"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//clos.o\" \"//Lisp/cm/bin/ 
ecl_0.9i_darwin-powerpc//scheme.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin- 
powerpc//utils.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//mop.o\"  
\"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//objects.o\" \"//Lisp/cm/bin/ 
ecl_0.9i_darwin-powerpc//data.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin- 
powerpc//scales.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc// 
spectral.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//patterns.o\"  
\"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//io.o\" \"//Lisp/cm/bin/ 
ecl_0.9i_darwin-powerpc//scheduler.o\" \"//Lisp/cm/bin/ 
ecl_0.9i_darwin-powerpc//sco.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin- 
powerpc//clm.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//midi1.o\"  
\"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//midi2.o\" \"//Lisp/cm/bin/ 
ecl_0.9i_darwin-powerpc//midi3.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin- 
powerpc//cmn.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//fomus.o\"  
\"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//midishare.o\" \"//Lisp/cm/ 
bin/ecl_0.9i_darwin-powerpc//player.o\" \"//Lisp/cm/bin/ 
ecl_0.9i_darwin-powerpc//sc.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin- 
powerpc//pm.o\" \"//Lisp/cm/bin/ecl_0.9i_darwin-powerpc//rt.o\"     - 
lecl   -lm  ") returned non-zero value 1
Broken at C::LINKER-CC.







More information about the ecl-devel mailing list