EPICS Controls 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  2021  2022  2023  2024  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  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: MEDM crashes immediately under Linux
From: "J. Lewis Muir" <[email protected]>
To: [email protected]
Date: Tue, 18 May 2004 16:30:43 -0500
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

Navigate by Date:
Prev: EPICS indexed by the FSF/UNESCO Free Software Directory Jeff Hill
Next: Re: MEDM crashes immediately under Linux J. Lewis Muir
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  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Power Ten power supplies Steven Hartman
Next: Re: MEDM crashes immediately under Linux J. Lewis Muir
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  2021  2022  2023  2024 
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 ·