Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: MEDM crashes immediately under Linux
From: "J. Lewis Muir" <jlmuir@anl.gov>
To: tech-talk@aps.anl.gov
Date: Tue, 18 May 2004 17:10:12 -0500
On Tue, May 18, 2004 at 04:40:57PM -0500, Robert Soliday wrote:
> Delete epics/base/bin/linux-x86/makeMakefile.pl and
> epics/base/bin/linux-x86/installEpics.pl
> 
> Edit epics/base/configure/CONFIG_SITE and set:
> COMPAT_313=YES
> 
> Next type make from epics/base to setup the the 3.13 compatibility. It 
> shouldn't need to rebuild any of the programs in base.
> 
> Now you should be able to build medm without worrying about the perl 
> scripts.
> 
> You could also download our Redhat RPM 
> EpicsExtensions-3.14.5-1_3.2x.i386.rpm that contains medm.
> 
> http://www.aps.anl.gov/asd/oag/installationGuide_Linux.htm
> 
> --Bob Soliday

Great! This solved my problem. This made MEDM compile out of the box.
And it doesn't crash when I run it now.

Thanks for the fast and excellent help!

-lewis

> 
> J. Lewis Muir wrote:
> > Hello. I'm having problems getting the EPICS MEDM extension to work.
> > medm crashes when I try to run it.
> > 
> > Below, I've stated exactly how I've built EPICS and the MEDM extension.
> > These steps were performed on an x86 Red Hat Enterprise Linux (RHEL) WS
> > v.3 computer. I have tried the same steps on an x86 Red Hat Linux 9
> > computer with the same results.
> > 
> > The version of gcc is 3.2.3.
> > The version of Open Motif is 2.2.2.
> > The version of XFree86 is 4.3.0.
> > 
> > Here are the steps I followed to build EPICS and the MEDM extension.
> > 
> > Download needed files:
> > $ cd /data/jlmuir
> > $ mkdir downloads
> > $ cd downloads
> > $ wget http://www.aps.anl.gov/epics/download/base/baseR3.14.5.tar.gz
> > $ wget http://www.aps.anl.gov/epics/download/extensions/\
> > extensionsConfig_20040406.tar.gz
> > $ wget http://www.aps.anl.gov/epics/download/extensions/medm3_0_3.tar.gz
> > $ cd ..
> > 
> > Build EPICS Base 3.14.5:
> > $ mkdir opt
> > $ mkdir opt/epics-3.14.5
> > $ cd opt/epics-3.14.5
> > $ tar -xzvf ../../downloads/baseR3.14.5.tar.gz
> > $ mv base-3.14.5/ base
> > $ cd base
> > $ export EPICS_HOST_ARCH=linux-x86
> > $ make clean uninstall
> > $ make
> > $ cd ..
> > 
> > Build EPICS MEDM extension:
> > (I've left out the new-style extensionsConfigure_20040406.tar.gz files
> > since MEDM doesn't seem to use them. I've also tried including them but
> > they don't make the crash problem go away.)
> > $ tar -xzvf ../../downloads/extensionsConfig_20040406.tar.gz
> > $ tar -xzvf ../../downloads/medm3_0_3.tar.gz
> > $ cd extensions
> > $ vi config/RELEASE
> > ---
> > EPICS_BASE=/data/jlmuir/opt/epics-3.14.5/base
> > ---
> > $ cd src/medm
> > (make fails without doing this first)
> > $ cp ../../../base/configure/tools/makeMakefile.pl \
> >   ../../../base/bin/linux-x86/
> > (make fails without doing this first)
> > $ cp ../../../base/configure/tools/installEpics.pl \
> >   ../../../base/bin/linux-x86/
> > $ make
> > 
> > This time it seems to mostly compile but fails when linking medm with a
> > bunch of undefined reference errors like this:
> > ---
> > cc   medm.o   -o medm
> > medm.o(.text+0x26a): In function `parseCommandLine':
> > : undefined reference to `medmPrintf'
> > medm.o(.text+0x2d0): In function `parseCommandLine':
> > : undefined reference to `convertNameToFullPath'
> > medm.o(.text+0x45d): In function `parseCommandLine':
> > : undefined reference to `extractStringBetweenColons'
> > .....
> > ---
> > 
> > The command "cc medm.o -o medm" doesn't look right since it doesn't
> > include any of the libraries that medm needs.
> > 
> > So I compile it by hand like this:
> > $ cd medm/O.linux-x86
> > $ cc -o medm *.o -L/usr/X11R6/lib -lX11 -lXt -lXm -lm \
> >   -L/data/jlmuir/opt/epics-3.14.5/base/lib/linux-x86 -lca -lCom \
> >   ../../xc/O.linux-x86/libANLwidgets.a \
> >   ../../printUtils/O.linux-x86/libPrintUtils.a
> > 
> > Now I try to run it:
> > $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/jlmuir/opt/\
> > epics-3.14.5/base/lib/linux-x86
> > $ ./medm
> > (The first two error messages repeat many times (and the first appears
> > more times than the second) and then it exits after the last error:)
> > ---
> > Tue May 18 15:39:07 CDT 2004
> > xErrorHandler:
> > BadWindow (invalid Window parameter)
> > .....
> > Tue May 18 15:39:07 CDT 2004
> > xtErrorHandler:
> > No realize class procedure defined
> > .....
> > Tue May 18 15:39:08 CDT 2004
> > xtErrorHandler:
> > No realize class procedure defined
> > MEDM Version 3.0.3: Loading aliased fonts..
> > SIGSEGV
> > Aborted
> > ---
> > 
> > Does anyone have any suggestions to help me get this working? I'd also
> > be interested in hearing whether anyone has gotten this version of EPICS
> > and MEDM to work on other systems (Linux or otherwise).
> > 
> > Thanks!
> > 
> > -lewis
> 

References:
MEDM crashes immediately under Linux J. Lewis Muir

Navigate by Date:
Prev: MEDM crashes immediately under Linux J. Lewis Muir
Next: next 3.14 release Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: MEDM crashes immediately under Linux J. Lewis Muir
Next: next 3.14 release Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·