Run dlopen error“Unsatisfied code symbol '_mcount' in load module '/billing/dll/libC04.sl' (257 Views)
Reply
Advisor
xinm
Posts: 22
Registered: ‎09-27-2007
Message 1 of 5 (257 Views)
Accepted Solution

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!
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,709
Registered: ‎03-06-2006
Message 2 of 5 (257 Views)

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.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,709
Registered: ‎03-06-2006
Message 3 of 5 (257 Views)

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
Please use plain text.
Advisor
xinm
Posts: 22
Registered: ‎09-27-2007
Message 4 of 5 (257 Views)

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

3ks!
Please use plain text.
Advisor
xinm
Posts: 22
Registered: ‎09-27-2007
Message 5 of 5 (257 Views)

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

thanks a lot!
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation