Operating System - HP-UX
1834119 Members
2473 Online
110064 Solutions
New Discussion

Re: Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

 
David Bushell
New Member

Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

We have 2 servers, one running 11.00 and the other running 11i, and we're trying to run an executable on both boxes. We build the executable on each box and everything build/linked fine, but when we try to run the executable on the 11.00 box we get this error:

/usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_Start (data) from /usr/lib/libCsup.2
/usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_End (data) from /usr/lib/libCsup.2
/usr/lib/dld.sl: Unresolved symbol: __StaticCtorTable_Start (data) from /usr/lib/libCsup.2
/usr/lib/dld.sl: Unresolved symbol: __StaticCtorTable_End (data) from /usr/lib/libCsup.2

[4] + Abort(coredump) iclserver -l &

I searched for these symbols on both boxes and this is what I came up with:

11.00 box
nm /usr/lib/libCsup.2 | grep -i StaticCtor
__StaticCtorTable_End| |undef |data |
__StaticCtorTable_End|1073755576|static|data |$DATA$CDTORCEND$
__StaticCtorTable_Start| |undef |data |
__StaticCtorTable_Start|1073755304|static|data |$DATA$CDTORC1$
__ZStaticCtorTable_End| |undef |data |
__ZStaticCtorTable_Start| |undef |data |

11i box
nm /usr/lib/libCsup.2 | grep -i StaticCtor
__StaticCtorTable_End| 102672|extern|data |$CODE$
__StaticCtorTable_End|1073756120|static|data |$DATA$CDTORCEND$
__StaticCtorTable_Start| 102672|extern|data |$CODE$
__StaticCtorTable_Start|1073755840|static|data |$DATA$CDTORC1$
__ZStaticCtorTable_End| 102672|extern|data |$CODE$
__ZStaticCtorTable_Start| 102672|extern|data |$CODE$

So I guess these symbols aren't defined on the 11.00 box? How to I go about fixing this? Thanks
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

I assume that you compiled on 11.11 and are trying to run on 11.0. The code is designed to be upwardly compatible but not downwardly. In a few cases, it will work but those are the exceptions.
If it ain't broke, I can fix that.
David Bushell
New Member

Re: Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

I actually compiled/linked the program seperately on each box without a problem, it's just when I try to run the executable the problem arises.
A. Clay Stephenson
Acclaimed Contributor

Re: Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

Add libCsup_v2.sl to your 11.0 link.

Let me give you a technique to help you hunt these guys:

Gather all the symbols in 1 file; e.g:
cd /usr/lib

nm *.sl > /var/tmp/symlist

vi /var/tmp/symlist
Now Search for your symbols:
/ZStatic
When you find a match do a reverse search
?Symbols from
to display the library
If it ain't broke, I can fix that.
David Bushell
New Member

Re: Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

I appreciate your help. I did an nm libCsup_v2.sl | grep StaticCtor and it came up with the same results as the libCsup.sl, server symbols are still listed as "undef".
ranganath ramachandra
Esteemed Contributor

Re: Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

the first step is to check that you have the absolute latest c++ runtime patches installed. check at http://ww.hp.com/go/c++ (the "latest versions and patches" link)
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Cheryl Griffin
Honored Contributor

Re: Unresolved Symbol __ZStaticCtorTable_Start from /usr/lib/libCsup.2

Is PHSS_26945 (superseded by PHSS_32574) installed on the 11.00 machine?
"Downtime is a Crime."