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

Subject: RE: problem with tpmac-3-7 (loading IOC munch file results in undefined symbol error)
From: Jay Steele <[email protected]>
To: Andrew Johnson <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 14 Oct 2010 10:30:25 -0700
Hi Andrew Johnson and Ron Sluiter,
     You guys are correct - my problem was that I included the statement "ioc21idbnpVX_DBD += devDeltaTau.dbd" in my Makefile for the IOC. This caused conflict with the tpmac module.

Thanks,
Jay Steele

________________________________________
From: Andrew Johnson [[email protected]]
Sent: Thursday, October 14, 2010 7:02 AM
To: [email protected]
Cc: Jay Steele
Subject: Re: problem with tpmac-3-7 (loading IOC munch file results in undefined symbol error)

On Wednesday 13 October 2010 16:43:12 Jay Steele wrote:
> Hi Tech-Talk,
>     To use the TurboPMAC VME board with a PPC mother board to control
> motors, I am trying to integrate tmac-3-7 with synApps_5_5 and
> epics/base-3-14-11 for my IOC named 21idbnp. I am having the following
> problem. Any clues to its resolution or a workaround would be greatly
> appreciated.
>
> tpmac-3-7 compiles with synApps. I added the statement
> "ioc21idbnpVX_DBD+=pmacInclude.dbd" to 21idbnpApp/src/Makefile.
> pmacInclude.dbd includes statusRecord.dbd, tsubRecord.dbd,
> statusDevice.dbd, pmacAsynIPPort.dbd, pmacAsynMotor.dbd, pmacAsynCoord.dbd,
> and add_pmac.dbd. Then I compile the 21idbnp IOC that includes the tpmac
> libraries (pmacAsynCoord, pmacAsynIPPort, pmacAsynMotor, pmacIoc). This
> compiles for vxWorks without error.
>
> When I load the munch file to vxworks, I get the following error.
>
> ld(0,0,"21idbnp.munch")
> Undefined symbol: pvar_dset_devPmac (binding 1 type 0)
> Undefined symbol: pvar_dset_devPmacRamStatus (binding 1 type 0)
> ld error: Module contains undefined symbol(s) and may be unusable.
> value = 0 = 0x0

This error usually means that you have a statement in your final .dbd file
that is not found in any of the libraries you're linking to.  In your case
though...

> For my investigation, I see the following:
> 1. when compiling the IOC, -lpmacIoc, -lpmacAsynCoord, -lpmacAsynIPPort,
> and -lpmacAsynMotor are used with ld to create 21idbnp. 2. grep using the
> string "pvar_dset_devPmac" in the IOC directory results in the following:
> a. binary file 21idbnp.munch matches.
>       b. ioc21idbnpVx_registerRecordDeviceDriver.cpp has references to
> pvar_dset_devPmac. c. binary file 21idbnp matches.
>       d. binary file ioc21idbnpVx_registerRecordDeviceDriver.o matches.
>       e. 21idbnp.nm has references to pvar_dset_devPmac.
> 3. Same results as #2 above for string "pvar_dset_devPmacRamStatus"

I wonder if the problem is related to the fact that you had a -static link in
the command line that you posted a couple of emails later in the thread.  It
might be helpful if we knew a little more about your setup, and whether you're
intentionally building it statically.  Often it helps if you post your
complete Makefile.

- Andrew
--
If a man is offered a fact which goes against his instincts, he will
scrutinize it closely, and unless the evidence is overwhelming, he will
refuse to believe it.  If, on the other hand, he is offered something
which affords a reason for acting in accordance to his instincts, he
will accept it even on the slightest evidence.  -- Bertrand Russell

 The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed.  Any use of this email for any other purpose is prohibited.  If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.


References:
problem with tpmac-3-7 (loading IOC munch file results in undefined symbol error) Jay Steele
Re: problem with tpmac-3-7 (loading IOC munch file results in undefined symbol error) Andrew Johnson

Navigate by Date:
Prev: RE: EPICS CA problems Jeff Hill
Next: slow caput from R3.14.11 client to R3.14.9 IOC Mark Boots
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: problem with tpmac-3-7 (loading IOC munch file results in undefined symbol error) Andrew Johnson
Next: slow caput from R3.14.11 client to R3.14.9 IOC Mark Boots
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 14 Oct 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·