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  2012  <20132014  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  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [asyn] link already open!
From: Andrew Johnson <[email protected]>
To: Pavel Maslov <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Mon, 12 Aug 2013 10:11:12 -0500
Hi Pavel,

On 08/12/2013 08:07 AM, Pavel Maslov wrote:
But can you compile a support module (that is using asyn and/or
streamdevice) without including base.dbd in the support module's
Makefile? It doesn't work for me as I had this error message during build:

I suspect Dirk is only dynamically loading device support modules, which (in 3.14.x versions of Base) don't need to have base.dbd loaded because their DBD file doesn't refer to other DBD files. In your case though you're trying to load a record type, and the asynRecord.dbd file can't be loaded by the makeIncludeDbd.pl script because it refers to various menu.dbd files which are normally loaded by base.dbd.

In Base 3.15.0.1 even Dirk's approach doesn't work because I have replaced the makeIncludeDbd.pl script one script that fully parses the DBD files as it loads and expands them, and that script rejects Dirk's device() entries because they refer to a record type which the script has not seen in his case. I hope to find a way around this in the future, but it will probably involve adding the equivalent of function prototypes to the DBD file syntax to allow references to externally defined objects.

In the meantime you should be able to use dynamic loading for device support, but record types are harder. You might be able to do it by including the menuGlobal.dbd file in your build instead of base.dbd, and maybe some other files too. Note that dynamic loading of modules like this is not documented as being supposed to work, so if you manage to get something working I can't promise that we won't break it in the future.

- Andrew
--
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

References:
[asyn] link already open! Pavel Maslov
RE: [asyn] link already open! Mark Rivers
Re: [asyn] link already open! Pavel Maslov
RE: [asyn] link already open! Mark Rivers
Re: [asyn] link already open! Pavel Maslov
Re: [asyn] link already open! Dirk Zimoch
Re: [asyn] link already open! Pavel Maslov
Re: [asyn] link already open! Pavel Maslov
Re: [asyn] link already open! Dirk Zimoch
Re: [asyn] link already open! Pavel Maslov

Navigate by Date:
Prev: Re: [asyn] link already open! Pavel Maslov
Next: RE: EtherCAT [SEC=UNOFFICIAL] ronaldo.mercado
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [asyn] link already open! Pavel Maslov
Next: AW: [asyn] link already open! Zimoch Dirk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·