EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CA Server and EPICS
From: john sinclair <[email protected]>
To: Dan Yocum <[email protected]>
Cc: tech talk <[email protected]>
Date: Tue, 31 Mar 1998 14:32:12 -0500 (EST)
On Tue, 31 Mar 1998, Dan Yocum wrote:

> 
> John,
> 
> How did the build go under RH5.0?  Did you get the extensions built as well?  
> Do you have any notes that might be useful?  
> 
> For some reason, I can't get the extensions built on my RH4.2 system and am 
> going to try to build the whole thing on a 5.0 to see if I have any luck.  
> 
> Thanks, in advance.
> 
> Dan
> ________________________________________________________________________
> Dan Yocum                              | Phone:  (630) 252-6102
> Scientific Associate-Data Acquisition  | Fax:    (630) 252-4163
> Intense Pulsed Neutron Source Division | email:  [email protected]
> Argonne National Laboratory            | WWW:    hydra.pns.anl.gov/yocum/
> 9700 South Cass Avenue                 |          yocum2.html
> Argonne, IL  60439                     | 
>                                        | 
> _______________________________________|________________________________
> 
> 

The build of base went fine. I have not yet tried to build extensions.
I need to install motif first.

============================================================================

Besides changing EPICS_BASE and HOST_ARCH, I had to do two things
to get base to build under Redhat Linux 5.0 (patches thru 3/1/98 installed):

===================================================

1) Change the OP_SYS_FLAGS variable:

OLD:

  OP_SYS_FLAGS = -DUNIX

NEW:

  OP_SYS_FLAGS = -DUNIX -D_BSD_SOURCE -D_POSIX_SOURCE


===================================================

2) Change aitTypes.h as follows:

Note: aitTypes.h is found in .../epics/base/include and
      .../epics/base/src/gdd - I have no idea why there
      are two copies but, in any case, I changed both copies.

OLD:

  #ifndef vxWorks
  #if (_POSIX_C_SOURCE < 3) && !defined(solaris) && !defined(SOLARIS)
  struct timespec
  {
          time_t tv_sec;
          long tv_nsec;
  };
  typedef struct timespec timespec;
  #endif
  #endif

NEW:

  #if !defined(vxWorks) && !defined(__timespec_defined)
  #define	__timespec_defined 1
  #if (_POSIX_C_SOURCE < 3) && !defined(solaris) && !defined(SOLARIS)
  struct timespec
  {
  	time_t tv_sec;
  	long tv_nsec;
  };
  typedef struct timespec timespec;
  #endif
  #endif

  #if defined(linux)
  typedef struct timespec timespec;
  #endif

===================================================

John Sinclair
[email protected]
Oak Ridge National Lab
423-576-6362
423-574-1268 (fax)


Replies:
Re: CA Server and EPICS Bill Lavender

Navigate by Date:
Prev: Re: CA Server Mark S. Engbretson
Next: Re: CA Server Arun S, Bommannavar
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Survey of automation techniques Peregrine M. McGehee
Next: Re: CA Server and EPICS Bill Lavender
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
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 ·