Hi,
In the IOC applications developers guide, chapter 21, there are two ways
described for registering IOC shell functions. I'm having trouble
getting one of them working on Linux...
In the source file, I have:
epicsRegisterFunction(directoryWaitDef);
and in the included dbd file, I have:
function(directoryWaitDef)
I then build a static library containing the function.
When I build the IOC, the function seems to be built OK into the
executable. If I look inside it, I see:
nm -S bin/linux-x86/BL19I-MO-SIM-01 | grep directory
0804c44c 0000009f T directoryWaitDef
0804e74c 00000004 D pvar_func_register_func_directoryWaitDef
0804c4ec 0000002a t register_func_directoryWaitDef
However, when I start the IOC, the function isn't found.
I'm using EPICS 3.14.8.2.
The same procedure works fine when I build the same IOC for VxWorks.
It isn't a huge problem, because the other method described in the
manual works for my Linux IOC (using the registrar() function in the dbd
file). But the method above is significantly simpler in the source code.
Any ideas?
Regards,
Matthew Pearson
DLS Controls
<DIV><FONT size="1" color="gray">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
</FONT></DIV>
- Replies:
- Re: registering IOC shell functions Eric Norum
- References:
- uC5282 based RTEMS FlashSize error K.M Ha
- 80 MHz version of uCDIMM ColdFire 5282 Eric Norum
- RE: 80 MHz version of uCDIMM ColdFire 5282 K.M Ha
- RE: 80 MHz version of uCDIMM ColdFire 5282 K.M Ha
- Navigate by Date:
- Prev:
RE: 80 MHz version of uCDIMM ColdFire 5282 K.M Ha
- Next:
Re: registering IOC shell functions Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: 80 MHz version of uCDIMM ColdFire 5282 K.M Ha
- Next:
Re: registering IOC shell functions Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|