<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I did some digging and it looks like this is not a compiler bug.
This version of the compiler just adheres more strictly to the
namespace lookup rules in the C++ standard.<br>
<a class="moz-txt-link-freetext" href="http://en.cppreference.com/w/cpp/language/dependent_name#Lookup_rules">http://en.cppreference.com/w/cpp/language/dependent_name#Lookup_rules</a><br>
<br>
There was already a #define to handle this properly for another
compiler so I was able to fix the issue by adding the following like
to my config.h<br>
#define ACE_ANY_OPS_USE_NAMESPACE<br>
<br>
For a proper fix, you probably want something like this in one of
the config-sunos*.h files:<br>
<br>
#if defined (__SUNPRO_CC) && (__SUNPRO_CC >= 0x5130)<br>
#define ACE_ANY_OPS_USE_NAMESPACE<br>
#endif<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 4/12/2016 1:41 AM, Johnny Willemsen
wrote:<br>
</div>
<blockquote cite="mid:570C98AA.3080109@remedy.nl" type="cite">
<pre wrap="">Hi,
Thanks for using the PRF form. TAO isn't tested/maintained with this
recent Solaris Studio compiler. I have seen this error in some user
reports and with some experiments I did locally some time ago.
As far as I could determine this is a bug in the compiler, please
contact the Oracle Sun Studio compiler group to let them have a look at
the code and the error you got.
Best regards,
Johnny Willemsen
Remedy IT
Postbus 81 | 6930 AB Westervoort | The Netherlands
<a class="moz-txt-link-freetext" href="http://www.remedy.nl">http://www.remedy.nl</a>
On 04/11/2016 09:50 PM, Bob Johnson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">TAO VERSION: 2.3.3
ACE VERSION: 6.3.3
HOST MACHINE and OPERATING SYSTEM:
SunOS 5.11 11.3 sun4v sparc
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
same as HOST
COMPILER NAME AND VERSION (AND PATCHLEVEL):
Oracle Solaris Studio 12.4
CC: Sun C++ 5.13 SunOS_sparc 151845-12 2016/01/26
THE $ACE_ROOT/ace/config.h FILE
#include <ace/config-sunos5.11.h>
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE
ssl=1
exceptions=1
buildbits=64
debug=0
optimize=1
stlport=1
INSTALL_PREFIX = $(HOME)/3rdparty
include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU
CCFLAGS += -features=zla
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
ssl=1
ace_qtreactor = 0
ace_xtreactor = 0
ace_tkreactor = 0
ace_flreactor = 0
ace_foxreactor = 0
tao_qtresource = 0
tao_xtresource = 0
tao_tkresource = 0
tao_flresource = 0
tao_foxresource = 0
gl = 0
x11 = 0
debug=0
optimize=1
AREA/CLASS/EXAMPLE AFFECTED:
TAO/tao/PortableServer/GNUmakefile.PortableServer
Servant_Base.cpp
DOES THE PROBLEM AFFECT:
COMPILATION?
yes
LINKING?
no
EXECUTION?
N/A
OTHER (please specify)?
N/A
SYNOPSIS:
$TAO_ROOT/tao/PortableServer/Servant_Base.cpp fails to compile.
DESCRIPTION:
Make fails with the following output:
CC -mt -m64 -xO4 -features=zla -library=stlport4 -DACE_HAS_KSTAT
-DACE_HAS_CUSTOM_EXPORT_MACROS=0 -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG
-I/scratch/build_2300/internal/3rdparty/ACE_wrappers -DACE_NDEBUG
-DACE_HAS_SCTP -DACE_HAS_LKSCTP -D__ACE_INLINE__ -DACE_HAS_STLPORT
-I../../.. -I../.. -DTAO_HAS_VALUETYPE_OUT_INDIRECTION
-DTAO_PORTABLESERVER_BUILD_DLL -c -KPIC -o .shobj/Servant_Base.o
Servant_Base.cpp
"../../tao/Any_Insert_Policy_T.h", line 42: Error: The operation
"CORBA::Any<<= CORBA::Object*const" is illegal.
"../../tao/PortableServer/Object_SArgument_T.cpp", line 118: Where:
While instantiating "static
TAO::Any_Insert_Policy_Stream<CORBA::Object*>::any_insert(CORBA::Any*,
CORBA::Object*const&)".
"../../tao/PortableServer/Object_SArgument_T.cpp", line 118: Where:
Instantiated from TAO::Ret_Object_SArgument_T<CORBA::Object*,
TAO_Pseudo_Var_T<CORBA::Object>,
Any_Insert_Policy_Stream>::interceptor_value(CORBA::Any*) const.
Where: Instantiated from non-template code.
1 Error(s) detected.
make[1]: *** [.shobj/Servant_Base.o] Error 2
REPEAT BY:
cd $TAO_ROOT/tao ; make
SAMPLE FIX/WORKAROUND:
N/A
_______________________________________________
tao-bugs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:tao-bugs@list.isis.vanderbilt.edu">tao-bugs@list.isis.vanderbilt.edu</a>
<a class="moz-txt-link-freetext" href="http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/tao-bugs">http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/tao-bugs</a>
</pre>
</blockquote>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<a href="http://www.oracle.com" target="_blank"><!--img src="file://C:/ProgramData/Oracle/BaseImage/obs/oracle_sig_logo.gif" alt="Oracle" width="114" height="26" border="0"--></a>
<font color="#666666" size="2" face="Verdana, Arial, Helvetica,
sans-serif">Bob Johnson | Principal Applications Engineer<br>
Phone: <a href="tel:+16125875083" moz-do-not-send="true">+16125875083</a>
| Fax: <a href="fax:+16125875083" moz-do-not-send="true">+16125875083</a>
<br>
<font color="#ff0000">Oracle</font> NMS Development<br>
900 Second Avenue South Suite 900 | Minneapolis, MN 55402</font>
<br>
<a href="http://www.oracle.com/commitment" target="_blank"><!--img src="file://C:/ProgramData/Oracle/BaseImage/obs/green-for-email-sig_0.gif" alt="Green Oracle" width="44" height="28" align="abscenter" border="0"--></a>
<font color="#4B7D42" size="1" face="Verdana, Arial, Helvetica,
sans-serif">Oracle is committed to developing practices and
products that help protect the environment</font>
<!-- This signature was generated by the MyDesktop Oracle Business Signature utility version 4.0 -->
</div>
</body>
</html>