Operating System - HP-UX
1834809 Members
2859 Online
110070 Solutions
New Discussion

Re: HP-UX Bundles and Patches

 
S Sivakumar
New Member

HP-UX Bundles and Patches

I have an application in java which makes use of C++ calls (JNI). It runs fine in the dev environment but not in the test environment and fails with the error unsatisfied link error for the required shared library.

The bundles and the patches in between the machines related to C and C++ do not match each other. Of course, they mathc each other related to java environment. I am trying to sync up the bundles and patches in between the machines for the C and C++ env. But will this solve my problem? Anybody who have already faced this scenario and rectified. please help.
But above this i also doubt about the dependancy of the code with respect to cfront and C++ compiler as well.
2 REPLIES 2
ramesh_6
Frequent Advisor

Re: HP-UX Bundles and Patches

Hi Siva,
I have'nt faced a problem like this but i can give some inputs relatd to Operating system patches for HP-UX. Mostly these problems arise because of latest patches not being loaded in the system. HP relases patch bundles for all UX versions every three months. Individual patches are also available in the www.itresourcecenter.com web site. It is avery nice and good idea to keep the server with the latest patch bundles. Once i faced a hardware patch problem causing the C compiler to throw errors. I am not able to find out the relation between them but once patched that hardware problem C compiler started functioning well.

One more place you can check for a solution to your developers portion of www.hp.com which gives lot of inputs on development tools like compilers, assemblers etc..

Also the http://docs.hp.com site is also of good use if you browse by topic, there are lot of manuals for compilers and similar development areas.

Hope you find some fix for your problem and best of luck

Ramesh
Adityavikram
Occasional Contributor

Re: HP-UX Bundles and Patches

Hi,

I am facing a typical problem with JNI code on HP UX 10.20 First of all I installed RW with shared library options. And then I compile the native code using the following syntax -
aCC -v +time -DRW_NO_BOOL +DAportable -I/opt/java/include/ -I/opt/java/include/hp-ux/ -c +z HelloWorldImp.c -b -o libhello.sl
Now when I invoke the java program it bombs - saying cannot find class hello...

But if I had to do
aCC -v +time -DRW_NO_BOOL +DAportable -I/opt/java/include/ -I/opt/java/include/hp-ux/ -c +z HelloWorldImp.c and then link on my own using ld -b -o libhello.sl HelloWorldImpl.sl , then it works fine. I would like to know why is this happening. Am I to set some environment variable ? Please help