[devel] сборка java пакета

Timur Aitov timonbl4 на altlinux.org
Чт Фев 3 10:34:49 UTC 2011


Здравствуйте, помогите пожалуста разобраться с одной проблемой.
Наткнулся при сборке java пакета на следующее:
$ hsh --initroot
$ hsh-install java-1.6.0-openjdk strace
$ hsh-shell

$ java
java: error while loading shared libraries: libjli.so: cannot open 
shared object file: No such file or directory
$ strace -fF -o log java
$ cat log
...
1279  open("tls/x86_64/libjli.so", O_RDONLY) = -2
1279  open("tls/libjli.so", O_RDONLY)   = -2
1279  open("x86_64/libjli.so", O_RDONLY) = -2
1279  open("libjli.so", O_RDONLY)       = -2
1279  open("/lib64/tls/x86_64/libjli.so", O_RDONLY) = -2
1279  stat("/lib64/tls/x86_64", 0x7fff290dba20) = -1 ENOENT (No such 
file or directory)
1279  open("/lib64/tls/libjli.so", O_RDONLY) = -2
1279  stat("/lib64/tls", 0x7fff290dba20) = -1 ENOENT (No such file or 
directory)
1279  open("/lib64/x86_64/libjli.so", O_RDONLY) = -2
1279  stat("/lib64/x86_64", 0x7fff290dba20) = -1 ENOENT (No such file or 
directory)
1279  open("/lib64/libjli.so", O_RDONLY) = -2
1279  stat("/lib64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1279  open("/usr/lib64/tls/x86_64/libjli.so", O_RDONLY) = -2
1279  stat("/usr/lib64/tls/x86_64", 0x7fff290dba20) = -1 ENOENT (No such 
file or directory)
1279  open("/usr/lib64/tls/libjli.so", O_RDONLY) = -2
1279  stat("/usr/lib64/tls", 0x7fff290dba20) = -1 ENOENT (No such file 
or directory)
1279  open("/usr/lib64/x86_64/libjli.so", O_RDONLY) = -2
1279  stat("/usr/lib64/x86_64", 0x7fff290dba20) = -1 ENOENT (No such 
file or directory)
1279  open("/usr/lib64/libjli.so", O_RDONLY) = -2
1279  stat("/usr/lib64", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
1279  writev(2, [{"java", 4}, {": ", 2}, {"error while loading shared 
libra"..., 36}, {": ", 2}, {"libjli.so", 9}, {": ", 2}, {"cannot open 
shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, 
{"\n", 1}], 10) = 113


в тоже время в рабочей системе пути поиска данной библиотеки такие:
11197 
open("/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/../lib/amd64/jli/libjli.so", 
O_RDONLY) = 3


Подробная информация о списке рассылки Devel