Operating System - HP-UX
1830862 Members
2632 Online
110017 Solutions
New Discussion

aCC runtime: Use of "-mt" must be consistent during both compilation and linking

 
SOLVED
Go to solution
skt_skt
Honored Contributor

aCC runtime: Use of "-mt" must be consistent during both compilation and linking

HP-UX 11.11. We started getting the error message after the recent patching.
"
This prog is calling a perl script which is failing with the below error It was running OK last week.

aCC runtime: Use of "-mt" must be consistent during both compilation and linking.
sh: 6436 Abort(coredump)"

Here is another error message from netbackup.

03/09/2009 11:00:10 - Error bpbrm (pid=3891) from client aded116n.ami.alcoa.com: aCC runtime: Use of "-mt" must be consistent during both compilation and linking.
03/09/2009 11:00:11 - Error bpbrm (pid=3891) client aded116n.ami.alcoa.com aborted

Here is the C+ related patches.

aded115n:root [/home/kumarts] grep C+ swlist.prod.03092009
ACXX C.03.70 HP aC++
PHKL_34670 1.0 Standards compliance; C++ warnings; stat.h
PHKL_34807 1.0 RTE PSETS, unistd.h C++ warnings
PHSS_33946 1.0 HP aC++ -AA runtime libraries (aCC A.03.85)
PHSS_36087 1.0 HP aC++ Compiler (A.03.77)

I am looking for a solution other than downgrading the patches.
6 REPLIES 6
Avinash20
Honored Contributor

Re: aCC runtime: Use of "-mt" must be consistent during both compilation and linking

Make sure that -mt is used consistently at compile and link times. When you link with -mt, everything must be compiled with -mt, even if you do not think your file will be used in a threaded application. When you incorrectly mix and match with -mt, you get a runtime abort with the following message:

aCC runtime: Use of "-mt" must be consistent during both compilation and linking.

To find the library or object that is missing -mt, use /usr/ccs/bin/footprints and look for the following:

-mt [(off) 1] -mt [on 1] (Or not present)

The number 1 above is the count of objects with that -mt setting. Not present implies the source was not compiled with a recent compiler that contains this information.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Dennis Handly
Acclaimed Contributor

Re: aCC runtime: Use of "-mt" must be consistent during both compilation and linking

>Here is another error message from netbackup.
>I am looking for a solution other than downgrading the patches.

You don't have much of a choice. netbackup is broken and wasn't compiled correctly. You need to either backout the aC++ runtime patch or get a fixed version of netbackup. (Symantec knows about the problem.)

>Avinash: Make sure that -mt is used consistently at compile and link times.

This doesn't help since netbackup is a broken third party application.
Avinash20
Honored Contributor
Solution

Re: aCC runtime: Use of "-mt" must be consistent during both compilation and linking

Hi Santosh,

Ah !! I have already worked on this issue before.

Dennis ,. you are right.. :)

Some time back I has written a doc for 11.23 on similar issue

For 11.23:
The issue can be resolved by removing the patch PHSS_38140 , which is the recent patch against the patch PHSS_31855 (Recommended for Netbackup 6.5).

For 11.11:

Downgrade the patch aC++ Runtime time patch

This is an issue with netbackup which thry are already aware

--------------------------------------------------------------------------------
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: aCC runtime: Use of "-mt" must be consistent during both compilation and linking

Hmmm..
http://www.mail-archive.com/veritas-bu@mailman.eng.auburn.edu/msg20052.html
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
skt_skt
Honored Contributor

Re: aCC runtime: Use of "-mt" must be consistent during both compilation and linking

We rolled back to PHSS_33944. that helped for now
dirk dierickx
Honored Contributor

Re: aCC runtime: Use of "-mt" must be consistent during both compilation and linking

you can get a hotfix from veritas if needed. we did, the definite fix will be in MP8.