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

Subject: Re: MEDM crash
From: Torsten Bögershausen via Tech-talk <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>, 'Jeong Han Lee' <citadel.lee at gmail.com>, "Johnson, Andrew N." <anj at anl.gov>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Fri, 23 Oct 2020 08:18:45 +0200
There is a trial to improve the situation:

https://github.com/epics-extensions/medm/pull/3

BR
/Torsten



On 10/22/20 10:36 PM, Mark Rivers via Tech-talk wrote:
That fixed it.  I should have noticed that the Makefile has a commented out line to do that.  This is the "git diff" that fixes the problem.

-USR_LIBS_Linux = Xm Xt Xp Xmu X11 Xext
+#USR_LIBS_Linux = Xm Xt Xp Xmu X11 Xext
  #Xp is not available and not needed on Linux Mint 18
-#USR_LIBS_Linux = Xm Xt Xmu X11 Xext
+USR_LIBS_Linux = Xm Xt Xmu X11 Xext

Mark


-----Original Message-----
From: Jeong Han Lee <citadel.lee at gmail.com>
Sent: Thursday, October 22, 2020 3:34 PM
To: Johnson, Andrew N. <anj at anl.gov>
Cc: Mark Rivers <rivers at cars.uchicago.edu>; EPICS tech-talk <tech-talk at aps.anl.gov>
Subject: Re: MEDM crash

Mark,

Try to compile without Xp. makefile should contains

USR_LIBS_Linux = Xm Xt Xmu X11 Xext

instead of

USR_LIBS_Linux = Xm Xt Xp Xmu X11 Xext

Han

On Thu, Oct 22, 2020 at 1:30 PM Johnson, Andrew N. via Tech-talk <tech-talk at aps.anl.gov> wrote:

IIRC there are some libraries that are no longer needed and that might be one of them, try modifying the Makefile to take that out and see whether it builds.

- Andrew


On Oct 22, 2020, at 3:22 PM, Mark Rivers <rivers at cars.uchicago.edu> wrote:

Ø  As Bob pointed out you have an empty include path in your build. The last -I option there was eating up the -MM which explains the error message, so one of your extensions config variables was probably empty.

I solved that.  I was missing this file that needs to define X11_LIB and MOTIF_LIB:

extensions/configure/os/CONFIG_SITE.linux-x86_64-ub18.linux-x86_64-ub1
8

However, now I get this error:

    -lANLwidgets -lPrintUtils -lca -lCom -lXm -lXt -lXp -lXmu -lX11 -lXext   -lpthread   -lreadline -lm -lrt -ldl -lgcc
/usr/bin/ld: cannot find -lXp
collect2: error: ld returned 1 exit status
/corvette/usr/local/epics/base/configure/RULES_BUILD:212: recipe for
target 'medm' failed

I have Googled to see what package provides libXp.so on Ubuntu 18, and I can’t find it.  Others have the same problem.

Pete and Bob how did you install libXp.so?

Mark


From: Johnson, Andrew N. <anj at anl.gov>
Sent: Thursday, October 22, 2020 3:14 PM
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: Soliday, Robert T. <soliday at anl.gov>; EPICS tech-talk
<tech-talk at aps.anl.gov>
Subject: Re: MEDM crash

On Oct 22, 2020, at 1:54 PM, Mark Rivers <rivers at cars.uchicago.edu> wrote:


That PR builds OK on Centos 7, but it fails to build on Ubuntu 18.  I see the same failure on Ubuntu 18 with the MEDM_3_1_14 tag.


TahoeU18:/corvette/usr/local/epics/extensions_new/src/medm_fix> make
make -C ./printUtils install
make[1]: Entering directory '/corvette/usr/local/epics/extensions_new/src/medm_fix/printUtils'
make -C O.linux-x86_64-ub18 -f ../Makefile TOP=../../../.. \
    T_A=linux-x86_64-ub18 install
make[2]: Entering directory '/corvette/usr/local/epics/extensions_new/src/medm_fix/printUtils/O.linux-x86_64-ub18'
/usr/bin/gcc  -D_GNU_SOURCE -D_DEFAULT_SOURCE           -D_X86_64_  -DUNIX  -Dlinux      -O3 -g   -Wall      -mtune=generic      -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../../include/compiler/gcc -I../../../../include/os/Linux -I../../../../include -I/corvette/usr/local/epics/base/include/compiler/gcc -I/corvette/usr/local/epics/base/include/os/Linux -I/corvette/usr/local/epics/base/include   -I../../../../include       -I    -MM -MF xwd2ps.d  ../xwd2ps.c
cc1: error: to generate dependencies you must specify either -M or -MM


As Bob pointed out you have an empty include path in your build. The last -I option there was eating up the -MM which explains the error message, so one of your extensions config variables was probably empty.

- Andrew

--
Complexity comes for free, simplicity you have to work for.


--
Complexity comes for free, simplicity you have to work for.


References:
MEDM crash Siddons, David via Tech-talk
RE: MEDM crash Soliday, Robert T. via Tech-talk
Re: MEDM crash Johnson, Andrew N. via Tech-talk
Re: MEDM crash Mark Rivers via Tech-talk
Re: MEDM crash Johnson, Andrew N. via Tech-talk
RE: MEDM crash Mark Rivers via Tech-talk
Re: MEDM crash Johnson, Andrew N. via Tech-talk
Re: MEDM crash Jeong Han Lee via Tech-talk
RE: MEDM crash Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: Seeking config advice for smarAct MCS controller Mark Rivers via Tech-talk
Next: Thank you! Maren Purves via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE: MEDM crash Mark Rivers via Tech-talk
Next: Re: MEDM crash Siddons, David via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 23 Oct 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·