Wendy Richardson wrote:
>
> Hi,
>
> I am trying to run a Java application on RH5.1 with a glibc version of
> jre1.1.6v5. My Java app uses JNI and X/Motif in the native part (legacy
> code).
> I get the following error:
>
> jre Jsaf
> libc.so.5: cannot open shared object file: No such file or directory
> (libfoo.so)
> Class not found: Jsaf
>
> My CLASSPATH and LD_LIBRARY_PATH environment variables are set
> correctly.
>
> RH5.1 contains ld.so.1.9.5
> rpm -qa | grep ld.so
> ld.so-1.9.5-6
>
> On a RH4.2 machine, I had to upgrade ld.so to 1.9.8 in order for this
> Java app to run. That works fine.
> I also tried upgrading ld.so on another RH4.2 machine to 1.9.9 and that
> did NOT let me run my Java app, it had to be 1.9.8.
>
> Does anyone have any suggestions for what might be wrong with my
> configuration on RH5.1? I wasn't able to find a newer version
> of ld for RH5.1.
>
> Is it ok to use a shared object file (*.so) that was built on RH4.2 on a
> RH5.1 machine with Java & JNI?
>
> Thanks for your help.
>
> -Wendy
>
> Wendy Richardson
> [EMAIL PROTECTED]
At the risk of sounding ignorant, or stating the obvious, I'd say the
problem is with the shared library. It was compiled against libc5.
When you try to run it on RH5.1, the shared library cannot find libc5.
You should do one of two things:
1) install libc5 on the RH5.1 system
or
2) recompile the shared library on the RH5.1 system so that it
links correctly against libc6 (aka glibc).
I'd go for option 2 myself.
-Gordon
--
Gordon Chamberlin
Visualize, Inc. http://www.visualizetech.com
(602) 861-0999 ext. 14 [EMAIL PROTECTED]