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

Java -V2 fails with unsats in libstream.sl

Highlighted
Occasional Visitor

Java -V2 fails with unsats in libstream.sl

have a Java JNI application where the C++ shared libraries have been compiled with the -AA option.

When I use "java -V2" to invoke my program, it fails with undefined symbols in libstream.sl

/opt/java1.4/bin/java -V2 TestCSJC
aCC runtime: Error 215 from shl_findsym(/usr/lib/libstream.2,_shlInit)
/usr/lib/dld.sl: Unresolved symbol: typeid__XT9exception_ (data) from /usr/lib/libstream.2
/usr/lib/dld.sl: Unresolved symbol: __dt__9exceptionFv (code) from /usr/lib/libstream.2
Abort(coredump)

I have the following runtime library patch installed
PHSS_28880 HP aC++ -AA runtime libraries (aCC A.03.50)
and the following linker patch
PHSS_30966 ld(1) and linker tools cumulative patch

I want to execute it using the -V2 option since invoking it otherwise causes a crash with signal 11. I suspect this happens because the JVM uses libCsup.sl while my shared libraries are compiled with libCsup_v2.

Any help would be greatly appreciated.
5 REPLIES
Esteemed Contributor Esteemed Contributor

Re: Java -V2 fails with unsats in libstream.sl

hope you used aCC (and not ld) to link your c++ shared libraries. can you run ldd on them and confirm that it depends only on libCsup_v2 & libstd_v2 (and not libCsup/libstd) ?

your libraries may in turn have dependencies which are non "-AA" ?
Occasional Visitor

Re: Java -V2 fails with unsats in libstream.sl

Thanks for the response Ranga and sorry for being late to reply.

Yes. I have used aCC for linking.

I ran ldd on the shared libs and confirmed that they only use libCsup_v2 and libstd_v2.

However, these shared libraries in turn use other third party libraries that have not been built with -AA.

Is there no way out other than getting all vendors to provide -AA enabled libs?
Esteemed Contributor Esteemed Contributor

Re: Java -V2 fails with unsats in libstream.sl

> However, these shared libraries in turn use
> other third party libraries that have not
> been built with -AA.

i dont think you mean libCsup_v2 and libstd_v2 themselves.

there seems to be no other way out. i will confirm this later today after checking with the compiler folks.
Esteemed Contributor Esteemed Contributor

Re: Java -V2 fails with unsats in libstream.sl

confirmed, unfortunately.
Occasional Visitor

Re: Java -V2 fails with unsats in libstream.sl

Thanks for all your help Ranga... I think I would have to think of other options now.