Gordon Chamberlin wrote:
> 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).
>
Thanks! I rebuilt the shared library on the RH5.1 system and it worked, but
now I have another problem. My Java programcrashes in the native code on a
line like this:
cout << "TESTING!!! " << endl;
I am using g++ 2.7.2 on RH5.1, not the egcs compiler on RH5.1. It works fine
if I use the egcs compiler, but not with the 2.7.2 version of g++.
Does anyone know why something as simple as the above line would crash using
a different compiler?
stow98:schizo(~/JSAF/src/SAF)> ldd ./libsaf.so
libXm.so.2 => /usr/X11R6/lib/libXm.so.2 (0x4321c000)
libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x433a6000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x433ad000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x433f0000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x433ff000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4340a000)
libc.so.6 => /lib/libc.so.6 (0x434a1000)
libg++.so.2.7.2 => /usr/lib/libg++.so.2.7.2 (0x43545000)
libstdc++.so.2.7.2 => /usr/lib/libstdc++.so.2.7.2 (0x43579000)
libm.so.6 => /lib/libm.so.6 (0x435b3000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x435cc000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x435d4000)
Program received signal SIGSEGV, Segmentation fault.
0x4022d436 in _IO_file_overflow (f=0x40284788, ch=10) at fileops.c:362
fileops.c:362: No such file or directory.
(gdb)
(gdb) where
#0 0x4022d436 in _IO_file_overflow (f=0x40284788, ch=10) at
fileops.c:362
#1 0x4022dc80 in __overflow (f=0x40284788, ch=10) at genops.c:162
#2 0x447aca4c in endl () at iostream.cc:508
#3 0x447aa85c in ostream::operator<< () at iostream.cc:902
#4 0x419c1521 in main_init__FiPPc (argc=1, argv=0x81f8470) at
main.c:887
#5 0x419c2fa2 in Java_Jsaf_initSAF (env=0x40072b74, jobj=0x3,
jobjarray=0x4) at main.c:2032
#6 0x40062333 in push_env ()
#7 0x4003b773 in invokeJNINativeMethod ()
#8 0x4003bddf in invokeLazyNativeMethod ()
#9 0x400684d9 in L$cs_callmethod6 ()
#10 0x4065a068 in ?? ()
#11 0x2 in ?? ()
#12 0x8 in ?? ()
-Wendy
[EMAIL PROTECTED]