Operating System - Linux
1748216 Members
3599 Online
108759 Solutions
New Discussion

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

 
SOLVED
Go to solution
xinm
Advisor

How to resolve “Unsatisfied code symbol '_mcount'” problem?

Hi:
When I execute a C++ program,it happens error,error information is:
“/usr/lib/hpux64/dld.so: Unsatisfied code symbol '_mcount' in load module '/develop /apps/dll/libpub.sl'.
Killed”

Program’s Environment:
machine :ia64 hp server rx4640
OS info:
sysname = HP-UX
nodename = SRBZ-3
release = B.11.2
aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]

I hope somebody can help me to resolve this problem.
Thanks!
7 REPLIES 7
TY 007
Honored Contributor

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

Hello,

Install the following patches & try again:
PHSS_33278 aC++ Compiler
PHSS_33279 u2comp/be/plugin library patch
PHSS_35528 Aries cumulative patch
PHSS_36336 linker + fdp cumulative patch
PHSS_36343 aC++ Runtime
PHSS_37039 Integrity Unwind Library

Thanks
Steven E. Protter
Exalted Contributor

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

Shalom,

Also see that required libraries on on the path defined in SHLIB_PATH

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
Dennis Handly
Acclaimed Contributor
Solution

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

Your libpub.sl has been compiled with -G or -p but your executable wasn't linked with the same options.

On IPF, _mcount is either in -lprof or -lgprof.
Note on IPF you should name your shlibs as .so, not .sl
Also A.06.00 is old and the latest is A.06.14.

Instead of using obsolete technology like prof(1) or gprof(1), you should be using caliper(1). It has similar options and many more. And you don't have to compile with special options.

>TY 007: Install the following patches & try again:
>SEP: Also see that required libraries on on the path defined in SHLIB_PATH

These aren't going to solve the problem.
xinm
Advisor

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

Thanks all!

I have done these:

>TY 007: Install the following patches & try again:
> SEP: Also see that required libraries on on the path defined in SHLIB_PATH

After I done these ,my problem still not solve!

SO I done with Dennis Handlyâ s ideal,my libpub.sl has been compiled with â G,my executable program linked with the same options,so the problem has resolved!!
Thanks all very much!
Dennis Handly
Acclaimed Contributor

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

If your problem has been solved, please assign points and close the thread. Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
xinm
Advisor

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

Thanks ALL!
I have assigned points!
xinm
Advisor

Re: How to resolve “Unsatisfied code symbol '_mcount'” problem?

Thanks all!