EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: sequencer under linux questions
From: Dennis Nicklaus <[email protected]>
To: [email protected]
Date: Fri, 28 Jul 2006 13:53:43 -0500
I've tried to build a SNL/sequencer application under linux in both ways suggested in the
directions in the Makefile, and I seem to be one bit of directions short in either way.
If I build it as a component of my application, then how do I run it?


For this, I uncomment these lines in the Makefile
ESG_SRCS += sncExample.stt
ESG_LIBS += seq pv
(my application is ESG)
and get things to build, but then after I run st.cmd and am at the "epics>" prompt of iocsh,
what command do I give to run the sequence?
None of seq, sncExample, seqShow,... work. They just give me a "Command Not Found" message.


"nm" verifies that the sncExample symbol is there, along with some related othes
0804c020 d seqChan
U seq_delay
U seq_delayInit
U seqRegisterSequencerCommands
U seqRegisterSequencerProgram
0804c0a0 d seqSS
0804c0c0 D sncExample
0804af54 T sncExampleRegistrar
0804a73c T _start
0804c060 d state_ss1



If I alter the Makefile and make it standalone, I get a complaint that there is no "main()"
routine, as shown below. Where do I pick up a main() from?



$ make
make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install
make[1]: Entering directory `/mnt/disk1/p/epics/support/agilentsg/ESGApp/src/O.linux-x86'
/usr/bin/g++ -o sncExample -L/p/epics/support/seq/lib/linux-x86/ -L/p/epics/v3_14_8_f2/lib/linux-x86/ -Wl,-rpath,/mnt/disk1/p/epics/support/agilentsg/lib/linux-x86 -Wl,-rpath,/p/epics/support/seq/lib/linux-x86 -Wl,-rpath,/p/epics/support/asyn/4-6/lib/linux-x86 -Wl,-rpath,/p/epics/v3_14_8_f2/lib/linux-x86 sncExample.o -lseq -lpv -lcas -lgdd -liocsh -lasHost -ldbStaticHost -lregistryIoc -lca -lCom
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [sncExample] Error 1



Thanks, Dennis



Navigate by Date:
Prev: Re: Moxa N-Port, ASYN and IOC Exit Emmanuel Mayssat
Next: Re: build multiple tops? Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Moxa N-Port, ASYN and IOC Exit John William Sinclair
Next: RE: sequencer under linux questions Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·