Operating System - Linux
1745819 Members
4451 Online
108722 Solutions
New Discussion юеВ

/usr/lib/dld.sl: Unresolved symbol

 
SOLVED
Go to solution
Neel2
Regular Advisor

/usr/lib/dld.sl: Unresolved symbol

Hello,

First of all thanks a lot, I was about to do the same, when i saw your previous thread reply.

I got the following error, it gives a core dump:

/usr/lib/dld.sl: Unresolved symbol: __shlinit (code) from /build/HP-UX_32bit/opt/lib/libembed.sl


/////////////////////////////////////
Stack:
Core was generated by `capitest'.
Program terminated with signal 6, Aborted.
#0 0xc003d778 in stat64+0xc000ffd0 () from /usr/lib/dld.sl
(gdb) where
#0 0xc003d778 in stat64+0xc000ffd0 () from /usr/lib/dld.sl
warning: Attempting to unwind past bad PC 0xc003d778
#1 0xc003d394 in stat64+0xc000fbec () from /usr/lib/dld.sl
#2 0xc003d394 in stat64+0xc000fbec () from /usr/lib/dld.sl
#3 0xc003d394 in stat64+0xc000fbec () from /usr/lib/dld.sl
#4 0xc003d394 in stat64+0xc000fbec () from /usr/lib/dld.sl
Cannot access memory at address 0x2f757372


My conf:
% uname -a
HP-UX B.11.11 U 9000/800 109092009 unlimited-user license
% aCC -V
aCC: HP ANSI C++ B3910B A.03.57

After searching I found:

[broken link removed on <4/4/2017> by Mod

[broken link removed on <4/4/2017> by Mod

As per above thread, if i linked against libCsup then it should resolve the above core dump.

Though, any pointers/suggestion will be helpful.

Thanks,
Neel

2 REPLIES 2
Dennis Handly
Acclaimed Contributor
Solution

Re: /usr/lib/dld.sl: Unresolved symbol

>I got the following error: dld.sl: Unresolved symbol: __shlinit

You need to link with -lCsup. But if your shlib is in aC++, you should have lots more unsats.

Is this lib intended to be used as a plugin for C? If so, you need to read the directions:
http://docs.hp.com/en/11920/HP%20aC++%20Online%20Programmer's%20Guide/distributing.htm#linking

>if i linked against libCsup then it should resolve the above unsat.

Yes, but why do you have only one and none for iostream, etc? This implies you just about have no C++ constructs in your shlib??
Neel2
Regular Advisor

Re: /usr/lib/dld.sl: Unresolved symbol

Got resolved.