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

Subject: Re: seq lib load error (vxworks)
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Fri, 21 Oct 2011 10:05:10 -0500
Hi Mike,

On 2011-10-21 Laznovsky Michael wrote:
> Hi- I've built a single *Lib.munch from two separate *.st files, and get
> this error at load time.
> The seqs run fine after this, but I can't use it in a boot script
> because it will abort the boot.  A
> lib built from a single *.st doesn't have this problem.
> 
> 	Loading bin/seqMagCycleLib.munch
> 	Undefined symbol: pvar_func_Registrar (binding 1 type 0)
> 	Loading seqMagCycle library failed: S_objLib_OBJ_UNAVAILABLE
> 	Aborting startup stript.
> 	value = -1 = 0xffffffff

The symbol pvar_func_Registrar is created by this line in a .c or .cpp file:
    epicsExportRegistrar(Registrar);

and pulled into your <app>_registerRecordDeviceDriver.cpp file by this line in 
a .dbd file:
    registrar(Registrar)

Look for both of those in your source tree; either you're incluing that .dbd 
line unnecessarily, or you're not compiling/linking that .c file into your 
combined binary.

Also check for warning messages when compiling that .c file; if you've 
forgotten to #include <epicsExport.h>  then that statement can look like a 
function declaration but will at least generate a warning.

HTH,

- Andrew
-- 
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham

References:
seq lib load error (vxworks) Laznovsky Michael

Navigate by Date:
Prev: RE: windows-x64 problem Mark Rivers
Next: RE: windows-x64 problem Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: seq lib load error (vxworks) Laznovsky Michael
Next: Logging change of state for binary input in Message History of CSS ZYCHLA Emmanuel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  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 ·