Operating System - Linux
1753261 Members
5097 Online
108792 Solutions
New Discussion юеВ

Runtime error into multithread application

 
Vadim Yezhakov
Advisor

Runtime error into multithread application

I have same problem, which described in thread "http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=947243".

All shared librares and application are compiled and linked with "-mt" option for miltithreading. I use some Informix libraries also, which are mutlithreaded too.
But when I run my application, runtime error occured: "aCC runtime: Use of "-mt" must be consistent during both compilation and linking."
I install pathch "PHSS_33350", but trouble have not been solved.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Runtime error into multithread application

Shalom Vadim,

Is aCC fully patched from the Application cd?

swlist -l product | grep -i aCC

You may have a version of aCC that does not support what you are trying to do.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vadim Yezhakov
Advisor

Re: Runtime error into multithread application

I don't know about all aCC patchs
But now i have "aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]"
And I install patch "PHSS_33350".

I successfully use multithreading by all my applications, but when i use Informix shared libraries, the error occured.
Sandman!
Honored Contributor

Re: Runtime error into multithread application

Vadim,

Take a look at PHSS_34041, which supersedes PHSS_33350.

Please provide information on your system type and the command you are using to compile and link the Informix libraries.

thanks!
Vadim Yezhakov
Advisor

Re: Runtime error into multithread application

Hi Sandman.
My system configuration:
"HP-UX B.11.23 U ia64 "
I use Informix libraries for multithreading. I don't know wich command was used to compile this libraries.
But my app compiled with "-D_REENTRANT -D_RWSTD_MULTI_THREAD -lpthread" flags.

I havn't problems on "HP-UX B.11.23 U 9000/800" system. Error ocured on Itanium only.
Dennis Handly
Acclaimed Contributor

Re: Runtime error into multithread application

If you have PHSS_33350, then you have the fix for the false positive missing -mt error in CR JAGaf62727.

So you have a real problem. Have you looked at every aC++ shared and archive lib you use in your whole application and made sure them were compiled with -mt?

As Sandman asks, you need to find out of Informix is C++ and compiled with -mt.

Using /usr/ccs/bin/elfdump -d on the libs will tell you if it is C++ but unfortunately it won't tell you it has been compiled wiht -mt.