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  <20122013  2014  2015  2016  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: asyn4-20 compiling error on Scientific Linux 6.1
From: "Jim Chen" <[email protected]>
To: "'Eric Norum'" <[email protected]>
Cc: "'epics'" <[email protected]>
Date: Thu, 6 Sep 2012 17:38:40 +0100

Thanks Eric, the fix does the trick.

 

Jim

 

 

From: Eric Norum [mailto:[email protected]]
Sent: 06 September 2012 17:32
To: Jim Chen
Cc: 'epics'
Subject: Re: asyn4-20 compiling error on Scientific Linux 6.1

 

Yep, events are now strings.

Here's the quick fix that I made to work around this problem.

 

 

 diff -ur /usr/local/epics/R3.14.12/modules/soft/synApps_5_6/support/asyn4-20/asyn/devGpib/devCommonGpib.c /usr/local/epics/R3.15.0/modules/src/asyn/trunk/asyn/devGpib/devCommonGpib.c

--- /usr/local/epics/R3.14.12/modules/soft/synApps_5_6/support/asyn4-20/asyn/devGpib/devCommonGpib.c            2008-07-24 13:39:29.000000000 -0700

+++ /usr/local/epics/R3.15.0/modules/src/asyn/trunk/asyn/devGpib/devCommonGpib.2012-08-02 13:25:45.000000000 -0700

@@ -470,9 +470,7 @@

             "%s no msg buffer\n",pev->name);

         failure = -1;

     } else {/* interpret msg with predefined format and write into val/rval */

-        char *format = (pgpibCmd->format) ? (pgpibCmd->format) : "hu";

-        if (sscanf(pgpibDpvt->msg, format, &value) == 1) {

-            pev->val = value;

+        if (sscanf(pgpibDpvt->msg, " %39s", pev->val) == 1) {

             pev->udf = FALSE;

         } else { /* sscanf did not find or assign the parameter */

             failure = -1;

 

 

On Sep 6, 2012, at 9:17 AM, "Jim Chen" <[email protected]> wrote:



Mark,

 

Compiling either asyn-4.19 or 4-20 with EPICS R3.15.0.1 on Scientific Linux 6.1 gets the following error:

 

../../asyn/devGpib/devCommonGpib.c: In function ‘evFinish’:

../../asyn/devGpib/devCommonGpib.c:475: error: incompatible types when assigning to type ‘char[40]’ from type ‘short unsigned int’

make[2]: *** [devCommonGpib.o] Error 1

make[2]: Leaving directory ‘/home/test/linux/prod/R3.15.0.1/asyn/asyn4-19/asyn/O.linux-x86’

 

The linux version is: Linux version 2.6.32-131.0.15.el6.i686 ([email protected]) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ).

 

Is there a fix for this please?

 

Jim

 

-- 
Eric Norum
[email protected]

 


References:
asyn4-20 compiling error on Scientific Linux 6.1 Jim Chen
Re: asyn4-20 compiling error on Scientific Linux 6.1 Eric Norum

Navigate by Date:
Prev: Re: asyn4-20 compiling error on Scientific Linux 6.1 Eric Norum
Next: Re: asyn4-20 compiling error on Scientific Linux 6.1 Ron Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: asyn4-20 compiling error on Scientific Linux 6.1 Eric Norum
Next: Re: asyn4-20 compiling error on Scientific Linux 6.1 Ron Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·