g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  Index 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014 
<== Date ==> <== Thread ==>

Subject: Patch for 3.14.9
From: Benjamin Franksen <benjamin.franksen@bessy.de>
To: core-talk@aps.anl.gov
Date: Wed, 28 Feb 2007 14:22:03 +0100
Hi,

attached is small bug-fix patch for the macLib (part of libCom). It appears 
that a certain warning ("macLib: xyz is recursive") issued by the macLib is 
not suppressed even if FLAG_SUPPRESS_WARNINGS is set. The patch fixes that; 
it can be applied equally well to to base-3.14.8.2 and base-3.14.9.

The problem with the un-suppressed warning is that when using MSI (which 
relies on macLib for the macro substitution) generated files get corrupted 
by the error message, since error output goes to stdout.

A more radical solution for problems like these might be to make the output 
stream of errlog configurable by the application (currently it is 
hard-coded to stdout).

Cheers
Ben
-- 
"Programming = Mathematics + Murphy's Law" (Dijkstra in EWD1008)
Index: src/libCom/macLib/macCore.c
===================================================================
RCS file: /opt/repositories/controls/epics/base/3.14/src/libCom/macLib/macCore.c,v
retrieving revision 1.1.1.3
diff -r1.1.1.3 macCore.c
768,771c768,773
<                 entry->error = TRUE;
<                 errlogPrintf( "macLib: %s %s is recursive (expanding %s %s)\n",
<                               entry->type, entry->name,
<                               entry2->type, entry2->name );
---
>                 if ( (handle->flags & FLAG_SUPPRESS_WARNINGS) == 0 ) {
>                     entry->error = TRUE;
>                     errlogPrintf( "macLib: %s %s is recursive (expanding %s %s)\n",
>                                   entry->type, entry->name,
>                                   entry2->type, entry2->name );
>                 }

Navigate by Date:
Prev: Re: EPICS on Tru64unix and HP-UX Kazuro FURUKAWA
Next: calcoutRecord.h Ralph Lange
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014 
Navigate by Thread:
Prev: Re: EPICS on Tru64unix and HP-UX Kazuro FURUKAWA
Next: calcoutRecord.h Ralph Lange
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·