Binaire incompatible ?

Pàgina inicial

Reply to this message
Autor: Yves Martin
Data:  
A: guilde
Assumpte: Binaire incompatible ?
Bonjour,

J'utilisais jusqu'à présent une veille version du Java SDK d'IBM 1.3.1 - SR10
(RPM livré par IBM) mais depuis la mise à jour à Mandriva 2007, j'obtiens
l'épouvantable message:

$ /opt/IBMJava2-131/bin/java -version
/opt/IBMJava2-131/jre/bin/exe/java: error while loading shared libraries:
libpthread.so.0: cannot open shared object file: No such file or directory

Je tente de trouver une mise à jour. La version ne semble plus disponible chez
IBM mais je trouve un RPM IBMJava2 sur RedHat network pour RH AS 2.1 mais ces
binaires ont le même problème.

En cherchant, je trouve que mon système contient beaucoup de "libpthread":
glibc-devel-2.4-7mdv2007.0: /usr/lib/libpthread.so
glibc-2.4-7mdv2007.0: /lib/i686/libpthread.so.0 -> libpthread-2.4.so
glibc-2.4-7mdv2007.0: /lib/libpthread.so.0 -> libpthread-2.4.so
mais les deux versions /lib et /lib/i686 sont différentes. Une raison ?
L'optimistation pour i686 ?

Pour en savoir plus, je fais un strace et je constate bizarrement qu'il trouve
la librairie, lit puis ferme avant d'échouer. Comment investiguer plus avant ?
Avez-vous une idée pour faire marcher ce binaire ?

Merci d'avance pour votre aide

[...]
open("/lib/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/i686/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 K\0\000"..., 512) = 512
close(3)                                = 0
open("/lib/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000J\0\000"..., 512) =
512
close(3)                                = 0
open("/usr/lib/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
[...]
open("/usr/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
writev(2, [{"/opt/IBMJava2-131/jre/bin/exe/ja"..., 34}, {": ", 2}, {"error while
loading shared libra"..., 36}, {": ", 2}, {"libpthread.so.0", 15}, {": ", 2},
{"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory",
25}, {"\n", 1}], 10/opt/IBMJava2-131/jre/bin/exe/java: error while loading
shared libraries: libpthread.so.0: cannot open shared object file: No such file
or directory
) = 149
exit_group(127)                         = ?



--
Yves Martin