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

Subject: RE: undefined symbol:MAXvSetup
From: Mark Rivers <[email protected]>
To: 洪春霞 <[email protected]>, "[email protected]" <[email protected]>
Date: Sun, 6 May 2012 13:20:05 +0000
Hi,

I looked at your previous message.  Your commands to build the dbd file contain the following:

# bisaxsioc.dbd will be made up from these files:
bisaxsioc_DBD += base.dbd
bisaxsioc_DBD += xxxSupport.dbd
bisaxsioc_DBD += dbSubExample.dbd
bisaxsioc_DBD += bisaxsiocHello.dbd
bisaxsioc_DBD += asyn.dbd

bisaxsioc_DBD += oms.dbd
bisaxsioc_DBD += motorSupport.dbd
bisaxsioc_DBD += motorRecord.dbd
bisaxsioc_DBD += devOms.dbd
bisaxsioc_DBD += devSoftMotor.dbd

Where did you get oms.dbd?  It does not exist in the current version of the motor package.  Also, you don't need to include motorRecord.dbd, that it already loaded by motorSupport.dbd.  Please look at the example in motor/MotorExApp/WithAsyn/Makefile to see how to create a Makefile for an applicatio to work with motor.

Your Makefile also has:
bisaxsioc_LIBS += motor
bisaxsioc_LIBS += softMotor
bisaxsioc_LIBS += oms

These should really be in the opposite order, motor should come last.

You should build the entire motor module, including motorExApp with support for the MAXv enabled.  Then boot that test application in your vxWorks crate.  If that works, then you have an example of how to do it, and you can modify your application to be like that one.

Also, when you run "make clean" "make" in your application are there any errors or warnings?

Mark




________________________________
From: [email protected] [[email protected]] on behalf of 洪春霞 [[email protected]]
Sent: Sunday, May 06, 2012 2:59 AM
To: [email protected]
Subject: undefined symbol:MAXvSetup

Hello

Thank you very much for your reply.

I have added extern "C" before the function definition of MAXvSetup() and RTN_VALUES MAXvConfig(), but unfortunately, this can not solve my problem, and when I download st.cmd to the VME crate, it is still display the error: “undefined symbol:MAXvSetup”.

And I change the order of libs in makefile, it can not solve the problem also.

When I input nm command(nm bisaxsioc.munch | grep MAXvSetup) in the /bin/ vxWorks-ppc604_long directory, it displays nothing. So I think the .munch file does not correctly define the symbol MAXvSetup. Now I do not know what is the reason.

And I have another question, I have seen some OmsSrc/Makefile in some worked program, a part of the source code is bisaxs_SRCS_vxWorks += devMAXv.cc drvMAXv.cc, but the source file of OmsSrc which I copied from synApps_5_3/support/motor/6-3/motorApp/OmsSrc is SRCS += devMAXv.cc drvMAXv.cc. so I do not know if I should change it into the word of omsMAXv_SRCS_vxWorks.

Thank you very much.

hongchunxia
===================================================
No.239 Zhangheng Road
PuDong District
Shanghai Institute of Applied Physics CAS
Shanghai, China



References:
undefined symbol:MAXvSetup 洪春霞

Navigate by Date:
Prev: undefined symbol:MAXvSetup 洪春霞
Next: RE: Problem installing CA for QT Andrew Rhyder
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: undefined symbol:MAXvSetup 洪春霞
Next: Problem installing CA for QT manta santosh aditya santosh_aditya
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  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 ·