Operating System - Linux
1751817 Members
5595 Online
108782 Solutions
New Discussion юеВ

"Unresolved symbols" error

 
Bharath K
Occasional Advisor

"Unresolved symbols" error

Dear all,
I am getting the following "Unresolved symbols" error when I try to run the executable which has been built with aCC 3.60 on HP-UX 11.11.Also I have used -AA option when building my executable.libmaverick50 & libxerces-c2_1 are third party libraries which has been built on a aCC 3.13.
Can any one tell me if there is any link option or library to be included to solve this problem?
********** LOG *************************
/usr/lib/dld.sl: Unresolved symbol: cout (data) from /home/builder/tibco/tra/5.2/lib/libmaverick50.sl
/usr/lib/dld.sl: Unresolved symbol: openprot__7filebuf (data) from /home/builder/tibco/tar/5.2/lib/libmaverick50.s
l
/usr/lib/dld.sl: Unresolved symbol: cout (data) from /home/builder/tibco/tpcl/5.2/lib/libxerces-c2_1.sl
/usr/lib/dld.sl: Unresolved symbol: cerr (data) from /home/builder/tibco/tra/5.2/lib/libmaverick50.sl
/usr/lib/dld.sl: Unresolved symbol: basefield__3ios (data) from /home/builder/tibco/5.2/lib/libmaverick50.sl
Abort(coredump)
**********End of Log************************
14 REPLIES 14
Muthukumar_5
Honored Contributor

Re: "Unresolved symbols" error

Try to export SHLIB_PATH=/usr/lib and run the executable.

hth.
Easy to suggest when don't know about the problem!
Vibhor Kumar Agarwal
Esteemed Contributor

Re: "Unresolved symbols" error

And to

/home/builder/tibco/tpcl/5.2/lib
Vibhor Kumar Agarwal
Bharath K
Occasional Advisor

Re: "Unresolved symbols" error

Thanks Muthu and Agarwal for your immediate response.
The shlib path has been updated to point to /usr/lib and /home/builder/tibco/tpcl/5.2/lib
and other required libraries.
I am still facing the same errors.
regards,
-Bharath
Stephen Keane
Honored Contributor

Re: "Unresolved symbols" error

What happens if you run ldd against your executable?

# ldd your_exe

Muthukumar_5
Honored Contributor

Re: "Unresolved symbols" error

Check this,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=727237

Do you have patch PHS_22898 installed?

hth.
Easy to suggest when don't know about the problem!
Vibhor Kumar Agarwal
Esteemed Contributor

Re: "Unresolved symbols" error

If your system is 64 bit then i think you have to update your

LD_LIBRARY_PATH
Vibhor Kumar Agarwal
Bharath K
Occasional Advisor

Re: "Unresolved symbols" error

Hi Stephan,
On running ldd , I am able to see the list of all the libraries referred and their paths.The ldd is able to find the all the required libraries.

Thanks,
Bharath
Stephen Keane
Honored Contributor

Re: "Unresolved symbols" error

If ldd works OK, then your SHLIB_PATH is probably setup correctly. Do you have (in /usr/lib) libstream.sl, libC.sl, libC.ansi.sl ?
Vibhor Kumar Agarwal
Esteemed Contributor

Re: "Unresolved symbols" error

Cross-Check the patches on which the third party libraries had been built.
Vibhor Kumar Agarwal