- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: JNI and -AA
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 10:09 AM
07-31-2007 10:09 AM
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/JNI_java2.html
It builds fine and runs fine.
But when I add -AA to my compile line, I get this error.
error: java.lang.UnsatisfiedLinkError: libaCCImpl.sl: Unresolved external
Here are my build lines:
aCC -AA +DA2.0W +z +u4 -c -D_HPUX -D_POSIX_C_SOURCE=199506L -I${JAVA_HOME}/include -I${JAVA_HOME}/include/hp-ux aCCImpl.cpp
aCC +DA2.0W -b -o libaCCImpl.sl aCCImpl.o -lstd -lstream -lCsup -lm
Can someone tell me how to resolve this problem?
uname -a
HP-UX hp11i B.11.11 U 9000/800 524736557 unlimited-user license
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 11:40 PM
07-31-2007 11:40 PM
Re: JNI and -AA
http://www.docs.hp.com/en/7762/5991-4874/distributing.htm#linking
And for -AA: -lstd_v2 -lCsup_v2 -lm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2007 05:59 AM
08-01-2007 05:59 AM
Re: JNI and -AA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2007 10:30 AM
08-01-2007 10:30 AM
Re: JNI and -AA
You can't mix -AA and -AP. So if you have one lib with -AA, all libs have to be built that way.
While you don't need to add -lstd_v2 -lCsup_v2 to all shlibs, it may not be worthwhile trying to optimize that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2007 03:45 AM
08-10-2007 03:45 AM
Re: JNI and -AA
In the JNI page, I see this:
On Itanium, create the shared library using:
$ aCC -b -o libaCCImpl.so aCCImpl.o \
-lstd_v2 -lCsup -lunwind -lm
On Itanium, -lstd_v2 is necessary, otherwise, running the program will result in UnsatisfiedLinkErrors.
Is this for -AP or -AA? Do we need to use -lCsup_v2 or -AA? Can you mix v2 and non-v2 libraries? Are they compatible?
Thank you for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2007 06:32 AM
08-10-2007 06:32 AM
Re: JNI and -AA
This is correct.
>Is this for -AP or -AA? Do we need to use -lCsup_v2 or -AA? Can you mix v2 and non-v2 libraries?
Yes, -AA. There no such thing as -lCsup_v2.
No, you can't mix -AA with -AP.
Read the appropriate web page:
http://docs.hp.com/en/10946/distributing.htm#linking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2007 07:11 AM
08-10-2007 07:11 AM
Re: JNI and -AA
I understand we cannot fix -AA and -AP. I was wondering if I can mix like -lstd_v2 and -lCsup. Can you do that on the HP risk machine? Our C++ only application seem to work when we compile with -AA and link in -lstd -lstream -lCsup, so we were wondering if we should be using _v2 libraries, or it is ok to use non-v2 libraries.
Thank you very much for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2007 08:19 AM
08-10-2007 08:19 AM
Re: JNI and -AA
(Then why ask about it below? ;-)
>I was wondering if I can mix like -lstd_v2 and -lCsup.
If you read that link, that's what it says. You are NOT mixing. libCsup is -AA/-AP neutral.
>Can you do that on PA-RISC?
No, we were not smart enough to get it right a decade ago. :-(
>Our C++ only application seem to work when we compile with -AA and link in -lstd -lstream -lCsup,
No, you are mixing -AP and -AA and that's not supported.
>so we were wondering if we should be using _v2 libraries, or it is ok to use non-v2 libraries.
Don't make assumptions based on _v2. The libs are -AA or -AP. With the contents listed on the appropriate web pages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2007 09:08 AM
08-10-2007 09:08 AM
Re: JNI and -AA
I was wondering about PA-RISC. Sorry for a confusion. The libCsup_v2 exists on PA-RISC, but not Itanium, right?
>libCsup is -AA/-AP neutral.
I see. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2007 09:37 AM
08-10-2007 09:37 AM
Re: JNI and -AA
Yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2007 09:25 PM
08-10-2007 09:25 PM
Solutionhttp://forums1.itrc.hp.com/service/forums/helptips.do?#33