<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
Think I have fixed this, just needed a small modification to init_sys_stats in sys_stats_unix.c.  <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">We should be able to build & run epics 3.15 iocs on RHEL9
 using system 7.1.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> acs <acs-bounces@jlab.org> on behalf of Gary Croke via acs <acs@jlab.org><br>
<b>Sent:</b> Wednesday, May 24, 2023 5:59 PM<br>
<b>To:</b> acs@jlab.org <acs@jlab.org><br>
<b>Subject:</b> Re: [acs] EPICS 3.15.6 on RHEL9</font>
<div> </div>
</div>
<div lang="EN-US">
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Hi All,</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">When I got iocsoftinj3 running 3.15.6 on RHEL9 (opsbat9), it entered a continual reboot cycle.  This seems to be related to the system database 7.1.  Sue has reported having the same problem.  The ioc runs fine without
 system.  As a test I also built 7.0 against 3.15 on RHEL9, and the ioc runs fine with this version.  Does anyone know what causes this?</span></p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">I also attempted to use epics 3.15.9 as Brian suggested.  I had to build a bunch of stuff.  The outcome is the same, fine with system 7.0, crashes with 7.1
</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Gary</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div class="x_MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b><span style="color: black;">From:</span></b><span style="color: black;"> acs <acs-bounces@jlab.org> on behalf of Gary Croke via acs <acs@jlab.org><br>
<b>Sent:</b> Tuesday, May 23, 2023 1:55 PM<br>
<b>To:</b> Brian Bevins <bevins@jlab.org>; acs@jlab.org <acs@jlab.org><br>
<b>Subject:</b> Re: [acs] EPICS 3.15.6 on RHEL9</span> </p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
</div>
</div>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Thanks Brian,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">I had been building on my local machine, which is 9.1.  I rebuilt, relinked and restarted, and now it's booting, but immediately crashing, which is progress I guess!  Maybe I just hadn't run makelynx or something. 
 I'll try 3.15.9.  Thanks again.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div class="x_MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b><span style="color: black;">From:</span></b><span style="color: black;"> Brian Bevins <bevins@jlab.org><br>
<b>Sent:</b> Tuesday, May 23, 2023 1:44 PM<br>
<b>To:</b> acs@jlab.org <acs@jlab.org>; Gary Croke <gcroke@jlab.org>; Brian Bevins <bevins@jlab.org><br>
<b>Subject:</b> Re: EPICS 3.15.6 on RHEL9</span> </p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
</div>
</div>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">It looks like the 64bit version didn't get installed:</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">[81] bevins@opsbat9 > ll O.rhel-9-x86_64/iocsoftinj3Apps</span><span style="font-size: 12pt; color: black;">
</span></p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">-rwxrwxr-x. 1 gcroke epics 9835008 May 23 13:41 O.rhel-9-x86_64/iocsoftinj3Apps*</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">[82] bevins@opsbat9 > ll /cs/op/iocs/iocsoftinj3/iocsoftinj3AppsO/iocsoftinj3Apps</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">-r-xr-xr-x. 1 gcroke epics 2778748 Mar 28 11:13 /cs/op/iocs/iocsoftinj3/iocsoftinj3AppsO/iocsoftinj3Apps*</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">--Brian</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div class="x_MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_x_x_divRplyFwdMsg">
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b><span style="color: black;">From:</span></b><span style="color: black;"> acs <acs-bounces@jlab.org> on behalf of Brian Bevins via acs <acs@jlab.org><br>
<b>Sent:</b> Tuesday, May 23, 2023 1:37 PM<br>
<b>To:</b> acs@jlab.org <acs@jlab.org>; Gary Croke <gcroke@jlab.org><br>
<b>Subject:</b> Re: [acs] EPICS 3.15.6 on RHEL9</span> </p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
</div>
</div>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Gary,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Where are you doing the build? /usr/lib64/libstdc++.so.6 is a standard system library and should be in place on all rhel9 machines. It's definitely there on opsbat9.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">[70] bevins@opsbat9 > pwd</span><span style="font-size: 12pt; color: black;">
</span></p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">/a/devsite/csite7/it/llapp_R3.14/iocsoftinj3Apps/1-3/iocCode/src</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">[71] bevins@opsbat9 > ldd O.rhel-9-x86_64/iocsoftinj3Apps</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      linux-vdso.so.1 (0x00007ffd0b0ce000)</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      libreadline.so.8 => /lib64/libreadline.so.8 (0x00007fcafe85e000)</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      <span style="background: yellow;">libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fcafe637000)</span></span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      libm.so.6 => /lib64/libm.so.6 (0x00007fcafe55c000)</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fcafe541000)</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      libc.so.6 => /lib64/libc.so.6 (0x00007fcafe336000)</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007fcafe307000)</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; font-family: "Courier New"; color: black;">      /lib64/ld-linux-x86-64.so.2 (0x00007fcafe8d4000)</span><span style="font-size: 12pt; color: black;"></span></p>
</div>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">BTW, R3.15.6 would not fully build on rhel9. There's probably enough there to build your soft ioc app, but if you run into missing EPICS libraries you might need to upgrade to R3.15.9, which shouldn't be a big change.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">--Brian</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div class="x_MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_x_x_x_divRplyFwdMsg">
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b><span style="color: black;">From:</span></b><span style="color: black;"> acs <acs-bounces@jlab.org> on behalf of Gary Croke via acs <acs@jlab.org><br>
<b>Sent:</b> Tuesday, May 23, 2023 1:26 PM<br>
<b>To:</b> acs@jlab.org <acs@jlab.org><br>
<b>Subject:</b> [acs] EPICS 3.15.6 on RHEL9</span> </p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
</div>
</div>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Hi Folks,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Trying to port iocsoftinj3 to opsbat9, get the following:</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">./iocsoftinj3AppsO/iocsoftinj3Apps: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Is this just a case of copying files?  Seems we don't have an operational soft ioc with this combo of 3.15.6 and RHEL9 yet.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Thanks,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 12pt; color: black;">Gary</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>