Re: /usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library (482 Views)
Reply
Occasional Visitor
K. Pradeep Kumar
Posts: 2
Registered: ‎09-20-2006
Message 1 of 7 (482 Views)

/usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library

Hi

When we are trying to run the executable (PCRG_Srvr) it runs but unable perform some functionality containing the functions that we are getting while bringing up the server.

Some part of the error
-----------------------

/usr/lib/dld.sl: Unresolved symbol: IF_GetC12000Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT (plabel) from /opt/trims/prd/lib
/libRGlib.sl
/usr/lib/dld.sl: Unresolved symbol: IF_GetS016Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT (plabel) from /opt/trims/prd/lib/l
ibRGlib.sl
/usr/lib/dld.sl: Unresolved symbol: IF_CreateS654Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT (plabel) from /opt/trims/prd/li
b/libRGlib.sl
/usr/lib/dld.sl: Unresolved symbol: IF_CreateLCCB21__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT (plabel) from /opt/trims/prd/lib/
libRGlib.sl
/usr/lib/dld.sl: Unresolved symbol: IF_CreateLCCB22__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT (plabel) from /opt/trims/prd/lib/
libRGlib.sl

chatr PCRG_Srvr

chatr(error): dl_header_ext.size != sizeof(dl_header_ext). Please update your version of the chatr tool.
PCRG_Srvr:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic /usr/lib/libndbm.2
dynamic /usr/lib/libcl.2
dynamic /usr/lib/libm.2
dynamic /usr/lib/libstd.2
dynamic /usr/lib/libstream.2
dynamic /usr/lib/libCsup.2
dynamic /usr/lib/libc.2
dynamic /usr/lib/libdld.2
dynamic /usr/lib/libdcekt.1
dynamic /opt/perf/lib/libarm.1
dynamic /trimsbld/modbld/lib/libImgClient.sl
dynamic /trimsbld/modbld/lib/libRGlib.sl
dynamic /trimsbld/modbld/lib/libTIPS_Rmbstp.sl
dynamic /trimsbld/modbld/lib/libTIPS_Pro.sl
dynamic /trimsbld/modbld/lib/libTIPS_acctg.sl
dynamic /trimsbld/modbld/lib/libTIPS_Cust.sl
dynamic /ora9i/OraHome/lib32/libclntsh.sl.9.0
shared library binding:
immediate nonfatal
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
data page size: D (default)
instruction page size: D (default)


ldd of libRGlib.sl also show the same error. So I greped for the function in my code and found the functions in another
shared libraray libTIPS_IF.sl.

nm++ libTIPS_IF.sl | grep IF_GetC12000Hoff


DS$#trimsbld#modbld#obj#IF_GetC12000Hoff|1074833264|static|data |$DATA$
IF_GetC12000Hoff(IF_TMP_TXN_DATA *,char *,SYS_ERROR_STRUCT *)| 1013452|extern|entry |
IF_GetC12000Hoff(IF_TMP_TXN_DATA *,char *,SYS_ERROR_STRUCT *)| 1013532|extern|code |$CODE$
S$17$IF_GetC12000Hoff(IF_TMP_TXN_DATA *,char *,SYS_ERROR_STRUCT *)| 1128512|static|data |$LIT$
SD$#trimsbld#modbld#obj#IF_GetC12000Hoff|1074934544|static|data |$SHORTDATA$
static___soa_IF_GetC12000Hoff_c_|1074934816|static|data |$DATA$CDTORC1$

While doing ldd of the library getting the following error but I hope this is not an error as it comes for all shared libraries.
ldd libTIPS_IF.sl
/usr/lib/dld.sl: Unresolved symbol: symbol not found: __shlinit (libTIPS_IF.sl)



I checked SHLIB_PATH also it contains the required paths where the all the libraries lies.

File out out of the binaries and servers.

file PCRG_Srvr
PCRG_Srvr: PA-RISC1.1 shared executable dynamically linked -not stripped

file libRGlib.sl
libRGlib.sl: PA-RISC1.1 shared library -not stripped

file libTIPS_IF.sl
libTIPS_IF.sl: PA-RISC1.1 shared library -not stripped

Running it on a unix machie with following specification.
HP-UX uxhyd02 B.11.11 U 9000/800 172400551 unlimited-user license

