Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: compile problem medmCartesianPlot
From: Eric Norum <norume@aps.anl.gov>
To: Burkhard Kolb <b.kolb@gsi.de>
Cc: tech-talk@aps.anl.gov
Date: Fri, 14 Mar 2003 10:49:20 -0600
Burkhard Kolb wrote:
I successfully installed base R3.14.1 on Mac OS X.
When trying to build medm I get the following compiler error:
make -C O.darwin-ppc -f ../Makefile.Host T_A=darwin-ppc BUILD_TYPE=Host install
gcc -ansi -pedantic -D_POSIX_C_SOURCE=199506L -g -Wall -DFLDNAME_SZ=4 -DSCIPLOT -DMOTIF -DEDITRES -fPIC -D_REENTRANT -DUNIX -no-cpp-precomp -I. -I.. -I../../printUtils -I../../xc -I/sw/Xm/include -I/usr/X11R6/include/X11 -I../../../../include/os/Darwin -I../../../../include -I/Volumes/user/epics/base/include/os/Darwin -I/Volumes/user/epics/base/include -I/sw/include -I/usr/X11R6/include -c ../medmCartesianPlot.c
...../medmCartesianPlot.c:44: parse error before "sizeof"
make[1]: *** [medmCartesianPlot.o] Error 1
make: *** [install.darwin-ppc] Error 2


Any clue?

What version of the MEDM source do you have? This sounds like a problem with isnan that was fixed last September.


Does the code around line 44 on your version look like the following? On Mac OS X it's important to have the
extern int isnan(double);
before the
#include <math.h>


======================================================================
#ifdef WIN32
#include <float.h>
#define isnan(a) _isnan(a) /* For some reason MS has leading _ */
#else
extern int isnan(double); /* In case it's not in math.h as it should be */
#include <math.h> /* Must follow extern statement in case isnan is a macro */
#endif /* WIN32 */
#define NAN_SUBSTITUTE 0.0
#define SAFEFLOAT(x) (safeFloat(x))
#else
#define SAFEFLOAT(x) ((float)(x))
#endif /* End #ifdef CHECK_NAN */




--
Eric Norum                                 norume@aps.anl.gov
Advanced Photon Source                     Phone: (630) 252-4793
Argonne National Laboratory


Replies:
Re: compile problem medmCartesianPlot Burkhard Kolb
References:
compile problem medmCartesianPlot Burkhard Kolb

Navigate by Date:
Prev: compile problem medmCartesianPlot Burkhard Kolb
Next: Re: compile problem medmCartesianPlot Burkhard Kolb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: compile problem medmCartesianPlot Burkhard Kolb
Next: Re: compile problem medmCartesianPlot Burkhard Kolb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·