Compilation error, no /opt/SUNWspro/bin/cc on Solaris 10 64bit(x86)
I was trying to compile Apache mod_jk on Solaris 10 64bit platform(x86) and I got the following error. I checked my system and I do not have /opt/SUNWspro/bin/cc. Any suggestions how to solve it?
root@unknown >./configure --with-apxs=/usr/apache2/bin/apxs
building connector for "apache-2.0"
checking for gcc... /opt/SUNWspro/bin/cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Edited by: loveclaire on Aug 5, 2009 8:26 PM
SUNWspro is sun studio. Its a free download from the sun site. So you could just install that.
Alternatively, Solaris ships with gcc already installed. But apxs is trying to be clever and compile mod_jk with the same compiler that was used to compile the rest of apache.
It would probably work with gcc, but I'm not sure how you would persuade apxs to use gcc instead.
Similar Messages
-
Compiler Error after Upgrading Sun Studio 12 to Solaris Studio 12.3
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]$I resolved this issue. The 2 defines: -D_XPG4_2 -D__EXTENSIONS__ are no longer needed and actually shouldn't be used.
Dave -
Odd compile errors from /opt/sunstudioceres/prod/include/CC/Cstd/memory
I'm trying to compile an MPI program using Sun Studio Ceres and I'm getting the errors below. The code compiles fine using g++ and openMPI. The non-MPI version of the code compiles fine with the Sun tools.
"/opt/sunstudioceres/prod/include/CC/Cstd/memory", line 798: Error: "," expected instead of "(".
"/opt/sunstudioceres/prod/include/CC/Cstd/memory", line 798: Error: Type name expected instead of "(".
"/opt/sunstudioceres/prod/include/CC/Cstd/rw/locimpl", line 291: Error: Identifier expected instead of "(".
Thanks in advance,
EdwardThe header files for the default libCstd have in several places used identifiers like "X" or "T" or "size" that are reserved for programmer (your) use. Technically, the sequence
#define X something
#include <standard_header>
is valid C++, but could break using the libCstd implementation.
This problem was captured in two bug reports:
6785883 Template parameter names in libCstd clash with user macros
6797621 More template parameter names in libCstd clash with user macros
These bugs should be fixed in the next patch released for Sun Studio 12, and are fixed in the Sun Studio Express release coming out in March. -
Error when starting firefox 3.6 on Solaris 10 x86
Sometimes, when we start firefox 3.6 on an Ultra 40 with an Opteron processor, we get the following error:
esd: Unknown device `SUNW,audio810', but will try anyway.
Firefox works fine, but what does this error indicate, and how can I make it go away?
Thanks!
Mike VanHorn
[email protected]Hi Mike,
It's looks like the bug 6510766 -> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6510766
Try the work around explained in the page above, it worked for us on a Sol10 u4
Marco -
Compilation error after installing Sun patches
hello,
One of our customer installed teh following Sun patches:
119254-73
124867-14
124863-23
124870-03
124872-07
126495-04
126995-04
127000-13
127001-04
127143-03
118683-05
119963-20
120753-08Now when they compile the application they get the following error:
cd /usr/opt/temip/mmtoolkit/examples/
make -f temip_ef_user_library.make
/opt/SUNWspro/bin/CC -c -m64 -xcode=pic32 -g -xO0 -D_POSIX_PTHREAD_SEMANTICS -mt -pto -I/usr/opt/temip/tfc/include -I//usr/opt/temip/mmtoolkit/include -I//usr/opt/temip/acloc/include -I//usr/opt/temip/ocs/include -D_RWCONFIG_m -o temip_ef_user_library.o temip_ef_user_library.cxx
**"/opt/SUNWspro/prod/include/CC/Cstd/rw/traits", line 535: Error: The function "wcsstr" must have a prototype.*
*1 Error(s) detected.
*** Error code 1
The following command caused the error:
`echo "/opt/SUNWspro/bin/CC -c -m64 -xcode=pic32 -g -xO0 -D_POSIX_PTHREAD_SEMANTICS -mt -pto -I/usr/opt/temip/tfc/include -I//usr/opt/temip/mmtoolkit/include -I//usr/opt/temip/acloc/include -I//usr/opt/temip/ocs/include -D_RWCONFIG_m " | sed 's/[ ][ ]*/ /g'` -o temip_ef_user_library.o temip_ef_user_library.cxx
make: Fatal error: Command failed for target `temip_ef_user_library.o'
does anyone has an idea ?
thank you for your help.
regards,
ChristineNotes for future posting:
1. When you have a question about patches, please also provide the one-line patch description. Otherwise, anyone who might be inclined to help first has to look them up. Making volunteers do extra work to help you for free is not the best strategy. 119254-73 Install and Patch Utilities Patch (unlikely to affect compiling programs)
124867-14 Patch for C 5.9 compiler (unlikely to affect C++ compiling)
124863-23 Patch for Sun C++ 5.9 Compiler (Aha!) <-----------
124870-03 Patch for Sun Performance Library (unlikely to affect compiling programs)
124872-07 Patch for dbx 7.6 Debugger (unlikely to affect compiling programs)
126495-04 Patch for debuginfo handling (unlikely to affect compiling programs)
126995-04 Patch for Performance Analyzer Tools (unlikely to affect compiling programs)
127000-13 Patch for Fortran 95 8.3 Compiler (unlikely to affect C++ compiling)
127001-04 Patch for Fortran 95 8.3 Dynamic Libraries (unlikely to affect compiling programs)
127143-03 Patch for Fortran 95 8.3 Support Library (unlikely to affect compiling programs)
118683-05 Patch for profiling libraries and assembler (could possibly affect compiling C++) <----------
119963-20 Shared library patch for C++ (unlikely to affect C++ compiling)
120753-08 Microtasking libraries (libmtsk) patch (unlikely to affect compiling programs)If you had gone through this exercise, you could have eliminated many of these patches from consideration. For example, a Fortran runtime library patch or a dbx patch cannot cause the C++ compiler to generate a compile-time error that it did not generate before.
2. Put all source code and error messages in "code" tags, as you did with the list of patches. The non-alphanumeric characters in source code and messages can be interpreted as formatting directives instead of being displayed. The result is often nonsense or is hard to read.
Notes on the command line:
1. The -xO0 option is not supported, and has unpredictable results. If you do not want optimization because you want to debug the code, use either no -xOn option, or use -xO1. Using no option is generally preferred: compilation is faster, and the generated code is usually better than with -xO1.
2. The -pto (-instances=static) option is generally a really bad idea. Unless you have a specific reason why you need this template compilation mode, you should remove the -pto option from all command lines (to use the default -instances=global mode), delete all your binaries, and rebuild the application.
Neither of these problems causes the error message, however.
What could be wrong
Also on the command line is a macro definition that appears to be -D_RWCONFIG_m
Is that the correct rendering of the option? If not, please show the command line again inside "code" tags.
I'm concerned that you are trying to override a configuration macro for libCstd, the C++ runtime library. Doing so is not supported and has unpredictable results. If -D_RWCONFIG_m is what is really on the command line, it will not cause a problem with the library.
Except for the possible macro definition issue, finding the problem will require looking at the source code. Since the error message refers to one of the compiler's own headers, the most likely possibilities are
1. A bug in the headers that might be fixed in a later patch -- 124863-23 is not the most recent patch.
2. An error in your code that worked only by accident before. I'm thinking of an inappropriate macro definition.
If you strip everything out of the temip_ef_user_library.cxx file after all the #include directives, you should be able to compile the resulting file and see the same error message. If so, please post that small file here (inside "code" tags). -
Compilation errors- sbfocus exec failed: No such file...
Please help, as I am geting these errors when I am compiling my test program using make file.
I am using SUN SPARC server with Forte Compiler Collection 7 on new server.
I am moving my HP C++ code on this new server.
I have created my string, util and ipc libraries using ar - ruv command. all the libraries are created OK (means no errors) and named them as libstring.a etc.
CC -g -sb -compat=5 -compat=4 -I. -I/ford/thishost/u/rbhave/mqrouter/include -c test.C
/opt/SUNWspro/bin/CC test.o -L/ford/thishost/u/rbhave/mqrouter/lib -L. -lutils -lipc -lstring
libldstab: file test.o: sbfocus exec failed: No such file or directory: SourceBrowser data will be lost
Undefined first referenced
symbol in file
unsafe_ostream::do_opfx(void) /ford/thishost/u/rbhave/mqrouter/lib/libstring.a(strops.o)
cout test.o
unsafe_ostream::do_opfx(void) /ford/thishost/u/rbhave/mqrouter/lib/libstring.a(strops.o)
ld: fatal: Symbol referencing errors. No output written to a.out
*** Error code 1
make: Fatal error: Command failed for target `/ford/thishost/u/rbhave/mqrouter/error_log/test'
Thanks in advance.
RaviYou usually cannot mix -compat=4 and -compat=5 code in the same program. The C++ Migration Guide(search on docs.sun.com) that comes with the compiler explains the limitations.
When building a C++ static (.a) library, you should use
CC -xar
instead of
ar
so that any required template instances get included in the library.
The warning message about sb probably means that the -sb or -xsb option was not used consistently. Use it when compiling and when linking, or not at all. (You don't have to use it on all compilations, but you'll be missing some symbol data.)
- Rose -
[Q]rfc c library compile error
Hello!
I am establishing the IVR call to the SAP.
The IVR machine is SUNOS 5.6.
IVR should use the library, librfc.a,
but when I compile with this library,
I got the compile error like below.
The error message is
undefined first reference
symbol in file
select_large_fdset ./lib/librfc.a(cpictlib.o)
ld: fatal: Symbol referencing errors. No output written to saprfccl
I compiled with the below option,
/opt/SUNWspro/bin/cc -Xc -xcg92 -I ./include -L ./lib
saprfccl.c -o saprfccl -lrfc -lsocket -lnsl -ldl -lm -lw.
librfc.a is the library referencing the function, select_large_fdset.
but I don't have the program source because it is only provided as .a by the SAP.
It looks that the standard library in this OS version does not have this function, select_large_fdset,
according to my company technical support investigation.
Are there any ways to get the library with this function without server upgrades?
Thanks
Myoung Ju YoumThanks for your help.
librfc.a is provided by SAP.
I put this library in ./lib directory.
and used the -L option to link with it.
Anyway I put this path to LD_LIBRARY_PATH,
but it is same.
The problem is
that librfc.a is referencing the function, select_large_fdset.
This function is normally in the standard c library, libc.so.
But because the SUNOS that I am using is so low, ver.5.6,
libc.so in the standard c library does not have this function, select_large_fdset.
So my question is how can I use this library, librfc.a without the server upgrade to the upper version
that has the standard library that has function,select_large_fdset.
Is it not possible?
Please tell me yes.
Myoung Ju Youm -
Compilation errors with compat=5
I am having a problem compiling an application with the option compat=5. I get the following errors:
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 18: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 19: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 19: Error: Multiple declaration for std::exception::exit().
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 20: Error: "," expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 21: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 21: Error: "," expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 22: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 22: Error: "," expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 19: Error: "std::exception::exit()" is expected to return a value.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 27: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 28: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 28: Error: Multiple declaration for std::bad_exception::exit().
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 29: Error: "," expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 30: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 30: Error: "," expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 31: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 31: Error: "," expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 28: Error: "std::bad_exception::exit()" is expected to return a val
ue.
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 37: Error: "{" expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 37: Error: Too few arguments in call to "std::exit(int)".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 43: Error: "," expected instead of "exit".
"/opt/SUNWspro/WS6U1/include/CC/./exception", line 46: Error: Badly formed expression.
"/opt/SUNWspro/WS6U1/include/CC/./new", line 20: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./new", line 21: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/WS6U1/include/CC/./new", line 21: Error: Multiple declaration for std::std::bad_alloc::exit().
Compilation aborted, too many Error messages.
The flags, etc. are as follows:
/opt/SUNWspro/bin/CC -c -G -KPIC -g -w -I/home/jstrong/dev/include -I/home/jstrong/dev/app/include -I/opt/aCC/include/
iostream -D_SVR4 -D_DEBUG -D_ora -D_SUNOS aealmem.C -o aealmem.o
If I compile using compat=4, I can compile and link, but I get a runtime error opening a shared library. Any help would be greatly appreciated!Converting old code to the C++ standart is not just a matter of
compiler flags. Please have a look at:
"C++ Migration Guide"
http://docs.sun.com/htmlcoll/coll.32.8/iso-8859-1/CPPMIGRATE/MigrTOC.html
and Migration Guides in "Technical Articles":
http://soldc.sun.com/articles/index.html -
Compilation error on Solaris 2.6 using SUn Workshop 4.2(Rogue wave STL)
Hello,
I am facing a problem while using Rogue wave STLs on SOlaris 2.6 using Sun WOrkshop pro 4.2
I am using Hash table implementation in the source. It throws the following error:
---->Error: "," expected instead of "const_iterator".
I found it to be problem in a declaration of pair for the class.
Before modification:
typedef pair<mytmp::iterator,int> interator;
Modified to:
typedef mytmp::iterator myitr
typedef pair<myitr,int> interator;
Now the above compilation error seems to be gone. Can anyone please help me in understanding this problem???????????????
Also after compiling few files now i am facing new problem. It throws signal 11 in iterator header file of std STL.
Help m e !!!!!!!!!!
For your reference options of compilation are:
/opt/SUNWspro/bin/CC -c -O -mt -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D__EXTENSION
S__ -DRWSTD_MULTI_THREAD -D_RWBUILDSHARED -DRWSTD_COMPILE_INSTANTIATE -
DRWSTD_SHARED_BUILD --I/opt/mylib/common/include/Std mydemo.ccI solved my own problem.
It seems that the C++ XML Parser cannot be used with earlier versions of Oracle. My ORACLE_HOME env variable was pointing to v734. Once I changed that to point to the later version of v816, It was a smooth parse.
null -
Compilation error with RWTValDlist T find() method
This code used to compile fine with SC 4.x C++ compiler. We are migrating to "Sun WorkShop 6 update 2 C++ 5.3 2001/05/15" and it is now generating the following compilation error:
===============================
cd generic/src; make -f generic.mk
/opt/SUNWspro/bin/CC -c -PIC -compat -library=rwtools7 -O2 -I. -I. -I../include -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/SUNWspro/WS6U2/include/CC -I../../interface/include -I../include -I. -I/home/jm/sunos5.8/acell_4.1/include -I/opt/local/access/home/include -I/home/jm/sunos5.8/acell_4.1/include/packetcpp -I/home/jm/sunos5.8/acell_4.1/include/ecl -I/home/jm/sunos5.8/acell_4.1/include/gels -I/home/jm/sunos5.8/acell_4.1/src/security/include -I/home/jm/sunos5.8/acell_4.1/include/sequencer -I/home/jm/sunos5.8/acell_4.1/include/gen -I/home/jm/sunos5.8/acell_4.1/include/recipeMgr -I/home/jm/sunos5.8/acell_4.1/include/EFEFeature -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/local/rv/include -I/opt/local/etk/include -I/opt/local/etk/include/tdl -DTCPIP=1 -D__SYSVR4 -DSHOP=1 -D_SOLARIS=1 -I/opt/local/std_comp/include ACEAlarmClock.C
"ACEAlarmClock.C", line 479: Error: Could not find a match for RWTValDlist<ACEObject*>::find(int(const ACEObject*&,void*), void**, ACEObject*).
1 Error(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `ACEAlarmClock.o'
===============================
The header file in question is:
#include <rw/tvdlist.h>
class ACEAlarmClock : public ACEObject
// The public interface.
public:
ACEAlarmClock();
// Default constructor.
private:
static void alarmCallback(void *passAheadRef, ib_alarmid alarmId);
static RWTValDlist<ACEObject *> AlarmClocks;
and the source file in question is:
void
ACEAlarmClock::alarmCallback(void *passAheadRef, ib_alarmid alarmId)
ACEObject *object = 0; // returned by find()
if (AlarmClocks.find(findAlarmId, &alarmId, object))
ACEAlarmClock alarmClock = (ACEAlarmClock )object;
if (alarmClock)
AlarmClocks.remove(alarmClock);
alarmClock->isActive_ = FALSE;
alarmClock->onAlarm(passAheadRef, alarmId);
return;
Any help is highly appreciated. Thanks.
Cesar Saavedra
[email protected]The C++ Migration Guide that comes with the compiler explains in detail everything you to need to know about migrating from C++ 4.2 to C++ 5.3.
Use the "-compat" option on every CC command, compiling and linking. Any code that worked with C++ 4.2 will work the same way with C++ 5.3 in compat mode.
-compat=4 sets language and binary compatibility to that of the 4.x compilers. -compat=5 sets language and binary compatibility to ANSI/ISO standard mode. If the -compat option is not specified, -compat=5 is assumed.
- Rose -
When I compile program with
CC -g -mt -I../ZLib -c XScenar.cpp
Failure in /opt/SUNWspro/prod/bin/fbe, status = 0x7f00
Fatal Error exec'int /opt/SUNWspro/prod/bin/fbe
gmake: *** XScenar.o Error 1Maybe it's a compiler bug, and it might already be fixed. Do you have the current patches for Sun Studio 10? You can get them here:
http://developers.sun.com/sunstudio/downloads/patches/index.jsp
But the failure might be unrelated to Sun Studio -- it looks like fbe (a compiler component) failed to execute. That could be due to a resource limit being exceeded, or out of memory.
If you run just the one CC command do you still get the error? (The error message you show comes via gmake.)
Does the error always occur in the same place during the build?
How many compilations are you running in parallel?
If you reduce the number of parallel compilations, does the error go away? -
/opt/SUNWspro/prod/bin/acomp core dump!!
Recently, when I compile the ESP ghostscript 8.51 on Solaris 10 and Solaris 9, the progamm acomp (in /opt/SUNWspro/prod/bin/) cored dump, the errors is as follows:
cc:/opt/SUNWspro/prod/bin/acomp fatal error
status 139
*** Error code 139
make: Fatal error: Command failed for target `obj/gdevdjet.o'
there is no errors before the acomp cores dump, only some warning, why does the acomp core dump? what's meaning for the error code 139?I add the -V -# compilation flags, then the output is as follows:
cc -DHAVE_MKSTEMP -DHAVE_HYPOT -O -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBXT=1 -DHAVE_MKSTEMP=1 -DHAVE_HYPOT=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_DOPRNT=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -V - -I./obj -I./src -O -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBXT=1 -DHAVE_MKSTEMP=1 -DHAVE_HYPOT=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_DOPRNT=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -V - -o ./obj/gdevdjet.o -c ./src/gdevdjet.c
cc: Sun C 5.7 2005/01/07
cc: Sun C 5.7 2005/01/07
acomp: Sun C 5.7 2005/01/07
acomp: Sun C 5.7 2005/01/07
"./src/gdevdjet.c", 130 : :
"./src/gdevdjet.c", 137 : :
"./src/gdevdjet.c", 144 : :
"./src/gdevdjet.c", 151 : :
"./src/gdevdjet.c", 158 : :
"./src/gdevdjet.c", 165 : :
"./src/gdevdjet.c", 172 : :
"./src/gdevdjet.c", 179 : :
"./src/gdevdjet.c", 186 : :
"./src/gdevdjet.c", 193 : :
"./src/gdevdjet.c", 200 : :
"./src/gdevdjet.c", 207 : :
"./src/gdevdjet.c", 214 : :
cc:/opt/SUNWspro/prod/bin/acomp
139
*** Error code 139
make: Fatal error: Command failed for target `obj/gdevdjet.o'
the line 130 to 214 is some warning, because my compiler supports Chinese font, the waring line cann't be show correctly here.
#uname -a
SunOS kf06-1 5.10 Generic sun4u sparc SUNW,Ultra-4
#whoami
ems -
SUNWspro/WS6U2/include compilation error
I am using Solaris 2.7 with compiler version: Sun WorkShop 6 update 2 C++
5.3 Patch 111685-06 2002/03/09
I am using -library=rwtools7,iostream and during compilation, I get the
following errors:
"/usr/Forte/SUNWspro/WS6U2/include/CC/./exception", line 22: Error:
"virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./exception", line 22: Error: Use ";"
to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./exception", line 31: Error: Use ";"
to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./new", line 24: Error: Use ";" to
terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 59: Error:
"virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 59: Error: Use
";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 64: Error: Use
";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 130: Error:
"virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 130: Error:
Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 135: Error:
Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./typeinfo", line 46: Error: Use ";"
to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./typeinfo", line 55: Error: Use ";"
to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/rw/iosbase", line 103: Error:
"virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/rw/iosbase", line 103: Error: Use
";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/rw/iosbase", line 105: Error: Use
";" to terminate declarations.
15 Error(s) detected.
Any ideas?
Thanks,
brettBelow is my compilation command line. I haven't been able to build a small code sampe to reproduce. It only seems to be occuring with the inclusion of all my third party software (Not one alone triggers the error). I was hoping that the error had been seen by somebody before and could point out what may be going on. Thanks for any help.
brett
/usr/Forte/SUNWspro/bin/CC -compat=5 -KPIC -mt -D_REENTRANT -library=rwtools7,iostream -DSUN -DDtDISVERS=5 -DDtHLA=1 -DDtRPR=1 -O -w -c -I/usr/include -I. -I/home/bkaylor/GDUtils/SW/GFCTerrain/include -I/home/bkaylor/GDUtils/SW/GFCUtils/include -I/home/bkaylor/GDUtils/SW/GFCTirem/include -I/home/bkaylor/GDUtils/SW/GFCUtils/include -I/home/bkaylor/GDUtils/SW/GFCVrl/include -I/home/bkaylor/GDUtils/SW/GFCUtils/include -I/home/bkaylor/MaK/makRti1.3.6-ngc/include -I/home/bkaylor/MaK/vrlink3.7-ngc/include -I/home/bkaylor/MaK/logger3.7-ngc/include -I/home/bkaylor/GDUtils/SW/GFCGTO/GTO/Gen -I/home/bkaylor/GDUtils/SW/GFCGTO/XDA/include -I/home/bkaylor/GDUtils/SW/GFCUtils/include -I../../include ../SI.C
"/usr/Forte/SUNWspro/WS6U2/include/CC/./exception", line 22: Error: "virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./exception", line 22: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./exception", line 31: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./new", line 24: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 59: Error: "virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 59: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 64: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 130: Error: "virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 130: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 135: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./typeinfo", line 46: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/./typeinfo", line 55: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/rw/iosbase", line 103: Error: "virtual" is not allowed here.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/rw/iosbase", line 103: Error: Use ";" to terminate declarations.
"/usr/Forte/SUNWspro/WS6U2/include/CC/Cstd/rw/iosbase", line 105: Error: Use ";" to terminate declarations.
15 Error(s) detected. -
kubuntu 10.04
firefox 10.0.2
I downloaded and installed firefox 10.0.2 but when I...
1. click the desktop icon nothing happens.
2. use terminal mode and type firefox I get the following error message:
/opt/firefox/run-mozilla.sh: 399: /opt/firefox/firefox-bin: not found
How do I fix this?In short, I used kpackagekit to uninstall firefox. Then used synaptic to uninstall firefox. After that I manually scanned the computer for residual DIRs. In the end, I noticed that I still had 3 DIRs containing firefox: /opt/firefox, /usr/lib/firefox-10.0.1, /usr/lib64/firefox-10.0.1
So removing firefox didn't work as expected.
As it turns out, the copy of firefox residing in /opt/firefox is v3.5.3, but I have a current version in /usr/lib and /usrlib64. For some reason the, new install didn't replace the copy in /opt/firefox and the /usr/bin scripts firefox and run-mozilla.sh point to /opt/firefox.
So when I use terminal mode and type firefox I get the cited error message. When I use my desktop icon it hangs.
My remedy for this was to due the following:
1. track down the location of the desktop icon: /usr/share/applications/firefox.desktop
2. edit the file: sudo pico /usr/share/applications/firefox.desktop
3. modify entry to: EXEC=/usr/lib/firefox-10.0.1 /firefox.sh u% ( save and exit)
4. modify terminal command: firefox
5. track down the location of the firefox command: /usr/bin/firefox and /usr/bin/
firefox.ubuntu
6. remove symbolic link: rm /usr/bin/firefox
7. remove symbolic link: rm /usr/bin/firefox
8. create new symbolic link: ln -sT /usr/lib/firefox-10.0.1/firefox.sh firefox
9. create new symbolic link: ln -sT /usr/lib/firefox-10.0.1/firefox.sh firefox.ubuntu
Everything works now as it should.
I believe the cause of this problem was related to the fact that the mozilla-team made a change to the location of their upgrade/update libraries which affected the entries in the file: /etc/apt/sources.list. When the ppa library location changed, my kubuntu version 10.04 didn't make this change and residual copies of firefox were left behind and DIRs /usr/bin and /opt/firefox were not modified.
Perhaps my experience will help others that tread this path.
Maybe somebody can explain to me why we need 3 DIRs for firefox: /opt/fire ; /usr/lib ; /usr/lib64 -
Compilation error, When moving from 32-bit to 64-bit code
Hello,
I m getting Compilation error, This program already compiled on 32 bit, but getting compilation error on 64 bit.
CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
make
Making dependencies...
cc -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. -xcg92 `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -Dbool=int -g -D -I. -m64 -xarch=sparcvis -H -w -E 2>&1 >/dev/null Bitmap.cc BitmapData.cc BitmapInputTxnStream.cc BitmapOutputStream.cc UnexpectedException.cc FieldData.cc FieldDataCollection.cc FieldDefinition.cc FieldDefinitionCollection.cc OutputFixedStream.cc ParsingEngine.cc Schema.cc Statistics.cc String.cc TraceStream.cc TxnStream.cc c_api.cc SocketImpl.cc Socket.cc ServerSocket.cc UnixSocket.cc Thread.cc test.cc | grep -v License | grep -v command | ../dvl.bin/mkdep >.depends
Dependencies updated...
CC -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. -xcg92 `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -Dbool=int -g -D -I. -m64 -xarch=sparcvis -c Bitmap.cc
"/opt/SUNWspro/prod/include/CC/Cstd/./limits", line 1046: Error: Multiple declaration for std::numeric_limits<int>.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 192: Error: Multiple declaration for std::ostream::operator<<(int).
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 351: Where: While specializing "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 351: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 192: Error: Multiple declaration for std::wostream::operator<<(int).
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 354: Where: While specializing "std::wostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 354: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 104: Error: Multiple declaration for std::istream::operator>>(int&).
"/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 373: Where: While specializing "std::istream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 373: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
"/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
"/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
"RuntimeException.h", line 131: Error: Function RuntimeException::~RuntimeException() can throw only the exceptions thrown by the function std::exception::~exception() it overrides.
"RuntimeException.h", line 97: Error: Could not find std::exception::exception(const char*) to initialize base class.
"RuntimeException.h", line 121: Error: xmsg is not a member of std::exception.
"Bitmap.cc", line 62: Error: Cannot return int(Bitmap::*)()const from a function that should return int.
11 Error(s) detected.
make: *** [Bitmap.o] Error 11
In Makefile CFLAGS setting are as follows,
### Setup common symbols for .depends
SRC = $(TEST_SRC)
INCLUDES = $(TEST_INC)
# clean objects, executeable, generated .pc -> .c
CLEAN = -r *.o $(PGM_EXEC) Templates.DB/* SunWS_cache/*
include $(ROOT)/h/common.mak
# The system include directory must be specifically included first because some of the
# ghost includes use system include file names (e.g., generic.h)
# Modified these section to compile on TVLAPP1HAG
CFLAGS += -D $(STDOUT_TRACE)
CFLAGS += -Dbool=int -g -D$(MAINLINE) $(OUR_COLLECTION)
#CFLAGS += -compat -Qoption ccfe -abirel=4.1
#CFLAGS += -Qoption ccfe -abirel=4.1
CFLAGS += -I. -m64 -xarch=sparcvis
#CFLAGS += -I. -mt
# Add the flag for multi-threaded apps
LDFLAGS += -lsocket -lnsl -lthread
# declare an empty macro for compiler directive flags, to be command-line
# driven (ie, for -D directives)
CCFLAGS=
CCFLAGS += -DRW_NO_CPP_RECURSION
# The following manipulation of CC and overriding the .cc.o suffix
# dependency is removed here to use what is supplied by default int
# the h/common.mak file.
#XX = CC
#CC = CC
#COMPILE = $(CC) -o $*.o $(CFLAGS) $(CCFLAGS) -c $*.cc
#.cc.o:
# $(COMPILE)
Please HelpHello,
Still I am not able to solve the error. please help me.. Please see the below code...
Error:
s3dvap983:/export/home/pshirode/rel_v95/cc_lib > make
Making dependencies...
cc -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -g -D -I. -m64 -xarch=sparcvis -H -w -E 2>&1 >/dev/null Bitmap.cc BitmapData.cc BitmapInputTxnStream.cc BitmapOutputStream.cc UnexpectedException.cc FieldData.cc FieldDataCollection.cc FieldDefinition.cc FieldDefinitionCollection.cc OutputFixedStream.cc ParsingEngine.cc Schema.cc Statistics.cc String.cc TraceStream.cc TxnStream.cc c_api.cc SocketImpl.cc Socket.cc ServerSocket.cc UnixSocket.cc Thread.cc test.cc | grep -v License | grep -v command | ../dvl.bin/mkdep >.depends
Dependencies updated...
CC -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -g -D -I. -m64 -xarch=sparcvis -c Bitmap.cc
"/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
"/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
"/opt/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
"RuntimeException.h", line 137: Error: Function RuntimeException::~RuntimeException() can throw only the exceptions thrown by the function std::exception::~exception() it overrides.
"RuntimeException.h", line 103: Error: Could not find std::exception::exception(const char*) to initialize base class.
"RuntimeException.h", line 127: Error: xmsg is not a member of std::exception.
"Bitmap.cc", line 62: Error: Cannot return int(Bitmap::*)()const from a function that should return int.
7 Error(s) detected.
make: *** [Bitmap.o] Error 7
96 class RuntimeException : public xmsg {
97 public:
98
99 /**
100 * Create an exception with a simple error message
101 * @param message The error message
102 */
103 RuntimeException(const char* msg) : xmsg(msg) {}
104
105 /**
106 * Create an exception with an error code, fileinfo, and message. This will
107 * produce an error message that looks like:
108 * in File:%s at line#: %d \n %error_message%
109 *
110 * @param error An integer error code. The catch block can use the error()
111 * method to examine this value
112 * @param fileinfo The location in a source file where the error occured
113 * @param msg The error message
114 * @see RuntimeException.error
115 */
116 RuntimeException(int p_error, const Fileinfo& f, const char* msg)
117 {
118 error = perror;
119 strstream buffer;
120 buffer << "in File:"
121 << f.filename()
122 << " at line#:"
123 << f.lineno() << endl << msg
124 << ends; // required for this strstream library, other versions
125 // like Borland the stream is always null terminated
126
127 xmsg::xmsg(buffer.str());
128 delete buffer.str(); // added by db 03-Jul-98 accoprding to the
129 // ssbuf(3C++) man page - other implementations may
130 // use malloc/free but Solaris uses new/delete
131 }
132
133 /** @return the error code */
134 int error() {return _error;}
135
136 /** Clean up instance */
137 virtual ~RuntimeException() {}
138
139
140 protected:
141
142 /**
143 * Default constructor - not very useful to throw an exception without at
144 * least an error message, so this is reserved for only subclasses.
145 */
146 RuntimeException() : xmsg() {}
147
148 private:
149
150 /** the error code associated with the error */
151 int _error;
152 };
153
Maybe you are looking for
-
I read that Win 7 security support will last until 2020. I am considering moving from Win XP Pro to Win 7 Pro with XP mode instead of Win 8.1, because the Win 7 upgrade adviser indicates no problems, whereas when I run the Win 8 upgrade adviser there
-
Wishlist for groups administration in LDAP server console
I wonder why there is no basic support in administration of groups in the Directory Server console. What I and others are missing is: - search for users in large static groups - sort columns in group member display by clicking on column titles - sear
-
Possible to create desktop shortuts in a computer lab environment?
Is there anyway to create shortcuts to different webpages on a desktop in a computer lab environment where any time a person logs on, the shortut is on their desktop? There are way to many users to try to set this up on every persons profile so, this
-
Using OHS to redirect traffic based on intranet or internet URL
Hello, we have a requirement where we have to launch our application on internet. Application is working fine on local intranet URL or internet URL but not working on both at same time.we have application developed with ADF and other fusion component
-
Transferring DAQ name on new installation
Dear Labview forum, I have an M-series USB DAQ. I have built in Labview 8.0 an executible version of software to interact with the DAQ, plus an installation disk with a setup.exe program which installs my executible, a runtime version of labview, and