error messages explanations list

120 byte By iyossi at 2007-11-25 23:40:54
Hi,Where can I find explanations for the error messages of the compiler ?Thanks,Yossi

dbx core dump

1288 byte By johntrop at 2007-11-25 23:40:56
Hi,We have an application successfully running in server1. In bringing the same source to server2, we encountered core dump (with different configuration) using debugger. We can compile and execute the executable in server2 but we cannot step or trace the source using debugger. We have try ...

RogueWave tools

378 byte By AlastairBeadle at 2007-11-25 23:40:57
How can I use both the RogueWave Tools.h++ library that comes with the SUNPRO C++ compiler 5.0 & the standard library implementation of iostreams. When I link my application it reports a number of unresolved references in <installdir>/SUNWspro/lib/rw7/librwtool.so when I ...

Backward Compatibility?

533 byte By RobChaddock at 2007-11-25 23:40:58
If I develop an application on Solaris 7 using C++5.0 (in 32 bit mode). What do to tell a customer that uses that application about what the minimum requirements are with regard to the version of Solaris they need to be running on their system.What I mean is will the application that I build ...

5.0 and 4.2 side by side on the same machine?

741 byte By RobChaddock at 2007-11-25 23:40:59
On the workshopfaq page (question 9 below) it says that workshop 5.0 and workshop 4.2 can reside on the same machine.My question is how does this work? (How do you install 5.0 on top of 4.2 and how do you use them side by side?) A pointer to some documentation explaining this in a bit more ...

Diagnosing Core files from another machine

974 byte By seantsweeney at 2007-11-25 23:41:00
Our server code is compiled on one machine and executed on another. The server core dumped. I moved the core file and executable to a machine with dbx/workshop and I received the following error when I tried to load the core file.(dbx) Value of `$DBX_cfront_demangling' must be either `on' or ...

template problems

1086 byte By luyong at 2007-11-25 23:41:02
Dear Sirs: I am working on a sun machine (SUNOS 5.6) and met template problems. In the compiling phase, everything looks fine. I turned on"verbose=template" and so I could see clearly every template instancethat I need is instantiated. However, when it comes to the "loading"phase with "ild", it ...

Linking objects between WorkShop 4.2 and 5.0

305 byte By jipm at 2007-11-25 23:41:03
We are currently using WorkShop 4.2 on our Solaris 2.6 machine, but planning to upgrade to WorkShop 5.0. We have many 3rd party libraries compiled by WorkShop 4.2 and no new version is available. Can we build our binaries using some objects built by 4.2 compiler and some from 5.0 compiler ? ...

Build a software distribution package

316 byte By sptccs at 2007-11-25 23:41:04
Hi, how could i build a software distribution package?. I磎 developing software for the Solaris platform and i don磘 know the tools required to build the distribution, so my customers can install my software with a simple "pkgadd" command or running a setup program.Thanks in advance for the help. ...

ld: fatal: library -lthread: not found

1007 byte By jacob.thomas at 2007-11-25 23:41:05
My project is a multithreaded application that requires compiling c++programs using orbix, roguewave libraries with some additional staticlibraries we developed. However, during linking. I am getting fatalerrors:ld: fatal: library -lthread: not foundld: fatal: File processing errors. No output ...

Dbx Debug error

267 byte By kavinjr at 2007-11-25 23:41:06
Everytime I try to dbug using dbx giving me could not get rtld base address -- no AT_BASE in auxv couldnot initialise rtld_db.soand failed debug session. this is hapennig in WS C++5 on Solaris 7.0.Any help would be appreciated.Sohan

Linking Templates with instances=static

663 byte By Sephi at 2007-11-25 23:41:11
Did anybody try to use the CC instances=static flag?When trying to link I get an error message:CC -c -g -KPIC -mt -instances=static TemplateTest.cppCC -G -o libtmplt.so -L/opt/SUNWspro/SC5.0/lib -instances=static -L. -mt TemplateTest.o -lCstdCC -c -g -KPIC -mt -instances=static main.cppCC ...

Using a template library

306 byte By Sephi at 2007-11-25 23:41:12
In a technical FAQ from Aug. 2nd, 1999 (DOCUMENT ID: 2835-20), about how to use templates in a library, the solution includes the "CCadmin -import" command.I'm working on Solaris 7 with C++ 5.0 and CCadmin does not accept an "-import" flag or anything similar. Am I missing something? ...

