Operating System - Linux
1753883 Members
7439 Online
108809 Solutions
New Discussion

Re: Unresolved symbol on HP-UX PA

 
SOLVED
Go to solution
Srikrishna Erra
Advisor

Unresolved symbol on HPUX-PA

Hi,

I wa testing a C Program which resulted in some unresolved symbols.

/usr/lib/dld.sl: Unresolved symbol: [Vtable]key:__dt__21__versioned_type_infoFv (data)

/usr/lib/dld.sl: Unresolved symbol: __shlinit (code)

i searched HP Site and i got that these symbols are available in libCsup.sl and linked with this libraray and i got following symbols.

aCC runtime: Error 215 from shl_findsym(/usr/lib/libicuiotd.sl.36,_shlInit)
/usr/lib/dld.sl: Unresolved symbol: do_ipfx__7istreamFi (code) from /usr/lib/libicuiotd.sl.36
/usr/lib/dld.sl: Unresolved symbol: __dt__13Iostream_initFv (code) from /usr/lib/libicuiotd.sl.36
/usr/lib/dld.sl: Unresolved symbol: __ct__13Iostream_initFv_1 (code) from /usr/lib/libicuiotd.sl.36
/usr/lib/dld.sl: Unresolved symbol: putback__7istreamFc (code) from /usr/lib/libicuiotd.sl.36

Then i thought these symbols from libstream.sl and i used this library and get it resolved.


Here, my Question is how to get rid of these symbols without explicit linking with libCsup and libstream libraries. because some my Application will not use libCsup library during linking and i cannot force them to link.


while searching for this, i got that some patch should be installed. please let me know what is the patch name to get rid of these symbols.

i tried installing following patch but of no use.
PHSS_35385 1.0 ld(1) and linker tools cumulative patch

My HPUX System is
HP-UX rs64hp1 B.11.11 U 9000/785 2010714802 unlimited-user license

Compiler is
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $
LINT B.11.11.08 CXREF B.11.11.08
HP92453-01 B.11.11.08 HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $

/usr/lib/dld.sl is
SMART_BIND
92453-07 dld dld dld.sl B.11.62 070917


Thanks

Regards
Srikrishna Erra
1 REPLY 1
Dennis Handly
Acclaimed Contributor
Solution

Re: Unresolved symbol on HP-UX PA

>I was testing a C Program which resulted in some unresolved symbols.

You have a aC++ application and you need those aC++ runtime libs. You have aC++ shlib, libicuiotd.sl.36, that you are linking into your executable. You either need to remove it or following the directions on linking aC++ shlibs into C applications:
http://www.docs.hp.com/en/7762/5991-4874/distributing.htm#linking

>let me know what is the patch name to get rid of these symbols.

There isn't. You must either relink your application or you must relink that aC++ shlib. Or provide another one that has libicuiotd.sl.36 and the aC++ runtime shlibs as dependencies.