compiler version

aCC: HP ANSI C++ B3910B A.03.50


But the same sorce code / binary is working on differnet machine. So as I think there is nothing wrong in the code or paths.

Can any one please suggest how to resolve the issue.

Thanks in advance
Honored Contributor
V. Nyga
Posts: 4,874
Registered: ‎09-20-2002
Message 2 of 7 (482 Views)

Re: /usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library

Hi,

check the patch level of this ws and one where the script is running well.
'swlist -l product|grep link'
You should use the newest patch of:
ld(1) and linker tools cumulative patch

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 3 of 7 (482 Views)

Re: /usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library

Hi Pradeep,

aCC: HP ANSI C++ B3910B A.03.50 is old. You should try upgrading to PHSS_33944. http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_33944&sel={hpux:11.11,}&BC=main|search|

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 4 of 7 (482 Views)

Re: /usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library

[ Edited ]

The version of the compiler shouldn't make a difference. You should use:

odump -slexport ibTIPS_IF.sl | grep IF_GetC12000Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT

To see if the symbol is exported.

__shlinit should be found in libCsup.2.
Have you tried "ldd PCRG_Srvr"?

Occasional Visitor
K. Pradeep Kumar
Posts: 2
Registered: ‎09-20-2006
Message 5 of 7 (482 Views)

Re: /usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library

Hi Nyga

The required details are .

swlist -l product|grep link
Networking B.11.11 HP-UX_Lanlink_Product
PHKL_27949 1.0 shm_lock scaling; shm_open-shm_unlink audit
PHKL_28185 1.0 Tunable;vxportal;vx_maxlink;DMAPI NFS hang
SNAplus2-Link R6.11.11.100 Supports communication over SDLC, QLLC, and LAN links

Please suggest which patch should we apply ?
And will the patch resolve the issue ?
Thanks for your reply.

Hi Arunvijai
Thanks for the suggestion. But the same version of aCC is there in our other machines where the code is working fine.



Hi Dennis

As per your suggestion we tried the ldump also and the output is like

odump -slexport libTIPS_IF.sl | grep IF_GetC12000Hoff
000000013 000000003 00000 0x000f76cc Code 000000,155 00 IF_GetC12000Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT
000000032 000000013 -0001 0x40001510 Plab 000000,155 00 IF_GetC12000Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT


And libCsup.2. already included in the shared library list of our binary as it is in the chatr output of the executable.

We had tried ldd PCRG_Srvr and in that also getting the same error.

/usr/lib/dld.sl: Unresolved symbol: symbol not found: IF_GetC12000Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT (/opt/tr
ims/prd/lib/libRGlib.sl)
/usr/lib/dld.sl: Unresolved symbol: symbol not found: IF_GetS016Hoff__FP15IF_TMP_TXN_DATAPcP16SYS_ERROR_STRUCT (/opt/tr
ims/prd/lib/libRGlib.sl)
Thanks for the reply.
Any suggestions?


Thanks to all.
Honored Contributor
V. Nyga
Posts: 4,874
Registered: ‎09-20-2002
Message 6 of 7 (482 Views)

Re: /usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library

Hi again,

I only have the Europian link:
http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=main|pdb|search|patchDetail{PHSS_22535,{hpux:11.11,}}|&patchid=PHSS_33037&sel={hpux:11.11,}
The patch is PHSS_33037.
Maybe if you change the 'www4' to 'www2' or 'www1' you come to the Asian site, else you have to search from 'patch database'.

Your executable looks for 32bit libraries, it seems to be an old exe, but I think it should run.

See also:
http://docs.hp.com/en/5966-9887/ch01s05.html

What's about the other maschine:
'But the same sorce code / binary is working on differnet machine. So as I think there is nothing wrong in the code or paths.'

Can you see any differences in patch level or OS? (HP-UX 10.20? 11.0?)

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 7 of 7 (482 Views)

Re: /usr/lib/dld.sl: Unresolved symbol -- (plabel) from -- a shared library

To find linker patches, you need grep -i. The latest 11.11 linker patch is PHSS_33037.

>We had tried ldd PCRG_Srvr and in that also getting the same error.

Try chatr PCRG_Srvr instead. Does it showlibTIPS_IF.sl?
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.