Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: multiple definition error when compiling base 3.14
From: "marco_hair" <marco_hair@163.com>
To: "tech-talk " <tech-talk@aps.anl.gov>
Date: Thu, 29 Jun 2006 20:41:30 +0800 (CST)
hi,all
 
when I compiled base3.14.8.2 on Monta Vista Linux, gcc version is 3.3. I met the following error message:
......

ipx422
Installing library ../../../lib/linux-ixp422/libCom.a                                                         
/usr/local/mxscaleb/bin/mxscaleb-ranlib ../../../lib/linux-ixp422/libCom.a                                    
/usr/local/mxscaleb/bin/mxscaleb-g++  -o libCom.so -shared -fPIC         -L/usr/local/mxscaleb/mxscaleb/lib -W\
l,-rpath-link,../../../lib/linux-ixp422         bucketLib.o epicsRingPointer.o epicsRingBytes.o postfix.o calc\
Perform.o cvtFast.o resourceLib.o epicsOnce.o epicsSingletonMutex.o dbmf.o ellLib.o envSubr.o envData.o errlog\
.o errSymLib.o errSymTbl.o fdmgr.o fdManager.o freeListLib.o gpHashLib.o iocLog.o logClient.o macCore.o macEnv\
.o macUtil.o aToIPAddr.o adjustment.o cantProceed.o epicsConvert.o epicsExit.o epicsStdlib.o epicsString.o tru\
ncateFile.o ipAddrToAsciiAsynchronous.o epicsThread.o epicsMutex.o epicsEvent.o epicsTime.o epicsMessageQueue.\
o osdSock.o osdSockAddrReuse.o osiSock.o systemCallIntMech.o epicsSocketConvertErrnoToString.o osdAssert.o osd\
FindSymbol.o osdInterrupt.o osdPoolStatus.o osdSignal.o osdEnv.o epicsReadline.o epicsTempFile.o epicsStdio.o \
osdStdio.o osdThread.o osdMutex.o osdEvent.o osdTime.o osdProcess.o osdNetIntf.o osdMessageQueue.o taskwd.o ep\
icsTimer.o timer.o timerQueue.o timerQueueActive.o timerQueueActiveMgr.o timerQueuePassive.o tsDefs.o         \
-lm -lrt -lgcc                                                                                                
epicsTime.o(.bss+0x0): multiple definition of `__gnu_cxx::_Atomic_add_mutex'                                  
ipAddrToAsciiAsynchronous.o(.bss+0x0): first defined here                                                     
osdMessageQueue.o(.bss+0x0): multiple definition of `__gnu_cxx::_Atomic_add_mutex'                            
ipAddrToAsciiAsynchronous.o(.bss+0x0): first defined here                                                     
epicsTimer.o(.bss+0x0): multiple definition of `__gnu_cxx::_Atomic_add_mutex'                                 
ipAddrToAsciiAsynchronous.o(.bss+0x0): first defined here                                                     
timer.o(.bss+0x0): multiple definition of `__gnu_cxx::_Atomic_add_mutex'                                      
ipAddrToAsciiAsynchronous.o(.bss+0x0): first defined here                                                     
collect2: ld returned 1 exit status                                                                           
make[3]: *** [libCom.so] Error 1                                                                              
make[3]: Leaving directory `/usr/local/epics/base-3.14.8.2/src/libCom/O.linux-ixp422'                         
make[2]: *** [linux-ixp422] Error 2                                                                           
make[2]: Leaving directory `/usr/local/epics/base-3.14.8.2/src/libCom'                                        
make[1]: *** [libCom.linux-ixp422] Error 2                                                                    
make[1]: Leaving directory `/usr/local/epics/base-3.14.8.2/src'                                               
make: *** [src.linux-ixp422] Error 2                                                                          

  I guess maybe the reason is because I use the wrong switch of gcc. Can anyone give me some suggestions? thanks a lot in advance.








你 不 想 试 试 今 夏 最 “酷” 的 邮 箱 吗 ?
蕴 涵 中 华 传 统 文 化 于 世 界 一 流 科 技 之 中,创 新 Ajax 技 术,126 “D 计 划”火 热 体 验 中 !
Navigate by Date:
Prev: CapFast Linux version Dr. Chong Lee
Next: Sequencer embedded C code question Jiro Fujita
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: CapFast Linux version Dr. Chong Lee
Next: Sequencer embedded C code question Jiro Fujita
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·