EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS on Mac OS X 10.5
From: "Bertrand H.J. Biritz" <[email protected]>
To: Noboru Yamamoto <[email protected]>
Cc: [email protected]
Date: Sun, 4 Nov 2007 23:03:51 -0800
Thanks for the incredible fast response - I will give it a try once I get a chance.

Bertrand

On Nov 4, 2007, at 7:09 PM, Noboru Yamamoto wrote:

Hi,

Eric Norum wrote:
Looks like the prototype for finite() has moved from math.h.  You'll
have to:
a) find which header file provides this prototype (or macro) -- what
does man finite have to say?

math.h will includes architecture/{ppc,i386}/math.h. These file defines finite but surrounded by #if shown here.

#if !defined( __STRICT_ANSI__) && !defined(_ANSI_SOURCE) &&
(!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))


b) copy src/libCom/osi/os/posix/epicsMath.h to src/libCom/osi/os/ Darwin
and add the include for the header found above
You may not like the idea to add:

#ifdef __cplusplus
extern "C" {
#endif

int finite(double);

#ifdef __cplusplus
}


into epicsMath.h in os/Darwin directory. But seems simpler in this case.


Noboru



On Nov 4, 2007, at 5:03 PM, Bertrand H.J. Biritz wrote:

Dear Tech-Talk,

so I am one of those Mac fanboys (at least when it comes to the OS)
who installed OS X 10.5 (Leopard) as soon as it came out.

Naturally EPICS will not compile on it - would have been surprised if
it had. I get the following error message:


../epicsCalcTest.cpp: In function 'double doCalc(const char*)':
../epicsCalcTest.cpp:31: error: 'finite' was not declared in this scope
../epicsCalcTest.cpp: In function 'void testCalc(const char*, double)':
../epicsCalcTest.cpp:51: error: 'finite' was not declared in this scope
../epicsCalcTest.cpp:55: error: 'finite' was not declared in this scope
../epicsCalcTest.cpp: In function 'int main(int, char**)':
../epicsCalcTest.cpp:170: error: 'finite' was not declared in this scope
make[3]: *** [epicsCalcTest.o] Error 1
make[2]: *** [install.darwin-ppc] Error 2
make[1]: *** [libCom/test.install] Error 2
make: *** [src.install] Error 2


Did I miss something in the installation instructions?

This is with base-3.14.9 on a PPC.

Thanks,
Bertrand


<noboru.yamamoto.vcf>


Replies:
Re: EPICS on Mac OS X 10.5 Noboru Yamamoto
References:
EPICS on Mac OS X 10.5 Bertrand H.J. Biritz
Re: EPICS on Mac OS X 10.5 Eric Norum
Re: EPICS on Mac OS X 10.5 Noboru Yamamoto

Navigate by Date:
Prev: Re: EPICS on Mac OS X 10.5 Noboru Yamamoto
Next: 2 job openings at PSI Swiss Light Source Andreas Isenegger
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS on Mac OS X 10.5 Noboru Yamamoto
Next: Re: EPICS on Mac OS X 10.5 Noboru Yamamoto
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·