Operating System - HP-UX
1833780 Members
2572 Online
110063 Solutions
New Discussion

Re: Unresolved symbol: _ZNSs4_Rep11_S_max_sizeE

 
sunil_7
Occasional Advisor

Unresolved symbol: _ZNSs4_Rep11_S_max_sizeE

The scenario is like this I have shared library export.sl by using
another shared library libsangam.sl. Now i open my framemaker (which is like
msword) and then I save the file using this export.sl as pluggin. Means
Framemaker calls this export.sl to save the file to some particular format. I have given LD_LIBRARY_PATH AND SHLIB_PATH in profile file
When i do it, I get the following errors.:::

/usr/lib/dld.sl: Unresolved symbol: _ZNSs4_Rep11_S_max_sizeE (data) from
/home/manju/FiltersDepot/smexport/Source/OBJafterg++/./libsangam.sl
/usr/lib/dld.sl: Unresolved symbol:
_ZNSt24__default_alloc_templateILb1ELi0EE22_S_node_allocator_lockE (data)
from /home/manju/FiltersDepot/smexport/Source/OBJafterg++/./libsangam.sl
/usr/lib/dld.sl: Unresolved symbol: _ZTIPKc (data) from
/home/manju/FiltersDepot/smexport/Source/OBJafterg++/./libsangam.sl
/usr/lib/dld.sl: Unresolved symbol: _ZNSt7codecvtIcc9mbstate_tE2idE (data)
from /home/manju/FiltersDepot/smexport/Source/OBJafterg++/./libsangam.sl
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: Unresolved symbol: _ZNSs4_Rep11_S_max_sizeE

This is tough to troubleshoot. Either your SHLIB_PATH is not picking up all the required libraries or your libsangam.sl itself is looking for some dependent libraries.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Santosh Nair_1
Honored Contributor

Re: Unresolved symbol: _ZNSs4_Rep11_S_max_sizeE

Also, you can use the nm utility to find out if the library libsangam.sl has the missing symbols/functions. From the information given, it looks like the libsangam library has dependancies on another library which is not loaded...but that's just a guess.

-Santosh
Life is what's happening while you're busy making other plans
Wodisch
Honored Contributor

Re: Unresolved symbol: _ZNSs4_Rep11_S_max_sizeE

Hello Sunil,

did you compile your shared library with the C++/g++
compiler? And your framemaker was probably compiled
with the aCC compiler? Then the name mangling is
different and is expected to be more portable with GNU
C++ 3.0, but you would have used .29x, perhaps?

Just my ?0.02,
Wodisch
sunil_7
Occasional Advisor

Re: Unresolved symbol: _ZNSs4_Rep11_S_max_sizeE

Mr. Wodish,

Could u elaborate on what u said. The framemaker is made on 10.2 and they have used CC for it, but i am compiling my code with g++ on 11.0