1 Reply Latest reply: Nov 17, 2013 12:57 PM by Dave-Raytheon Company RSS

    Compiler Error after Upgrading Sun Studio 12 to Solaris Studio 12.3

    Dave-Raytheon Company

      This code compiled with Solaris Studio CC: Sun C++ 5.9 SunOS_sparc Patch 124863-02 2007/12/18

      but fails to compile under CC: Sun C++ 5.12 SunOS_sparc Patch 148506-14 2013/09/24

       

      CC -features=zla -mt -g -library=Cstd  -DACE_HAS_KSTAT -DACE_HAS_CUSTOM_EXPORT_MACROS=0 -D_POSIX_PTHREAD_SEMANTICS   -I/export/home/ttp/ACE_wrappers -DACE_HAS_SCTP -DACE_HAS_LKSCTP -D__ACE_INLINE__ -I../jpeg-6b -I../tiff-v3.5.7/libtiff/ -I../tags/ -I/RogueWave/SourcePro/12.5 -D_XPG4_2 -D__EXTENSIONS__ -D_RWCONFIG_15d -DRW_MULTI_THREAD -D_REENTRANT -DTTPVERSIONKEY=\"7.00-alpha-2013/11/15\" -DRW_USER_TRACE_LEVEL=5  -c -KPIC -o .shobj/julian.o julian.cc

       

      Error Message: "/opt/solarisstudio12.3/prod/include/CC/Cstd/rw/traits", line 538: Error: The function "wcsstr" must have a prototype

       

      If I add the -H to trace the headers this is what I get below. I have been fighting with this for a week now and really don't know what to do at this point. We use the RogueWave libraries with the Solaris Studio Compiler for more additional libraries but RogueWave says our version is compatible with Solaris Studio 12.3 and in fact we successfully compiled the RogueWave libraries with this compiler. I"m sure it something in our code but I can't quite figure it out.

       

      =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.11.15 17:45:03 =~=~=~=~=~=~=~=~=~=~=~=
      gmake -f GNUmakefile.TTPLib

      GNUmakefile: /export/home/ttp/ttproot/ttp/TTPLib/GNUmakefile.TTPLib MAKEFLAGS=

      CC -features=zla -H -mt -g -library=Cstd  -DACE_HAS_KSTAT -DACE_HAS_CUSTOM_EXPORT_MACROS=0 -D_POSIX_PTHREAD_SEMANTICS   -I/export/home/ttp/ACE_wrappers -DACE_HAS_SCTP -DACE_HAS_LKSCTP -D__ACE_INLINE__ -I../jpeg-6b -I../tiff-v3.5.7/libtiff/ -I../tags/ -I/RogueWave/SourcePro/12.5 -D_XPG4_2 -D__EXTENSIONS__ -D_RWCONFIG_15d -DRW_MULTI_THREAD -D_REENTRANT -DTTPVERSIONKEY=\"7.00-alpha-2013/11/15\" -DRW_USER_TRACE_LEVEL=5  -c -KPIC -o .shobj/julian.o julian.cc
      julian.h
              /usr/include/time.h
                      /usr/include/sys/feature_tests.h
                              /usr/include/sys/ccompile.h
                              /usr/include/sys/isa_defs.h
                      /usr/include/iso/time_iso.h
                      /usr/include/sys/types.h
                              /usr/include/sys/machtypes.h
                              /usr/include/sys/int_types.h
                              /usr/include/sys/select.h
                                      /usr/include/sys/time_impl.h
                                      /usr/include/sys/time.h
                                              /usr/include/sys/types.h
                                              /usr/include/sys/select.h
              defines.h
                      /opt/solarisstudio12.3/prod/include/CC/Cstd/deque
                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/stddefs.h
                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/stdcomp.h
                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/compnent.h
                                      /usr/include/stddef.h
                                              /usr/include/iso/stddef_iso.h
                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/rwdispatch.h
                              /opt/solarisstudio12.3/prod/include/CC/Cstd/algorithm
                                      /usr/include/stdlib.h
                                              /usr/include/iso/stdlib_iso.h
                                              /usr/include/iso/stdlib_c99.h
                                              /usr/include/sys/wait.h
                                                      /usr/include/sys/resource.h
                                                      /usr/include/sys/siginfo.h
                                                              /usr/include/sys/machsig.h
                                                      /usr/include/sys/procset.h
                                                              /usr/include/sys/signal.h
                                                                      /usr/include/sys/iso/signal_iso.h
                                                                              /usr/include/sys/unistd.h
                                                                      /usr/include/sys/ucontext.h
                                                                              /usr/include/sys/regset.h
                                                                                      /usr/include/v7/sys/privregs.h
                                                                                              /usr/include/v7/sys/psr.h
                                                                                              /usr/include/sys/fsr.h
                                                                              /usr/include/sys/signal.h
                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/iterator
                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/iterator
                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/ostream
                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/ios
                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/rwstderr.h
                                                                      /usr/include/stdarg.h
                                                                              /usr/include/iso/stdarg_iso.h
                                                                                      /usr/include/sys/va_impl.h
                                                                                              /usr/include/sys/va_list.h
                                                                              /usr/include/iso/stdarg_c99.h
                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/rwstderr_macros.h
                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/rwlocale
                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/string
                                                                              /usr/include/string.h
                                                                                      /usr/include/iso/string_iso.h
                                                                              /usr/include/ctype.h
                                                                                      /usr/include/iso/ctype_iso.h
                                                                                      /usr/include/iso/ctype_c99.h
                                                                              /usr/include/wchar.h
                                                                                      /usr/include/iso/wchar_iso.h
                                                                                              /usr/include/stdio_tag.h
                                                                                              /usr/include/wchar_impl.h
                                                                                              /usr/include/stdio.h
                                                                                                      /usr/include/iso/stdio_iso.h
                                                                                                              /usr/include/stdio_impl.h
                                                                                                      /usr/include/iso/stdio_c99.h
                                                                                      /usr/include/iso/wchar_c99.h
                                                                              /usr/include/wctype.h
                                                                                      /usr/include/iso/wctype_iso.h
                                                                                      /usr/include/iso/wctype_c99.h
                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/string_ref
                                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/memory
                                                                                              /usr/include/limits.h
                                                                                                      /usr/include/iso/limits_iso.h
                                                                                                      /usr/include/sys/int_limits.h
                                                                                              /opt/solarisstudio12.3/prod/include/CC/new
                                                                                                      /opt/solarisstudio12.3/prod/include/CC/exception
                                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/utility
                                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/stdmutex.h
                                                                                                      /usr/include/pthread.h
                                                                                                              /usr/include/sched.h
                                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/traits
                                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/iotraits
                                                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/iosfwd
                                                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/traits
      "/opt/solarisstudio12.3/prod/include/CC/Cstd/rw/traits", line 538: Error: The function "wcsstr" must have a prototype.
                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/stdexcept
                                                                      /opt/solarisstudio12.3/prod/include/CC/typeinfo
                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/locimpl
                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/locvector
                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/vendor
                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/ctype
                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/numeral
                                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/iosbase
                                                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/limits
                                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/math.h
                                                                                                      /usr/include/math.h
                                                                                                              /usr/include/iso/math_iso.h
                                                                                                              /usr/include/iso/math_c99.h
                                                                                                              /usr/include/floatingpoint.h
                                                                                                                      /usr/include/sys/ieeefp.h
                                                                                              /usr/include/float.h
                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/codecvt
                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/usefacet
                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/streambuf
                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/istream
                      /opt/solarisstudio12.3/prod/include/CC/Cstd/set
                              /opt/solarisstudio12.3/prod/include/CC/Cstd/functional
                              /opt/solarisstudio12.3/prod/include/CC/Cstd/rw/tree
                      /usr/include/sys/param.h
              messages.h
                      /usr/include/assert.h
                      /opt/solarisstudio12.3/prod/include/CC/Cstd/list
                      /RogueWave/SourcePro/12.5/rw/trace/trace.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceSetState.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceEventSeverity.h
                                      /RogueWave/SourcePro/12.5/rw/trace/pkgdefs.h
                                              /RogueWave/SourcePro/12.5/rw/config/rwconfig_trace.h
                                                      /RogueWave/SourcePro/12.5/rw/config/rwconfig.h
                                                      /RogueWave/SourcePro/12.5/rw/config/rwc_trace_15d.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwconfig_tls.h
                                                                      /RogueWave/SourcePro/12.5/rw/config/rwc_tls_15d.h
                                              /RogueWave/SourcePro/12.5/rw/defs.h
                                                      /usr/include/assert.h
                                                      /RogueWave/SourcePro/12.5/rw/compiler.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwconfig_tls.h
                                                                      /RogueWave/SourcePro/12.5/rw/config/rwc_tls_15d.h
                                                      /RogueWave/SourcePro/12.5/rw/typedefs.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwconfig_tls.h
                                                                      /RogueWave/SourcePro/12.5/rw/config/rwc_tls_15d.h
                                                      /RogueWave/SourcePro/12.5/rw/limits.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwconfig_tls.h
                                                                      /RogueWave/SourcePro/12.5/rw/config/rwc_tls_15d.h
                                                      /RogueWave/SourcePro/12.5/rw/rwwind.h
                                                      /RogueWave/SourcePro/12.5/rw/compat.h
                                                              /RogueWave/SourcePro/12.5/rw/defs.h
                                                      /RogueWave/SourcePro/12.5/rw/utility.h
                                                              /RogueWave/SourcePro/12.5/rw/defs.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceEvent.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceEventClient.h
                                      /RogueWave/SourcePro/12.5/rw/trace/except.h
                                              /RogueWave/SourcePro/12.5/rw/rwerr.h
                                      /RogueWave/SourcePro/12.5/rw/trace/fwd.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceEventClientImp.h
                                      /RogueWave/SourcePro/12.5/rw/trace/RWTraceEventFilter.h
                                      /RogueWave/SourcePro/12.5/rw/ref.h
                                              /RogueWave/SourcePro/12.5/rw/tools/atomic.h
                                                      /RogueWave/SourcePro/12.5/rw/tools/atomics/atomic_sunpro.h
                                                              /RogueWave/SourcePro/12.5/rw/tools/atomicorder.h
                                                              /usr/include/sys/atomic.h
                                                                      /usr/include/sys/inttypes.h
                                                                              /usr/include/sys/int_const.h
                                                                              /usr/include/sys/int_fmtio.h
                                                              /usr/include/stdint.h
                                                                      /usr/include/sys/stdint.h
                                      /RogueWave/SourcePro/12.5/rw/mutex.h
                                              /usr/include/synch.h
                                                      /usr/include/sys/machlock.h
                                                      /usr/include/sys/synch.h
                                              /usr/include/thread.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceOstreamClient.h
                                      /RogueWave/SourcePro/12.5/rw/rstream.h
                                              /RogueWave/SourcePro/12.5/rw/tools/ristream.h
                                              /RogueWave/SourcePro/12.5/rw/tools/rostream.h
                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/iostream
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceOstreamClientImp.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceEventFilterImp.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceSingleClientFilter.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceSingleClientFilterImp.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceLevelFilter.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceLevelFilterImp.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceMultiClientFilter.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceMultiClientFilterImp.h
                                      /RogueWave/SourcePro/12.5/rw/tvordvec.h
                                              /RogueWave/SourcePro/12.5/rw/epersist.h
                                                      /RogueWave/SourcePro/12.5/rw/vstream.h
                                                      /RogueWave/SourcePro/12.5/rw/rwfile.h
                                                      /RogueWave/SourcePro/12.5/rw/toolerr.h
                                                              /RogueWave/SourcePro/12.5/rw/message.h
                                                      /RogueWave/SourcePro/12.5/rw/rwstore.h
                                                              /RogueWave/SourcePro/12.5/rw/rwassert.h
                                                              /RogueWave/SourcePro/12.5/rw/rwset.h
                                                                      /RogueWave/SourcePro/12.5/rw/hashtab.h
                                                                              /opt/solarisstudio12.3/prod/include/CC/Cstd/vector
                                                                              /RogueWave/SourcePro/12.5/rw/colclass.h
                                                                                      /RogueWave/SourcePro/12.5/rw/collect.h
                                                                                              /RogueWave/SourcePro/12.5/rw/stringid.h
                                                                                                      /RogueWave/SourcePro/12.5/rw/edefs.h
                                                                                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTIdentity.h
                                                                                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTIsSame.h
                                                                                                                      /RogueWave/SourcePro/12.5/rw/tools/traits/RWFalseType.h
                                                                                                                      /RogueWave/SourcePro/12.5/rw/tools/traits/RWTrueType.h
                                                                                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTRemoveReference.h
                                                                                                                      /RogueWave/SourcePro/12.5/rw/tools/traits/RWTIsLvalueReference.h
                                                                                                                      /RogueWave/SourcePro/12.5/rw/tools/traits/RWTIsRvalueReference.h
                                                                                                      /RogueWave/SourcePro/12.5/rw/cstring.h
                                                                                                              /RogueWave/SourcePro/12.5/rw/tools/stdcstring.h
                                                                                                                      /RogueWave/SourcePro/12.5/rw/tools/hash.h
                                                                                                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTConditional.h
                                                                                                                      /RogueWave/SourcePro/12.5/rw/tools/cstrutil.h
                                                                                              /RogueWave/SourcePro/12.5/rw/mempool.h
                                                                                      /RogueWave/SourcePro/12.5/rw/iterator.h
                                              /RogueWave/SourcePro/12.5/rw/epfunc.h
                                              /RogueWave/SourcePro/12.5/rw/tools/algorithm.h
                                                      /RogueWave/SourcePro/12.5/rw/tools/iterator.h
                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTEnableIf.h
                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTIsIntegral.h
                                                      /RogueWave/SourcePro/12.5/rw/tools/traits/RWTRemoveCV.h
                                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTRemoveConst.h
                                                                      /RogueWave/SourcePro/12.5/rw/tools/traits/RWTIsConst.h
                                                              /RogueWave/SourcePro/12.5/rw/tools/traits/RWTRemoveVolatile.h
                                                                      /RogueWave/SourcePro/12.5/rw/tools/traits/RWTIsVolatile.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceManager.h
                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceManagerImp.h
                                      /RogueWave/SourcePro/12.5/rw/once.h
                                      /RogueWave/SourcePro/12.5/rw/tvslist.h
                                              /RogueWave/SourcePro/12.5/rw/stdex/slist.h
                              /RogueWave/SourcePro/12.5/rw/trace/userdefs.h
                                      /RogueWave/SourcePro/12.5/rw/trace/tracemacros.h
                                              /RogueWave/SourcePro/12.5/rw/tools/cstrstrm.h
                                                      /opt/solarisstudio12.3/prod/include/CC/Cstd/sstream
                                              /RogueWave/SourcePro/12.5/rw/trace/RWTraceEntryExit.h
                      /RogueWave/SourcePro/12.5/rw/sync/RWMutexLock.h
                              /RogueWave/SourcePro/12.5/rw/sync/pkgdefs.h
                                      /RogueWave/SourcePro/12.5/rw/config/rwconfig_sync.h
                                              /RogueWave/SourcePro/12.5/rw/config/rwc_sync_15d.h
                                                      /RogueWave/SourcePro/12.5/rw/config/rwconfig_tls.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwc_tls_15d.h
                                                      /RogueWave/SourcePro/12.5/rw/config/rwconfig_trace.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwc_trace_15d.h
                                                      /RogueWave/SourcePro/12.5/rw/config/rwconfig_threxcept.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwc_threxcept_15d.h
                                                                      /RogueWave/SourcePro/12.5/rw/config/rwconfig_tls.h
                                                                              /RogueWave/SourcePro/12.5/rw/config/rwc_tls_15d.h
                                                                      /RogueWave/SourcePro/12.5/rw/config/rwconfig_trace.h
                                                                              /RogueWave/SourcePro/12.5/rw/config/rwc_trace_15d.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWSynchObject.h
                                      /RogueWave/SourcePro/12.5/rw/sync/RWCancellationState.h
                                      /RogueWave/SourcePro/12.5/rw/threxcept/threxcept.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRBoundsError.h
                                                      /RogueWave/SourcePro/12.5/rw/threxcept/pkgdefs.h
                                                              /RogueWave/SourcePro/12.5/rw/config/rwconfig_threxcept.h
                                                                      /RogueWave/SourcePro/12.5/rw/config/rwc_threxcept_15d.h
                                                      /RogueWave/SourcePro/12.5/rw/threxcept/thrmsg.h
                                                      /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRIllegalUsage.h
                                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRxmsg.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRExternalError.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRIllegalAccess.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRInternalError.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRInvalidPointer.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHROperationAborted.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHROperationCanceled.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHROperationNotAvailable.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHROperationNotImplemented.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHROperationNotSupported.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHROperationTerminated.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRPermissionError.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRResourceLimit.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRThreadActive.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTHRThreadNotActive.h
                                              /RogueWave/SourcePro/12.5/rw/threxcept/RWTTHRCompatibleException.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTLockGuard.h
                                      /RogueWave/SourcePro/12.5/rw/sync/RWTLockGuardBase.h
                                              /RogueWave/SourcePro/12.5/rw/sync/RWTGuardBase.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTReadLockGuard.h
                                      /RogueWave/SourcePro/12.5/rw/sync/RWTReadLockGuardBase.h
                                              /RogueWave/SourcePro/12.5/rw/sync/RWTReadGuardBase.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTWriteLockGuard.h
                                      /RogueWave/SourcePro/12.5/rw/sync/RWTWriteLockGuardBase.h
                                              /RogueWave/SourcePro/12.5/rw/sync/RWTWriteGuardBase.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTTryLockGuard.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTTryReadLockGuard.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTTryWriteLockGuard.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTUnlockGuard.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTReadUnlockGuard.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWTWriteUnlockGuard.h
                              /RogueWave/SourcePro/12.5/rw/sync/RWThreadId.h
                      messageutilities.h
      "messages.h", line 248: Warning: Implicit int is not supported in C++.
      1 Error(s) and 1 Warning(s) detected.
      gmake: *** [.shobj/julian.o] Error 2
      tip1[~/ttproot/ttp/TTPLib]$