How to write a fast mutex?

380 byte By sadda at 2007-11-25 23:41:18
I would like to have fast locks as Win32's InterlockedIncrement(). Currently I am using the swap assembler instruction. Is this correct or do I need to add a kind of memory barrier? I would rather like to use the atomic_add function family but it doesn't seem to be available for user ...

libC patch #106327-07 for Solaris 7

418 byte By albano1 at 2007-11-25 23:41:20
Has anyone else encountered problems with this patch?I have some apps that require patch number #106327-06 and they now dump core after bus errors with the newer patch.Downgrading isn't an option since end users won't be able to download the older patch from Sun's website, anymore. Static ...

CC on Sparc, Run on x86

329 byte By kingtuttj at 2007-11-25 23:41:23
Is there a flag/option that I can set tocompile c code on a Sparc, generating anexecutable that I can run on a PC that is running Solaris 7?Or do I need to copy all of the source codefrom the Sparc to the PC, and then compileusing a x86 version of Workshop?Thanks!!! ...

mq_open - unable to create message queue.

409 byte By at 2007-11-25 23:41:24
I'm trying to use message queues on Sun OS 5.6 with Workshop 5 C++. The following command should create one for me: mqd_t q = mq_open("my_q", O_CREATE | O_RDWR)This returns -1 and errno is 16 (Invalid argument). If I use "/my_q", it still returns -1 but the error code is 0. Is there a special ...

dbx start-up errors

605 byte By sescoi at 2007-11-25 23:41:25
Running 'dbx myprog' gives me the cryptic messages: Reading symbolic information for myprog Reading symbolic information for rtld /usr/lib/ld.so.1 dbx: fetch at 0xef7b8044 failed -- I/O error dbx: fetch at 0xef7b8044 failed -- I/O error dbx: fetch at 0xef7b8044 failed -- I/O error dbx: ...

Include file conflict? mbstate_t

860 byte By orendaj at 2007-11-25 23:41:26
I've just installed Workshop C++ 5.0 on Solaris 8 and had also perviously installed Sun's CD of GNU tools. When compliling a simple program I get the following error:CC -o primes primes.cc"/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for ...

Where can I get a STL-like hashmap?

672 byte By joseph-higgins at 2007-11-25 23:41:27
I want a hashmap template that is compatible with STL's map (like SGI's hash_map) that I can use with WSP5.0.Any suggestions? Is it possible (meaning straightforward & easy) to use selectively SGI's code for hash_map?.Prior to migrating from g++ I was informed by both Rogue & Sun ...

Exceptions in shared objects

663 byte By eitanm at 2007-11-25 23:41:29
I am trying to write a shared object compiled with C++ 5.0, that hastry, thraw and catch statements in it. This C++ mudule has only C interfaceto the caller, which is a pure C shared object. The caller is called bya main() compiled with C++5.0, with compat=4 flag.What happens is that the ...

dbx: MT disabled.

260 byte By s_yash at 2007-11-25 23:41:30
when i attach my executable with dbx, i get some start up warings like "thread count not found" etc. And only continue works and when i try to step through the file it says "MT disabled" and freezes. Thanks in Advance-shashi.

Apps being linked with libgc

