Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Go to solution
Highlighted
xinm
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
Dennis Handly
Acclaimed Contributor
Solution

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.
Dennis Handly
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
xinm
Advisor

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

3ks!
xinm
Advisor

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

thanks a lot!