EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: building labCA on base 3.15.2, missing tsDefs.h
From: "Gierman, Stephen" <[email protected]>
To: "'Johnson, Andrew N.'" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 8 Sep 2015 16:41:25 +0000
Hi Andrew,

I started, as you suggest, by commenting out '#include <tsDefs.h>' in multiEzca.h.  I got a similar error, this time in multiEzca.c.

make[2]: Entering directory `C:/epics/R3.15.2/extensions/src/labca_3_4_2/glue/O.windows-x64'
cl -EHsc -GR            -DMATLAB_APP     -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE   -Ox -GL -Oy-   -W3 -w44355        -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL -TP  -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/msvc -I../../include/os/WIN32 -I../../include -I../../../../../base/include/compiler/msvc -I../../../../../base/include/os/WIN32 -I../../../../../base/include           -I../../ezca -IC:\matlab\R2015a/extern/include    -c ../ini.cc
ini.cc
cl            -DMATLAB_APP     -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE   -Ox -GL -Oy-   -W3 -w44355         -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL    -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/msvc -I../../include/os/WIN32 -I../../include -I../../../../../base/include/compiler/msvc -I../../../../../base/include/os/WIN32 -I../../../../../base/include           -I../../ezca -IC:\matlab\R2015a/extern/include    -c ../multiEzca.c
multiEzca.c
C:\matlab\R2015a/extern/include\mex.h(208) : warning C4005: 'printf' : macro redefinition
        ../../../../../base/include\epicsStdio.h(40) : see previous definition of 'printf'
../multiEzca.c(36) : fatal error C1083: Cannot open include file: 'tsDefs.h': No such file or directory
make[2]: Leaving directory `C:/epics/R3.15.2/extensions/src/labca_3_4_2/glue/O.windows-x64'
make[1]: Leaving directory `C:/epics/R3.15.2/extensions/src/labca_3_4_2/glue'

So I commented out '#include <tsDefs.h>' in multiEzca.c, and the build completed without error.

I tried adding '#include "epicsTime.h"', to multiEzca.h and that apparently worked, so I added it to multiEzca.c and that worked too.

Thanks very much!

Steve

-----Original Message-----
From: Johnson, Andrew N. [mailto:[email protected]] 
Sent: Monday, September 07, 2015 6:41 PM
To: Gierman, Stephen
Cc: [email protected]
Subject: Re: building labCA on base 3.15.2, missing tsDefs.h

Hi Stephen,

The tsDefs.h header was removed from Base between the 3.14 and 3.15 release series, it gave access to some routines which were replaced early in the 3.14 series with a new API, the epicsTime routines and the generalTime facility. If you don't have the C programming skills to make the necessary changes to the C source yourself you should ask the labCA maintainer whether they have a version ported to EPICS 3.15.2. The changes shouldn't take an experienced C developer very long to make, often the tsDefs.h routines were just used to convert time stamps into a string representation, for which there is now an EPICS version of strftime() that can be used instead.

If you want to try making the fix yourself, start by removing the #include "tsDefs.h" line from the multiEzca.h file and running make again to see what that breaks. You might want to try replacing it with #include "epicsTime.h" as well. Be sure to keep any follow-up conversation here on tech-talk since there are many people here who can help.

- Andrew

-- 
Sent from my iPad

> On Sep 7, 2015, at 6:19 PM, Gierman, Stephen <[email protected]> wrote:
> 
> Hi,
> 
> I'm building labCA (version 3.4.2) on base-3.15.2 for 64-bit windows.  The build fails in the 'glue' directory when it cannot find the include file 'tsDefs.h'.  Indeed, I do not find tsDefs.h in base-3.15.2, but I do find it in base-3.14.12.2, though it seems to be deprecated there.  Here are the last few lines of the build:
> 
> cl -EHsc -GR            -DMATLAB_APP     -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE   -Ox -GL -Oy-   -W3 -w44355        -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL -TP  -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/msvc -I../../include/os/WIN32 -I../../include -I../../../../../base/include/compiler/msvc -I../../../../../base/include/os/WIN32 -I../../../../../base/include           -I../../ezca -IC:\matlab\R2015a/extern/include    -c ../ini.cc
> ini.cc
> ..\multiEzca.h(32) : fatal error C1083: Cannot open include file: 'tsDefs.h': No such file or directory
> make[2]: Leaving directory `C:/epics/R3.15.2/extensions/src/labca_3_4_2/glue/O.windows-x64'
> make[1]: Leaving directory `C:/epics/R3.15.2/extensions/src/labca_3_4_2/glue'
> 
> I'm not sure what to do next ...
> 
> Steve Gierman
> 


References:
building labCA on base 3.15.2, missing tsDefs.h Gierman, Stephen
Re: building labCA on base 3.15.2, missing tsDefs.h Johnson, Andrew N.

Navigate by Date:
Prev: Re: CSS - Permission denied error Jeong Han Lee
Next: Re: CSS - Permission denied error Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: building labCA on base 3.15.2, missing tsDefs.h Johnson, Andrew N.
Next: Re: building labCA on base 3.15.2, missing tsDefs.h Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·