755 byte By sbarvian at 2007-11-25 23:41:33
We just shipped our first set of applications compiledwith Workshop 5.0. The apps are dead in the field withthe error "libgc.so.1 cannot be found".We link our apps with "-library=%all,no%rwtools7,no%iostream".We do not ask for "gc", and according to the man page in-compat=5 mode (we don't use ...

Extremely slow Workshop 6.0 ?!?!

402 byte By tommysvensson at 2007-11-25 23:41:35
Hi all,I've just installed Workshop 6.0 on my Sparc with Solaris 2.6.Everything seems to be working...But it is so slooooow.Compiling a trivial program from the commandprompt takes almost 2 minutes!!(prompt> CC test.cpp )And starting up the workshop gui takes also something around 2 ...

compat=4 and #include<string>

1176 byte By minihand at 2007-11-25 23:41:40
I am trying to build a project that uses string and wstring out of #include <string>, but because I am using Orbix 3 corba middleware I am having uses compatibility mode compat=4. This gives me the following error:"/opt/SUNWspro/SC5.0/include/CC/./new", line 32: Error: The prior ...

timezone programming question: converting UTC to local time

418 byte By mxiong at 2007-11-25 23:41:41
I am looking for a way to convert a UTC time to the corresponding local time in any given timezone, not necessarily the timezone that the process is running in. Something like localtime_r(const time_t *utc, const char *name_of_timezone, struct tm *res) would do. It has to be MT-safe, so I ...

_findfirst compatible function in Solaris

168 byte By Biswadeep at 2007-11-25 23:41:44
Hi,I am tying to find a function on Solaris which does the same work as _findfirst on NT. Can someone please help me out in this ?Biswadeep.

xcode=abs32

534 byte By mandarbarve at 2007-11-25 23:41:45
hi all,i am building a 64 bit device driver under Solaris 7 using Sun Workshop Pro C compiler. I have a switch to specify while compiling the driver module. It is -xcode=abs32. i dont know the exact meaning of this switch. And when i use this, the linker gives an error saying /opt-y-xcode=abs32 ...

Include file error from a new install of C++ compiler on Solaris 5.7

3370 byte By gregsiel at 2007-11-25 23:41:47
Here is the command line being executed:CC test.ccHere is the sample cc file being compiled: #include <iostream> int main() {std::cout << "Real programmers write C++!" << std::endl;return 0; }Error Output:"/opt/SUNWspro/WS6/include/CC/std/stddef.h", line 7: Error: Could not ...

64bit runtimes...

1703 byte By rajag1 at 2007-11-25 23:41:48
We are seeing an increased runtime(almost 2X) when ourapplication is compiled for 64bit using Workshop 5.0 C++compiler. The same version of the compiler is used forcreating a 32bit executable. CPU time difference between32 and 64bit doubles nearly. Since the code is proprietaryI can't send the ...

Compiler Assertion when trying to link with Forte 6 C++

2393 byte By michaelvEDI at 2007-11-25 23:41:49
This is a rather large module, and was compiling and linking just fine until today when some minor code changes went in. Now I get this every time it gets to the linking phase:/export1/forte6/SUNWspro/bin/CC -w -G -PIC -mt -DRW_MULTI_THREAD -o /export1/etdev3/libs/solaris-sparc/Debug/libecrs.so ...

C Program Hang-Freeze in usleep

256 byte By asherm01 at 2007-11-25 23:41:56
We have a program that intermittantly suffers hang-freezes. Running it in the debugger shows that the C program is calling usleep when it freezes. What kinds of interrupts sent to our application could be causing this?Thanks,Art

SOs and Templates

1127 byte By mgmcintosh at 2007-11-25 23:41:57
I am trying to do something very simple, yet I can't get the Sun Forte 6 C++ compiler to do it. I know it is probably my fault, but I don't know...I am compiling a file containing:<pre>#include <string>std::string Foo(void) { return std::string("Foo"); };</pre>With the ...

Workshop 4.2 support on Solaris 8

238 byte By kobrien9 at 2007-11-25 23:41:59
I understand that Workshop 4.2 is not supported on Solaris 7 or 8.Can anyone direct me to an official Sun posting stating this?It is the last piece I need to get us to upgrade to Forte 6.ThanksKen

Mysterious SIGALRM's using pthreads & sockets

2641 byte By mikedickey at 2007-11-25 23:42:02
I'm trying to port a C++ application to Solaris 8/Sparc using the newForte 6 development tools/libraries and a new Sun E250 Server.I'm using various pthreads components (threads/mutexes/conditions/signalhandling), as well as your standard socket programming calls (socket/bind/accept/etc.). ...

flag '-I'

344 byte By simony1 at 2007-11-25 23:42:04
c++ 5.0 solaris 2.7 I have put -I at the beginning of every INCLUD's path in the makefile like this INCLUDE = -I.\(tab)= -I $(PATH1)\...but the compiler still gave out warnning msg:Value expected for flag '-I' for '/opt/SUNWspro/SC5.0/bin/ccfeCan anyone tell me why? Thankstony ...

Create archive

419 byte By simony1 at 2007-11-25 23:42:05
In C++5.0 Solaris 2.7.I used following line in the makefile to create a library:CC -xar libmylib.a o1.o o2.o o3.o o4.obut I got error message:SunWS_cache: Error: Error occurred in invoked compiler [process exec failure, errno=2] aborting...Can any one tell what this means(all *.o files did ...

Repost: flag '-I'

290 byte By simony1 at 2007-11-25 23:42:06
While rebuild a legacy module, I constantly got:Value expected for flag '-I' for '/opt/SUNWspro/SC5.0/bin/ccfe'Not sure if I omitted some included path with '-I', or the information meant something else? Can someone help me?Thanks in advanceT

Forte C++:error: Multiple Declaration for std::exception

409 byte By nmaganti at 2007-11-25 23:42:07
Hi,I am trying to compile code written in C++ 4.2/solrais 2.6 with Forte 6 C++ compiler on Solaris 7. Getting the following error./opt/SUNWspro/WS6/include/CC/exception.h Line 17: Multiple Declaration for std::exception.Tried running only the preprocessor using -E option and noticed from the ...

Good books for C/C++ programming on Solaris?

174 byte By blaimer at 2007-11-25 23:42:13
Hallo!Can anybody help me?Are there some good books for programming in C an C++ on the newest version of Solaris?Thanks,Alois

Unix newsgroups

127 byte By blaimer at 2007-11-25 23:42:14
Hallo!Can anybody help me?How can I find some good UNIX newsgroups?Thanks a lot!Alois

KPIC problem when creating so with Forte C++

636 byte By scolaro at 2007-11-25 23:42:17
Hi,I am trying to create a shared object library using Forte C++. The project contains about 80 files, all of which are compiled separately with the -KPIC option set. Whe I try to create the library (using the -G) option I get an error that says something similar to:Too many small pic ...

nl_langinfo(CODESET) problems...

174 byte By crooktim at 2007-11-25 23:42:18
Using nl_langinfo (CODESET), on Solaris 8 (uname -r returns 5.8) I always get code page 646 back, even after changing the locale. Is this an installation issue?

Solaris 2.6 memory leak when creating threads

268 byte By rfsrfs at 2007-11-25 23:42:19
Hi everyoneI create many threads (5 by 5 then join) and it seems like I've got 8K memory leak for each thread I launch !I quit my threads using thr_exit and create them with thr_create.What am I doing wrong ?Thanks in advance

Forte C++ 5.0 - dbx takes extremely long time to load shared libraries

1579 byte By pwhite2 at 2007-11-25 23:42:20
I am in the process of porting a large program from CC 4.2 to CC 5.0. The program compiles and (almost) runs correctly when compiled under CC5.0. However, when trying to debug the program using the version of dbx provided with Sunpro 5.0, I notice a significantly longer load time for shared ...

Forte 6 C++ assertion aka crash with -g flag enabled

403 byte By tmeade at 2007-11-25 23:42:24
Hi,I'm using Forte 6 C++ on a Solaris 7 sparc box.We've come across a few different situations where the compiler assertsitself in dbg_stcomm.cc line 271 when the "-g" debug CC flag is set. However, without the "-g" the code compiles fine.Anyone else see this crash? I can't seem to narrow it ...

Create Archive

301 byte By sagarshirguppi at 2007-11-25 23:42:25
I used CC -xar -o disply.a disply.o to create archive but i am getting following error,SunWS_cache: Error: Error occurred in invoked compiler [process exec failure, errno=2] aborting... if anyone knows the solution please let me know.Thanking you.Sagar ...

"Team Ware" and "Workshop Projects"

480 byte By selami at 2007-11-25 23:42:26
I am setting up a new development environment for a group of people using Forte Teamware and Workshop. In the Teamware workspace structure I plan to create one parent workspace for each Workshop project. Team members will bring over a project into their private workspace, modify it, and then ...

cc failed on licensing

2651 byte By jienhua at 2007-11-25 23:42:27
I had a licensing problem running my compiler 'cc'. I installed the license two weeks ago and have used it for a while. Now it stopped working with error message saying:jackh@jacks7$ cc -o hello hello.cLicense Error : Licensing product (Sun WorkShop Compiler C Intel).License File: ...

Purify problems...?

397 byte By matt-brown at 2007-11-25 23:42:30
We had used purify 4.5 previously on Solaris 2.5 and 2.6 with excellent results. We're not trying to use purify 5.1 and 5.2 on solaris 2.6 or 2.7 and having terrible results. Lots of flaky error reporting on things that near as any of us can tell are indeed not errors. Same code under 4.5 on ...