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  <20082009  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  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Re: compile error about gateway
From: "Silver" <[email protected]>
To: "Dirk Zimoch" <[email protected]>
Cc: tech-talk <[email protected]>
Date: Thu, 4 Dec 2008 07:56:41 +0800
hi, Dirk:

  I am using base.14.8.2. I have seen those comments in gateVc.cc, making me puzzle is that I uncomment the line for base3.14.9, the compilation will pass for base3.14.8.2 on centOS5.2.
  I will have a look at your reply before. thanks a lot.

======= At 2008-12-03, 23:20:44 you wrote: =======

>Hi Geyang,
>
>You are probably compiling with base  3.14.10? There are some (secret) changes
>between 3.14.8.2 and 3.14.9 which require some modifications in the source code.
>Have a look in gateVc.cc lines 1012-1014. Comment line 1013 and uncomment line
>1014.
>
>Maybe I should add some macro tests for EPICS_MODIFICATION, but there are other
>problems, eg. when using pre-releases (See my reply on the "sscan compile error
>on base 3.14.10 in linux" thread).
>
>Dirk
>
>Silver wrote:
>> hi, all:
>> 
>> I think I would disturb Dirk to see thsi again. :)
>> when I tried to compile gateway2_0_2_1 on centOS 5.2, there is an error like following:
>> 
>> make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install
>> make[1]: Entering directory `/usr/local/epics/extensions/src/gateway2_0_2_0/O.linux-x86'
>> /usr/bin/g++ -c   -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500        -D_X86_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT -ansi  -O3  -Wall     -DSTAT_PVS -DRATE_STATS -DCONTROL_PVS -DCAS_DIAGNOSTICS -DHANDLE_EXCEPTIONS -DUSE_DENYFROM      -g  -I. -I.. -I../../../include/os/Linux -I../../../include -I../../../../base/include/os/Linux -I../../../../base/include -I../../../include/os/Linux -I../../../include     -I../../../../base/src/cas/generic    ../gateVc.cc 
>> ../../../../base/include/gddUtils.h:85: warning: 'class gddDestructor' has virtual functions but non-virtual destructor
>> ../../../../base/include/gddUtils.h: In member function 'char* gddDestructor::newdel_next()':
>> ../../../../base/include/gddUtils.h:96: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddUtils.h: In member function 'void gddDestructor::newdel_setNext(char*)':
>> ../../../../base/include/gddUtils.h:96: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddUtils.h: In member function 'char* gddBounds1D::newdel_next()':
>> ../../../../base/include/gddUtils.h:117: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddUtils.h: In member function 'void gddBounds1D::newdel_setNext(char*)':
>> ../../../../base/include/gddUtils.h:117: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddUtils.h: In member function 'char* gddBounds2D::newdel_next()':
>> ../../../../base/include/gddUtils.h:129: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddUtils.h: In member function 'void gddBounds2D::newdel_setNext(char*)':
>> ../../../../base/include/gddUtils.h:129: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddUtils.h: In member function 'char* gddBounds3D::newdel_next()':
>> ../../../../base/include/gddUtils.h:141: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddUtils.h: In member function 'void gddBounds3D::newdel_setNext(char*)':
>> ../../../../base/include/gddUtils.h:141: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gdd.h: In member function 'char* gdd::newdel_next()':
>> ../../../../base/include/gdd.h:468: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gdd.h: In member function 'void gdd::newdel_setNext(char*)':
>> ../../../../base/include/gdd.h:468: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddI.h: In member function 'void gdd::setStat(aitUint16)':
>> ../../../../base/include/gddI.h:106: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddI.h: In member function 'void gdd::setSevr(aitUint16)':
>> ../../../../base/include/gddI.h:108: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddI.h: In member function 'aitUint16 gdd::getStat() const':
>> ../../../../base/include/gddI.h:110: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/gddI.h: In member function 'aitUint16 gdd::getSevr() const':
>> ../../../../base/include/gddI.h:112: warning: dereferencing type-punned pointer will break strict-aliasing rules
>> ../../../../base/include/fdManager.h: At global scope:
>> ../../../../base/include/fdManager.h:39: warning: 'class fdRegId' has virtual functions but non-virtual destructor
>> ../../../../base/include/gddAppTable.h:65: warning: 'class gddApplicationTypeDestructor' has virtual functions but non-virtual destructor
>> ../gateVc.cc: In member function 'virtual caStatus gateVcData::read(const casCtx&, gdd&)':
>> ../gateVc.cc:1013: error: 'AlignedWireRef' was not declared in this scope
>> ../gateVc.cc:1013: error: expected primary-expression before '>' token
>> make[1]: *** [gateVc.o] Error 1
>> make[1]: Leaving directory `/usr/local/epics/extensions/src/gateway2_0_2_0/O.linux-x86'
>> make: *** [install.linux-x86] Error 2  
>> 
>> If I comment out that line "ca_uint16_t caProtoMask = AlignedWireRef < epicsUInt16 >(pMonInfo->m_mask);" , it can pass, why? 
>> On fedora core, gateway could be compiled. Can anyone give me some help? thanks a lot in advance
>> 
>> Best regards
>> Geyang  2008-12-03
>> 
>> 
>> 
>
>-- 
>Dr. Dirk Zimoch
>Paul Scherrer Institut, WBGB/006
>5232 Villigen PSI, Switzerland
>Phone +41 56 310 5182

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

Best regards				 
Geyang 2008-12-04




References:
compile error about gateway Silver
Re: compile error about gateway Dirk Zimoch

Navigate by Date:
Prev: Re: Records not in Base Maren Purves
Next: Re: Records not in Base Nicholas P. DiMonte
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: compile error about gateway Dirk Zimoch
Next: How to implement simple control algorithm Ilya V. Kitaev
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·