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

Subject: Re: undefined reference to symbol 'pvar_dset_asynInt32ArrayWfIn'
From: Wang Xiaoqiang via Tech-talk <tech-talk at aps.anl.gov>
To: Peter Pitfield <pitfieldp at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 27 Sep 2023 06:04:26 +0000
Hi Peter,

The message says asyn module should be linked.

Labjack module builds an IOC with these lines,
https://github.com/epics-modules/LabJack/blob/61e3c59d91a721ccef8f5504cb1ba4cab5e0cba8/LabJackApp/src/Makefile#L22-L43

Best
Xiaoqiang

> On 26 Sep 2023, at 19:30, Peter Pitfield via Tech-talk <tech-talk at aps.anl.gov> wrote:
> 
> Hello,
> I am trying to use the labjack module, and I am receiving the error message in the subject line.
> The complete error looks like this:
> /usr/bin/g++ -o labjackIOC  -L/home/raphael/EPICS/IOCs/labjackIOC/lib/linux-x86_64 -L/home/raphael/EPICS/epics-base/lib/linux-x86_64 -L/home/raphael/EPICS/support/LabJack/lib/linux-x86_64 -Wl,-rpath,/home/raphael/EPICS/IOCs/labjackIOC/lib/linux-x86_64 -Wl,-rpath,/home/raphael/EPICS/epics-base/lib/linux-x86_64 -Wl,-rpath,/home/raphael/EPICS/support/LabJack/lib/linux-x86_64          -rdynamic -m64         labjackIOC_registerRecordDeviceDriver.o labjackIOCMain.o    -llabjackIOCSupport -lLabJack -lqsrv -lpvAccessIOC -lpvAccessCA -lpvAccess -lpvData -ldbRecStd -ldbCore -lca -lCom   
> /usr/bin/ld: labjackIOC_registerRecordDeviceDriver.o: undefined reference to symbol 'pvar_dset_asynInt32ArrayWfIn'
> /usr/bin/ld: /home/raphael/EPICS/support/asyn/lib/linux-x86_64/libasyn.so: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[3]: *** [/home/raphael/EPICS/epics-base/configure/RULES_BUILD:231: labjackIOC] Error 1
> make[3]: Leaving directory '/home/raphael/EPICS/IOCs/labjackIOC/labjackIOCApp/src/O.linux-x86_64'
> make[2]: *** [/home/raphael/EPICS/epics-base/configure/RULES_ARCHS:58: install.linux-x86_64] Error 2
> make[2]: Leaving directory '/home/raphael/EPICS/IOCs/labjackIOC/labjackIOCApp/src'
> make[1]: *** [/home/raphael/EPICS/epics-base/configure/RULES_DIRS:85: src.install] Error 2
> make[1]: Leaving directory '/home/raphael/EPICS/IOCs/labjackIOC/labjackIOCApp'
> make: *** [/home/raphael/EPICS/epics-base/configure/RULES_DIRS:85: labjackIOCApp.install] Error 2
> 
> Also, I do not know how to set up an IOC with the labjack module. I have checked the readme file in the module and the documentation it has a link to, but the setup instructions did not seem complete. I would like to know what, if anything, I might be missing.
> 
> Thank you so much,
> Peter


References:
undefined reference to symbol 'pvar_dset_asynInt32ArrayWfIn' Peter Pitfield via Tech-talk

Navigate by Date:
Prev: Re: update to Phytron motor support Lutz Rossa via Tech-talk
Next: Re: undefined reference to symbol 'pvar_dset_asynInt32ArrayWfIn' Mark Rivers 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  <20232024 
Navigate by Thread:
Prev: undefined reference to symbol 'pvar_dset_asynInt32ArrayWfIn' Peter Pitfield via Tech-talk
Next: Re: undefined reference to symbol 'pvar_dset_asynInt32ArrayWfIn' Mark Rivers 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  <20232024 
ANJ, 27 Sep 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·