Experimental Physics and Industrial Control System
|
Hi Ji
It looks like PCRE (perl regular expressions) is not linked into StreamDevice.
Check your PCRE settings in RELEASE.
Be aware that from StreamDevice 2.7 to 2.8 I made some modifications to the Makefiles when searching for the configure directory to be more "standard EPICS compatible". In particular
I look into the local configure first instead of an upper level configure. So maybe you need to copy some settings over?
Dirk
Von: Tech-talk <tech-talk-bounces at aps.anl.gov>
Im Auftrag von Li, Ji via Tech-talk
Gesendet: Donnerstag, 12. Mai 2022 23:47
An: tech-talk at aps.anl.gov
Betreff: Regex support in StreamDevice.
We have an IOC based on streamdevice which had been work well until it was recently updated to base 7.0.5 and StreamDevice 2.8.10. The IOC reported erros on startup:
----------------------------------------------------------------------
2022/05/12 17:20:06.024569 _main_ No converter registered for format '%/'
2022/05/12 17:20:06.024610 _main_ var.p line 398: in format string: "%/^(?|\"([^\"]*)\"|([^\"][^ ]*))/"
2022/05/12 17:20:06.024616 _main_ var.p line 398: in command 'in'
2022/05/12 17:20:06.024620 _main_ var.p line 395: in protocol 'var_g_string'
2022/05/12 17:20:06.024627 _main_ while compiling protocol 'var_g_string(position.dim[0].name,XFM:MAIA)' for 'XFM:MAIA:X_POS_DIM_NAME'
2022/05/12 17:20:06.024633 _main_ XFM:MAIA:X_POS_DIM_NAME: Protocol parse error
2022/05/12 17:20:06.024639 _main_ XFM:MAIA:X_POS_DIM_NAME: Record initialization failed
----------------------------------------------------------------------
It seems "%/^(?|\"([^\"]*)\"|([^\"][^ ]*))/" in protocol var_g_string could not be recognized as a regular _expression_.
The StreamDevice was built against PCRE package, and:
----------------------------------------------------------------------
liji@xf04bm-maia:/epics/iocs/maia$ ldd bin/linux-x86_64/maia | grep pcre
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007fcd23fdb000)
----------------------------------------------------------------------
What could be preventing streamdevice from parsing protocols with regular expressions?
|
- Replies:
- Re: Regex support in StreamDevice. Li, Ji via Tech-talk
- References:
- Regex support in StreamDevice. Li, Ji via Tech-talk
- Navigate by Date:
- Prev:
RE: Alignment mode for AreaDetectors? Mark Rivers via Tech-talk
- Next:
Re: Regex support in StreamDevice. Li, Ji via Tech-talk
- 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:
Regex support in StreamDevice. Li, Ji via Tech-talk
- Next:
Re: Regex support in StreamDevice. Li, Ji via Tech-talk
- 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
|
ANJ, 14 Sep 2022 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|