BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Run dlopen error“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl'

SOLVED
Go to Solution
Advisor

Run dlopen error“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl'

Dear friends:
When I run dlopen a “*.sl”,there happens a error,dlerror function’s result is :
“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl'.

------it’s makefile for *.sl--------------
LLIBTHREAD=-lpthread
CCFLAGSCC= +DSblended +O2 +Z -AA +DD64 -mt -D_RWSTD_MULTI_THREAD -DPTHREAD_FORCE_SCOPE_SYSTEM $(LLIBTHREAD)
INCLUDE= -I$(ORACLE_HOME)/rdbms/demo \
-I$(ORACLE_HOME)/rdbms/public \
-I$(ORACLE_HOME)/plsql/public \
-I$(ORACLE_HOME)/network/public \
-I./
HP_UX_ACC_COMPILE=aCC -D$(UNIX_VER) +z -ldl -g $(CCFLAGSCC) -I- $(INCLUDE) -I ./ -c
SLLD=aCC -b $(CCFLAGSCC)

so:$(OBJ)$(SO).o
$(SLLD) -G -o lib$(SO).sl $(OBJ)$(SO).o -lpthread -L$(ORACLE_HOME)/lib -lclntsh

$(OBJ)$(SO).o:$(SO).cpp $(DIR)base.h
$(CC) -I$(DIR) $(SO).cpp $(DIR)base.h
------it’s main program’s codes-----------
void *hndl = dlopen( dllname, RTLD_NOW|RTLD_GLOBAL );
char *dl = dlerror();
cout<<"kkdk"<cout<
---------------------------------------
When I run the program,error haved happened.


MY Program’s Environment:
machine : ia64 hp server rx4640
OS info:
sysname = HP-UX
release = B.11.23

I hope somebody can help me.
Thanks!
4 REPLIES
Acclaimed Contributor

Re: Run dlopen error“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl'

>Run dlopen error â Unsatisfied code symbol _mcount in load module /billing/dll/libC04.sl

This means you compiled with -G. To use gprof you must link your executable with -G.

Why are you using -G to use the obsolete gprof?
Instead you should be using caliper to collect this info.
Acclaimed Contributor

Re: Run dlopen error“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl'

I just noticed that you are having the exact same problems that you reported last Sept in:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1165000
Advisor

Re: Run dlopen error“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl'

3ks!
Highlighted
Advisor

Re: Run dlopen error“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl'

thanks a lot!