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
- Replies:
- Re: Re: compile error about gateway Silver
- References:
- compile error about gateway Silver
- Navigate by Date:
- Prev:
Alarms vs. Interlocks Re: How to implement simple control algorithm Kasemir, Kay
- Next:
Re: A bug of calc record? Dirk Zimoch
- Index:
1994
1995
1996
1997
1998
1999
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:
compile error about gateway Silver
- Next:
Re: Re: compile error about gateway Silver
- Index:
1994
1995
1996
1997
1998
1999
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
|