Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

compilation of xerces with -AA flag results in unresolved symbol __PureVirtualCalled

SOLVED
Go to Solution
Occasional Advisor

compilation of xerces with -AA flag results in unresolved symbol __PureVirtualCalled

Hello,

I had changed the CXXFLAGS of xerces to inlcude "-AA" and compiled the library succesfully.
But the output of "ldd libxerces-c.sl" shows unresolved symbols as follows
/usr/lib/dld.sl: Unresolved symbol: symbol not found: __PureVirtualCalled (libxerces-c.sl)
/usr/lib/dld.sl: Unresolved symbol: symbol not found: __dl__FPv (libxerc
es-c.sl)
/usr/lib/dld.sl: Unresolved symbol: symbol not found: __thread_mutex_unlock
(/usr/lib/libnsl.1)
/usr/lib/dld.sl: Unresolved symbol: symbol not found: free (/usr/lib/libnsl
.1)
/usr/lib/dld.sl: Unresolved symbol: symbol not found: abort (/usr/lib/libnsl
.1)
/usr/lib/dld.sl: Unresolved symbol: symbol not found: __errno (/usr/li
b/libpthread.1)
1 ACCEPTED SOLUTIONS
Highlighted
Honored Contributor Honored Contributor

Re: compilation of xerces with -AA flag results in unresolved symbol __PureVirtualCalled

AFAIK unresolved symbols on a shared library shouldn't be a problem, as long as executable that links libxerces.sl, also links libraries that contain missing symbols. When you compile with -AA you will need to link with /usr/lib/libstd_v2.sl and /usr/lib/libCsup_v2.sl (first two missing symbols are in these two libraries).
2 REPLIES
Highlighted
Honored Contributor Honored Contributor

Re: compilation of xerces with -AA flag results in unresolved symbol __PureVirtualCalled

AFAIK unresolved symbols on a shared library shouldn't be a problem, as long as executable that links libxerces.sl, also links libraries that contain missing symbols. When you compile with -AA you will need to link with /usr/lib/libstd_v2.sl and /usr/lib/libCsup_v2.sl (first two missing symbols are in these two libraries).
Occasional Advisor

Re: compilation of xerces with -AA flag results in unresolved symbol __PureVirtualCalled

Hello Ermin

Thanks for the reply. When an executable is linked with xerces.sl , it works fine, hence as said by you, these unresolved symbols might not be of concern.