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: v3_13Beta11 compilation Error
From: Jeffrey Mcdonald <[email protected]>
To: [email protected]
Date: Fri, 5 Jun 1998 15:43:38 -0500 (CDT)
Hi,

	I'm attempting to compile the latest version of EPICS and I'm
running into problems compiling gdd -- which uses the sgi C++
(IRIX 6.2 ) compiler.
The problem is:

gmake[1]: Entering directory
`/projects/711/online_1/epics/v3_13b11/base/src/gdd/O.sgi'
CC +p +w  -O   -DSGI  -I. -I..  -I../../../include -I../../../include
-I../../../include/os/sgi -DUNIX     -c  ../genApps.cc
"../aitTypes.h", line 83: error(3337): invalid redeclaration of type name
          "timespec" (declared at line 11 of "/usr/include/sys/ptimers.h")
  struct timespec
         ^

1 error detected in the compilation of "../genApps.cc".
gmake[1]: *** [genApps.o] Error 1
gmake[1]: Leaving directory
`/projects/711/online_1/epics/v3_13b11/base/src/gdd/O.sgi'
gmake: *** [install.sgi] Error 2

*********

Which I have determined is due to the fact that _POSIX_C_SOURCE is < 3 for 
the sgi os, and struct timespec  is defined elsewhere: in sys/ptimers.h

aitTypes.h: 

#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


	I have fixed the problem by additing two additional conditionals:
aitTypes.h:

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

	I could not find where _POSIX_C_SOURCE is defined in the configure
files.   Can someone tell me where I can set this variable so that the
fix can avoid changing the code?  

	Thanks, 

		Jeff
	

_____________________________________________________
Jeffrey McDonald, Florida State   [email protected]
FNAL MS 352			  phone   630-840-8301
Batavia, IL 60510                 fax     630-840-8886





Navigate by Date:
Prev: Re: BITBUS availability... Ned Arnold
Next: compilation of src/ca Jeffrey Mcdonald
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: Re: BITBUS availability... Ned Arnold
Next: RE: v3_13Beta11 compilation Error Jeff Hill
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 ·