1833016 Members
2722 Online
110048 Solutions
New Discussion

Unresolved symbols

 
Joe Rolfes
New Member

Unresolved symbols

Hi,
We are moving a very large custom application from a V class machine to an R class machine, both running HP-UX B11.11. When I execute programs that use shared libraries, I get the following unresolved symbol errors:

/usr/lib/dld.sl: Unresolved symbol: AZCR002 (code) from /t5ambuild/host/arch/runtime/lib/libazfr002.sl
/usr/lib/dld.sl: Unresolved module for symbol: pWindowsInDLLs (data) from /t5ambuild/host/host/runtime/lib/libCUFR001.sl
/usr/lib/dld.sl: Unresolved symbol: CUCR001 (code) from /t5ambuild/host/host/runtime/lib/libCUFR001.sl

I???ve checked my $SHLIB_PATH and verified that the path to those libraries are included. When I do a nm on the first library mentioned, I see two entries for the symbol:

AZCR002 | -4|uext |stub |
AZCR002 | |undef |code |

Can anyone provide some direction on what to try next?
Thanks
Joe
6 REPLIES 6
Adam J Markiewicz
Trusted Contributor

Re: Unresolved symbols

Hi

Just out of curiocity I would check existance of these symbols on the previous machine.
Either you'll not find it and it will mean that you really have different libraries (versions?) on these machines, or you'll find it and then you can try to find the library which defines it on that machine. Thus you'll find library that differs on both machines, causing the trouble.

Good luck
Adam
I do everything perfectly, except from my mistakes
Cheryl Griffin
Honored Contributor

Re: Unresolved symbols

Joe,
This means that the code was compiled with shared libraries that are missing or out of sync on the target. Specifically /t5ambuild/host/arch/runtime/lib/libazfr002.sl and /t5ambuild/host/host/runtime/lib/libCUFR001.sl

Are they the same version on each machine?
chatr may help you.
# chatr program_name
"Downtime is a Crime."
Massimo Bianchi
Honored Contributor

Re: Unresolved symbols

Hi,
is SHLIB_PATH enabled for that executable ?

You can check it with the command chatr and enable it.

HTH,
Massimo
Elena Leontieva
Esteemed Contributor

Re: Unresolved symbols

Joe,

Try to compare the files on each system using the following commands and see if there is a diference:
what /usr/lib/libc.sl
cksum /usr/lib/libc.sl
Then try nm libc.sl |grep AZRCR002 and see if the symbolis there.
Zeev Schultz
Honored Contributor

Re: Unresolved symbols

Just like Cheryl said - it looks that
AZCR002 is undef(ined) somewhere.I'd try
for example NFS mounting the previous library
directory on R-class.Also would check for patching issues,but this usually happens with
system (like kernel) builds.

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Joe Rolfes
New Member

Re: Unresolved symbols

WOW! Thanks for all of the quick responses (this was my first time posting a question on a forum).
I'm tracking down Elena's suggestion... it looks like there is a difference in libc.sl between the two machines. Our new machine has an older verison of this library.
what libc.sl from old machine:
$ PATCH_11.11/PHCO_27740 Nov 14 2002 14:46:39 $
what libc.sl from new machine:
$ B.11.11_LR Oct 27 2000 00:49:39 $
I am going to have the system administrator make sure that we are current on patches.