PDA

View Full Version : Compiler Error after Upgrading Sun Studio 12 to Solaris Studio 12.3



djryan
11-15-2013, 07:14 PM
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
1 Error(s) and 1 Warning(s) detected.
gmake: *** [.shobj/julian.o] Error 2
tip1[~/ttproot/ttp/TTPLib]$