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  <20152016  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  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS Motif applications on the latest RHEL (7.0)
From: Jeong Han Lee <[email protected]>
To: [email protected]
Date: Fri, 19 Jun 2015 13:32:33 +0900
At least, I can tell "MEDM, ALH, Alh_printer, alh_DB, StripTool" can be compiled on Debian 7 and 8. And I can confirm StripTool is working well on both.

Note that motif package for
* Debian 7 (Wheezy) : lesstif2-dev
* Debian 8 (Jessie) : libmotif-dev,
and the enclosed quick and dirty patch for StripTool.

In addition, in the file CONFIG_SITE.linux-x86_64.linux-x86_64 in EXTENSIONS/configure/os, I assign the right path for LIB and INC for X11 and MOTIF.

---------
X11_LIB=/usr/lib/x86_64-linux-gnu
X11_INC=/usr/include
MOTIF_LIB=/usr/lib/x86_64-linux-gnu
MOTIF_INC=/usr/include
---------

I hope it will help for your RHEL 7.0 system.


Thanks,
Han



On 06/19/2015 04:24 AM, Farnsworth, Richard I. wrote:
Has anyone had experiences with the latest REDHAT release (RHEL 7.0) and
any of the Motif based applications - MEDM, ALH, Striptool, EDM etc.

Or, for that matter any other very recent release of Linux.

Thanks

Richard Farnsworth
Controls group leader
APS, Argonne.




--
Jeong Han Lee, Dr.rer.nat.
---------------------------
Rare Isotope Science Project
Institute for Basic Science
Daejeon, South Korea
---------------------------
tel  : +82-42-878-8733
fax  : +82-42-878-8799
diff -rupN StripTool2_5_16_0/Strip.c StripTool2_5_16_0_jhlee/Strip.c
--- StripTool2_5_16_0/Strip.c	2015-04-01 17:00:55.942083479 +0900
+++ StripTool2_5_16_0_jhlee/Strip.c	2015-04-01 16:57:09.380085523 +0900
@@ -1841,7 +1841,7 @@ int     Strip_writeconfig       (Strip
   if ((ret_val = StripConfig_write (si->config, f, m)))
   {
     StripConfig_setattr (si->config, STRIPCONFIG_FILENAME, fname, 0);
-    StripConfig_setattr (si->config, STRIPCONFIG_TITLE, basename (fname), 0);
+    StripConfig_setattr (si->config, STRIPCONFIG_TITLE, basename_s (fname), 0);
     StripConfigMask_set (&m, SCFGMASK_FILENAME);
     StripConfigMask_set (&m, SCFGMASK_TITLE);
     StripConfig_update (si->config, m);
@@ -1863,7 +1863,7 @@ int     Strip_readconfig        (Strip
   if ((ret_val = StripConfig_load (si->config, f, m)))
   {
     StripConfig_setattr (si->config, STRIPCONFIG_FILENAME, fname, 0);
-    StripConfig_setattr (si->config, STRIPCONFIG_TITLE, basename (fname), 0);
+    StripConfig_setattr (si->config, STRIPCONFIG_TITLE, basename_s (fname), 0);
     StripConfigMask_set (&m, SCFGMASK_FILENAME);
     StripConfigMask_set (&m, SCFGMASK_TITLE);
     StripConfig_update (si->config, m);
diff -rupN StripTool2_5_16_0/StripDialog.c StripTool2_5_16_0_jhlee/StripDialog.c
--- StripTool2_5_16_0/StripDialog.c	2015-04-01 17:00:55.942083479 +0900
+++ StripTool2_5_16_0_jhlee/StripDialog.c	2015-04-01 16:57:43.394757076 +0900
@@ -3396,7 +3396,7 @@ static void     save_config     (StripDi
     if (StripConfig_write (sd->config, f, mask))
     {
       StripConfig_setattr (sd->config, STRIPCONFIG_FILENAME, fname, 0);
-      StripConfig_setattr (sd->config, STRIPCONFIG_TITLE, basename (fname), 0);
+      StripConfig_setattr (sd->config, STRIPCONFIG_TITLE, basename_s (fname), 0);
       StripConfigMask_clear (&mask);
       StripConfigMask_set (&mask, SCFGMASK_FILENAME);
       StripConfigMask_set (&mask, SCFGMASK_TITLE);
@@ -3428,7 +3428,7 @@ static void     load_config     (StripDi
     if (StripConfig_load (sd->config, f, mask))
     {
       StripConfig_setattr (sd->config, STRIPCONFIG_FILENAME, fname, 0);
-      StripConfig_setattr (sd->config, STRIPCONFIG_TITLE, basename (fname), 0);
+      StripConfig_setattr (sd->config, STRIPCONFIG_TITLE, basename_s (fname), 0);
       StripConfigMask_set (&mask, SCFGMASK_FILENAME);
       StripConfigMask_set (&mask, SCFGMASK_TITLE);
       StripConfig_update (sd->config, mask);
diff -rupN StripTool2_5_16_0/StripMisc.c StripTool2_5_16_0_jhlee/StripMisc.c
--- StripTool2_5_16_0/StripMisc.c	2015-04-01 17:00:55.942083479 +0900
+++ StripTool2_5_16_0_jhlee/StripMisc.c	2015-04-01 16:58:09.312181901 +0900
@@ -579,7 +579,7 @@ static void Question_cb(Widget w, XtPoin
 }
 
 
-char    *basename       (char *path)
+char    *basename_s       (char *path)
 {
   char  *p = 0;
 
diff -rupN StripTool2_5_16_0/StripMisc.h StripTool2_5_16_0_jhlee/StripMisc.h
--- StripTool2_5_16_0/StripMisc.h	2015-04-01 17:00:55.942083479 +0900
+++ StripTool2_5_16_0_jhlee/StripMisc.h	2015-04-01 16:58:36.079847822 +0900
@@ -235,11 +235,11 @@ char    *dbl2str        (double,
 
 char    *int2str        (int x, char buf[], int n);
 
-/* basename
+/* basename_s
  *
  *      Returns the filename portion of a fully qualified path.
  */
-char    *basename       (char *);
+char    *basename_s       (char *);
 void History_MessageBox_popup(char *title,char *btn_txt,char *str);
 
 /* General purpose output routine

References:
EPICS Motif applications on the latest RHEL (7.0) Farnsworth, Richard I.

Navigate by Date:
Prev: Re: EPICS Motif applications on the latest RHEL (7.0) Jemian, Pete R.
Next: UCHAR to BITARRAY CONVERSION ishita bhatia
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS Motif applications on the latest RHEL (7.0) Mike Westfall
Next: UCHAR to BITARRAY CONVERSION ishita bhatia
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·