Re: Java -V2 fails with unsats in libstream.sl (328 Views)
Reply
Occasional Visitor
Arun Saini_1
Posts: 3
Registered: ‎09-15-2004
Message 1 of 6 (328 Views)

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.
Please use plain text.
Esteemed Contributor
ranganath ramachandra
Posts: 375
Registered: ‎05-16-2003
Message 2 of 6 (328 Views)

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" ?
Please use plain text.
Occasional Visitor
Arun Saini_1
Posts: 3
Registered: ‎09-15-2004
Message 3 of 6 (328 Views)

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?
Please use plain text.
Esteemed Contributor
ranganath ramachandra
Posts: 375
Registered: ‎05-16-2003
Message 4 of 6 (328 Views)

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.
Please use plain text.
Esteemed Contributor
ranganath ramachandra
Posts: 375
Registered: ‎05-16-2003
Message 5 of 6 (328 Views)

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

confirmed, unfortunately.
Please use plain text.
Occasional Visitor
Arun Saini_1
Posts: 3
Registered: ‎09-15-2004
Message 6 of 6 (328 Views)

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.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation