EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Error building asyn4-20 on CentOS 6.3
From: Mark Rivers <[email protected]>
To: "'Andre Charbonneau'" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 26 Nov 2012 17:12:50 +0000
Hi Andre,

I have never seen that error before.

It does appear that "asyn.dbd" is being included multiple times, but that has never been a problem before that I know of.

testInclude.dbd is the following:
#######################
include "base.dbd"
include "asyn.dbd"
include "devTestBlock.dbd"
include "drvAsynSerialPort.dbd"
include "drvAsynIPPort.dbd"
registrar("asynExampleRegister")
registrar("echoDriverRegister")
registrar("addrChangeDriverRegister")
registrar("interposeInterfaceRegister")
#######################

asyn.dbd is the following:
#######################
registrar(asynRegister)
registrar(asynInterposeFlushRegister)
registrar(asynInterposeEosRegister)

#
# The following ties this to EPICS records.
# Applications which wish to use ASYN without EPICS
# records can comment out the following lines.
include "asynRecord.dbd"

include "devEpics.dbd"

driver(drvAsyn)
#######################

drvAsynSerialPort.dbd is the following:
#######################
registrar(drvAsynSerialPortRegisterCommands)
include "asyn.dbd"
#######################

So asyn.dbd is being included both directly in testInclude.dbd, and indirectly through drvAsynSerialPort.dbd.  asyn.dbd is doing "registrar(asynRegister)", which is the duplicate name error you are getting.

I don't know what code is generating the "Duplicate name 'asynRegister'" error message?  Is it perl?

Mark



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andre Charbonneau
Sent: Monday, November 26, 2012 10:33 AM
To: [email protected]
Subject: Error building asyn4-20 on CentOS 6.3

Greetings,
I have been trying to build the following asyn driver on my CentOS 6.3
(64bit) linux system but with no luck:

	http://www.aps.anl.gov/epics/download/modules/asyn4-20.tar.gz


First I found out a patch that needed to be applied to the code:

	http://www.aps.anl.gov/epics/tech-talk/2012/msg01794.php

Then the make went a bit further but then it ends with the following error:

<... snip ...>
/usr/bin/g++  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
-D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux
 -D_REENTRANT   -O3   -Wall      -m64      -I. -I../O.Common -I. -I.
-I.. -I../../../include/compiler/gcc -I../../../include/os/Linux
-I../../../include
-I/usr/local/epics/base-3.15.0.1/include/compiler/gcc
-I/usr/local/epics/base-3.15.0.1/include/os/Linux
-I/usr/local/epics/base-3.15.0.1/include       -MM -MF testMain.d
../testMain.cpp
Expanding dbd file ../testInclude.dbd
perl -CSD /usr/local/epics/base-3.15.0.1/bin/linux-x86_64/dbdExpand.pl
-I. -I.. -I../O.Common -I../../../dbd
-I/usr/local/epics/base-3.15.0.1/dbd -o test.dbd ../testInclude.dbd
Duplicate name 'asynRegister'
Context: file '../../../dbd/asyn.dbd' in file
'../../../dbd/drvAsynSerialPort.dbd' in file '../testInclude.dbd'
Duplicate name 'asynRegister'
Context: file '../../../dbd/asyn.dbd' in file
'../../../dbd/drvAsynSerialPort.dbd' in file '../testInclude.dbd'
make[3]: Leaving directory
`/usr/local/epics/support/asyn/4-20/testApp/src/O.linux-x86_64'
make[3]: Entering directory
`/usr/local/epics/support/asyn/4-20/testApp/src/O.linux-x86_64'
Expanding dbd file ../testInclude.dbd
perl -CSD /usr/local/epics/base-3.15.0.1/bin/linux-x86_64/dbdExpand.pl
-I. -I.. -I../O.Common -I../../../dbd
-I/usr/local/epics/base-3.15.0.1/dbd -o test.dbd ../testInclude.dbd
Duplicate name 'asynRegister'
Context: file '../../../dbd/asyn.dbd' in file
'../../../dbd/drvAsynSerialPort.dbd' in file '../testInclude.dbd'
Installing dbd file ../../../dbd/devTestBlock.dbd
make[3]: Leaving directory
`/usr/local/epics/support/asyn/4-20/testApp/src/O.linux-x86_64'
make[2]: *** [install.linux-x86_64] Error 2
make[2]: Leaving directory `/usr/local/epics/support/asyn/4-20/testApp/src'
make[1]: *** [src.install] Error 2
make[1]: Leaving directory `/usr/local/epics/support/asyn/4-20/testApp'
make: *** [testApp.install] Error 2


>From the output above, I'm not sure what the error is.
(I'm an EPICS newbie, so I'm probably missing something pretty obvious.)

I've attached the full make output.

Anyone else experienced a similar error before?

Thanks,
  Andre


-- 
André Charbonneau



Replies:
Re: Error building asyn4-20 on CentOS 6.3 Kevin Peterson
Re: Error building asyn4-20 on CentOS 6.3 Ralph Lange
References:
Error building asyn4-20 on CentOS 6.3 Andre Charbonneau

Navigate by Date:
Prev: Error building asyn4-20 on CentOS 6.3 Andre Charbonneau
Next: Re: Error building asyn4-20 on CentOS 6.3 Kevin Peterson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Error building asyn4-20 on CentOS 6.3 Andre Charbonneau
Next: Re: Error building asyn4-20 on CentOS 6.3 Kevin Peterson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·