EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: osiWireFormat.h problems
From: Ralph Lange <[email protected]>
To: Jeff Hill <[email protected]>
Cc: EPICS Core Talk <[email protected]>
Date: Tue, 05 Dec 2006 02:37:41 +0100
Jeff Hill wrote:
Ralph,

Could you send a copy of all the messages the HP-UX compiler emits before it
fails (when compiling this particular source file). I have some experience
with this sort of thing and might be able to create a workaround. Also,
please send a version number and release date for this compiler. It's
probably getting a bit dated but perhaps we can still support it.

The compiler is
aCC: HP ANSI C++ B3910B A.03.52

Here we go .... I really hope you see more than I do ....

Thanks, Ralph



aCC -c -DHP_UX -AA -Aa -mt +O3 +w +DAportable +z -I. -I.. -I../../../include/os/hpux -I../../../include ../tcpiiu.cpp 2>&1 | ../../../configure/tools/filterWarnings.pl Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 116 # Type 'int' is larger than type 'unsigned short', truncation in value may result.
       return ( src << 8u ) | ( src >> 8u );
^^^^^^^^^^^^^^^^^^^^^^^^^ Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 124 # Type 'int' is larger than type 'unsigned short', truncation in value may result.
       tmp0 = ( tmp0 << 8u ) | ( tmp0 >> 8u );
^^^^^^^^^^^^^^^^^^^^^^^^^^^ Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 125 # Type 'int' is larger than type 'unsigned short', truncation in value may result.
       tmp1 = ( tmp1 << 8u ) | ( tmp1 >> 8u );
^^^^^^^^^^^^^^^^^^^^^^^^^^^ Warning (suggestion) 819: "../../../include/osiWireFormat.h", line 122 # Initialization of type 'unsigned short' with 'unsigned int' may result in
   truncation of value.
       epicsUInt16 tmp0 = src >> 16u;
                          ^^^^^^^^^^
Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 122 # Type 'unsigned int' is larger than type 'unsigned short', truncation in value may
   result.
       epicsUInt16 tmp0 = src >> 16u;
                          ^^^^^^^^^^
Warning (suggestion) 819: "../../../include/osiWireFormat.h", line 123 #
   Initialization of type 'unsigned short' with 'const unsigned int &' may
   result in truncation of value.
       epicsUInt16 tmp1 = src;
                          ^^^
Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 123 # Type
   'const unsigned int' is larger than type 'unsigned short', truncation in
   value may result.
       epicsUInt16 tmp1 = src;
                          ^^^
Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 170 # Type 'int' is larger than type 'unsigned short', truncation in value may result.
           ( static_cast < epicsUInt16 > ( pWireSrc[0] ) << 8u ) |
                                           ^^^^^^^^^^^^^^^^^^^^^^^
Error (future) 229: "../comQueSend.h", line 123 # "Ambiguous overloaded function
   call; a function match was not found that was strictly best for ALL
arguments. Two functions that matched best for some arguments (but not all) were "unsigned int comBuf::push(const char *,unsigned int)" ["../comBuf.h",
   line 196] and "unsigned int comBuf::push(const char *,unsigned int)"
["../comBuf.h", line 196]." Choosing "unsigned int comBuf::push(const char
   *,unsigned int)" ["../comBuf.h", line 196] for resolving ambiguity.
               nCopied = pLastBuf->push ( pVal, nElem );
^^^^ Error (future) 229: "../comQueSend.h", line 130 # "Ambiguous overloaded function
   call; a function match was not found that was strictly best for ALL
arguments. Two functions that matched best for some arguments (but not all) were "unsigned int comBuf::push(const char *,unsigned int)" ["../comBuf.h",
   line 196] and "unsigned int comBuf::push(const char *,unsigned int)"
["../comBuf.h", line 196]." Choosing "unsigned int comBuf::push(const char
   *,unsigned int)" ["../comBuf.h", line 196] for resolving ambiguity.
               nCopied += pComBuf->push
                                   ^^^^
Warning (suggestion) 818: "../tcpiiu.cpp", line 1381 # Type 'int' is larger than
   type 'unsigned short', truncation in value may result.
           command, 0u,
^^^^^^^ Warning: 2 future errors were detected and ignored. Add a '+p' option to
   detect and fix them before they become fatal errors in a future release.
   Behavior of this ill-formed program is not guaranteed to match that of a
   well-formed program
Signal 11



Replies:
RE: osiWireFormat.h problems Jeff Hill
RE: osiWireFormat.h problems Jeff Hill
References:
RE: osiWireFormat.h problems Jeff Hill

Navigate by Date:
Prev: RE: osiWireFormat.h problems Jeff Hill
Next: Asyn 4-6 compile issue Ernest L. Williams Jr.
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: osiWireFormat.h problems Jeff Hill
Next: RE: osiWireFormat.h problems Jeff Hill
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·