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  <20102011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: [Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h
From: "Jincheol B. Kim" <jincheol.b.kim@gmail.com>
To: Dirk Zimoch <dirk.zimoch@psi.ch>
Cc: EPICS Tech-Talk <tech-talk@aps.anl.gov>
Date: Tue, 11 May 2010 17:20:45 +0900
Dear Dirk and Lewis,

I thank you for your prompt and kind reply.

It is true that I installed two versions of EPICS, base release 3.14.11 and 3.14.8.2, but their installation path are different from each other and I unset all of the EPICS-related environment variables before installing each release. Absolutely the two base releases are not installed mixed-up.

As Lewis pointed out, I thought the problem seemed to be related to problems in generating dbCommon.h. However, I could not find any clue up to now.

I am still looking into the problem. If I find something, I will let you know it again.

Thank you again.

Best regards,

Jincheol Kim.



Dirk Zimoch ì ê:
Hello Jincheol,

Given the differences Lewis found, can it be that you have a mixture of two different EPICS versions? Have you recently upgraded your EPICS version?

Dirk


J. Lewis Muir wrote:
On 5/9/10 9:40 PM, Jincheol B. Kim wrote:
Dear Lewis and Ralph,

I appreciate your kind reply.

Currently, I am working with the KSTAR team at NFRI, Daejeon, Korea and
developing a distributed control and data acquisition module for the
ECEI diagnostics to be installed at KSTAR. The version of EPICS base in
the current KSTAR integrated control system is 3.14.8.2 and that's why I
am using EPICS base 3.14.8.2.


The error seems to be so strange as you can see. I had used EPICS before
but I haven' seen any error like this before. As far as I have learned
about the error, it happens because the compiler can not find
appropriate definitions of defined type (typedef types) in the
definition of fields of the structure in dbCommon.h. I attach the
dbCommon.h and epicsTime.h to this e-mail, but they are the files
included in the published distribution.

Hi, Jincheol.


I don't think dbCommon.h is included in the distribution, it is
generated at build time (by src/db/Makefile).

Comparing your dbCommon.h to mine, I see they are different.  Mine
includes the following before the "#ifndef INCdbCommonH" line:

#include "ellLib.h"
#include "epicsMutex.h"
#include "link.h"
#include "epicsTime.h"
#include "epicsTypes.h"

So my dbCommon.h includes "epicsTime.h" which defines the epicsTimeStamp
type.  Your dbCommon.h does *not* include "epicsTime.h" which is why the
compiler doesn't understand the "epicsTimeStamp    time;" line in the
dbCommon typedef which is why it's failing when it includes dbCommon.h
in dbLock.c.

Given this, I think the problem is in how your dbCommon.h is getting
generated.  Why is it missing the includes that mine has?  Are you
seeing any errors in your build when it builds dbCommon.h?

I don't have a lot of experience with how dbCommon.h gets generated.  I
could continue to help, but I suspect others on this list might have
better suggestions about what is going wrong at this point.

Lewis










--
*-----------------------------------------------------------------------*
"Advancement of Science with Innovation of Advanced Computing Technology"


  Jincheol B. Kim, Ph. D.
  Research Professor

  Center for Fusion Plasma Diagnostics
         and Steady State Operation Research,
  Department of Physics, POSTECH
  San 31, Hyoja-dong, Nam-gu
  Pohang, Kyungbuk 790-784
  Republic of Korea

  Tel: +82 54 279 5849		   FAX: +82 54 279 3099
  Mobile: +82 10 2713 7593	   E-Mail: jckim@postech.ac.kr
				  	   Jincheol.B.Kim@gmail.com
*-----------------------------------------------------------------------*


References:
[Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h Jincheol B. Kim
Re: [Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h J. Lewis Muir
Re: [Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h Jincheol B. Kim
Re: [Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h J. Lewis Muir
Re: [Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h Dirk Zimoch

Navigate by Date:
Prev: Re: [Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h Dirk Zimoch
Next: No monitor refresh Hinko Kocevar
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: [Request of tech-support] Error in compiling EPICS 3.14.8.2 base with dbCommon.h Dirk Zimoch
Next: AutoSaveRestore of the motor position 张招红
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·