PDA

View Full Version : rtsj fedora core 5



jsanza@terra.es
9th May 2006, 05:21 PM
Hello,

I am trying to use the last TimeSys RI on Fedora Core 5 (last kernel)

I think that process installation was right, using root user have no problem
Library is in correct place, LD_LIBRARY_PATH include it, etc..

I got the following problem:

error while loading shared libraries: libm.so.6: cannot open
shared object file: No such file or directory

what am i doing wrong?

The LD_LIBRARY_PATH include /lib and , /lib directory contains libm.so.6

I am using LD_ASSUME_KERNEL=2.4.1 ./tjvm

But , if unset LD_ASSUME_KERNEL , i get a problem with vwWaitMonitor ???


Any suggestions?
Thanks,

jsanza@terra.es
9th May 2006, 07:45 PM
Umm... more info ...
#### This is my system configuration ... some info which may be important ? ...
[root@darkstar bin]# uname -a
Linux darkstar 2.6.16-1.2111_FC5 #1 Thu May 4 21:16:58 EDT 2006 i686 athlon i386 GNU/Linux
[root@darkstar bin]# java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
[root@darkstar bin]# javac -version
javac 1.5.0_06
[root@darkstar lib]# ./libc-2.4.so
GNU C Library development release version 2.4, by Roland McGrath et al.
Compiled by GNU CC version 4.1.0 20060304 (Red Hat 4.1.0-2).
Compiled on a Linux 2.6.9 system on 2006-03-07.
Available extensions:
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
GNU libio by Per Bothner
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
Thread-local storage support included.
[root@darkstar lib]# gcc --version
gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
[root@darkstar bin]# gcj --version
gcj (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
# Ok, let's go ==> !!! No using LD_ASSUME_KERNEL=2.4.1 !!!
root@darkstar rtsj-ri]# ls -lrt
total 2780
-r--r--r-- 1 502 502 6402 Jun 22 2005 license
-rw-rw-r-- 1 502 502 490390 Jun 22 2005 tckSE.jar
-rw-rw-r-- 1 502 502 490143 Jun 22 2005 tckCVM.jar
-r--r--r-- 1 502 502 5975 Jun 22 2005 README
drwxrwxr-x 2 502 502 4096 Jun 22 2005 pthreadrt
drwxrwxr-x 3 502 502 4096 Jun 22 2005 lib
-r--r--r-- 1 502 502 1574 Jun 22 2005 copyright
-r--r--r-- 1 502 502 4463 Jun 22 2005 ConformanceDocument.html
-rw-rw-r-- 1 502 502 1805081 Jun 22 2005 btclasses.zip
drwxrwxr-x 2 502 502 4096 Jun 22 2005 bin
drwxr-xr-x 2 root root 4096 May 6 13:35 TCK
[root@darkstar bin]# pwd
/opt/timesys/rtsj-ri/bin
[root@darkstar bin]# ./tjvm
Unable to initialise vmWait semaphore. Aborting!
[root@darkstar bin]# strace ./tjvm
execve("./tjvm", ["./tjvm"], [/* 33 vars */]) = 0
brk(0) = 0xa07c000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=122916, ...}) = 0
mmap2(NULL, 122916, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efb000
close(3) = 0
open("/usr/lib/libpthreadrt.so", 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\22 0\r\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=35726, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efa000
mmap2(NULL, 9112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x97d000
mmap2(0x97f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x97f000
close(3) = 0
open("/lib/libm.so.6", 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`\2 3\246"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=199700, ...}) = 0
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0x299000
mmap2(0x29b000, 5888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x29b000
close(3) = 0
open("/lib/libdl.so.2", 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@\\ \250"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=16352, ...}) = 0
mmap2(0xa85000, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa85000
mmap2(0xa87000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xa87000
close(3) = 0
open("/lib/libc.so.6", 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\n\ 351\223"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1528292, ...}) = 0
mmap2(0x929000, 1254780, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x111000
mmap2(0x23d000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b) = 0x23d000
mmap2(0x241000, 9596, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x241000
close(3) = 0
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\0pJ\ 252\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=112236, ...}) = 0
mmap2(0xaa0000, 78268, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xaa0000
mmap2(0xab0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xab0000
mmap2(0xab2000, 4540, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xab2000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef9000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef8000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ef86b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xab0000, 4096, PROT_READ) = 0
mprotect(0x23d000, 12288, PROT_READ) = 0
mprotect(0xa87000, 4096, PROT_READ) = 0
mprotect(0x299000, 4096, PROT_READ) = 0
mprotect(0xa81000, 4096, PROT_READ) = 0
mprotect(0x97d000, 8192, PROT_READ|PROT_WRITE) = 0
mprotect(0x97d000, 8192, PROT_READ|PROT_EXEC) = 0
mprotect(0x925000, 4096, PROT_READ) = 0
munmap(0xb7efb000, 122916) = 0
set_tid_address(0xb7ef86f8) = 2224
rt_sigaction(SIGRTMIN, {0xaa4686, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xaa45c0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbfa17c90, 30, (nil), 0}) = 0
brk(0) = 0xa07c000
brk(0xa09d000) = 0xa09d000
syscall_434(0x1, 0xfffffffe, 0, 0x825dca0, 0x8271fe0, 0xbfa17e24, 0xffffffda, 0x7b, 0x7b, 0, 0x33, 0x1b2, 0x97e102, 0x73, 0x200282, 0xbfa17e1c, 0x7b, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = -1 (errno 38)
syscall_434(0x1, 0xfffffffe, 0, 0x8271fe0, 0x8271fe0, 0xbfa17e24, 0xffffffda, 0x7b, 0x7b, 0, 0x33, 0x1b2, 0x97e102, 0x73, 0x200282, 0xbfa17e1c, 0x7b, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = -1 (errno 38)
syscall_438(0x1, 0x825dca0, 0x1, 0xbfa17e58, 0x8271fe0, 0xbfa17e34, 0xffffffda, 0x7b, 0x7b, 0, 0x33, 0x1b6, 0x97e1bf, 0x73, 0x200297, 0xbfa17e2c, 0x7b, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = -1 (errno 38)
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f19000
write(1, "Unable to initialise vmWait sema"..., 49Unable to initialise vmWait semaphore. Aborting!
) = 49
exit_group(1) = ?
Process 2224 detached
[root@darkstar bin]# ltrace ./tjvm
__libc_start_main(0x80ed190, 1, 0xbfdbaa04, 0x80885bc, 0x80fc17c <unfinished ...>
__register_frame_info(0x826fbc0, 0x826ff74, 0xbfdba978, 0x80885cd, 0xa57ff4) = 0
malloc(16) = 0x84d7008
pthread_mutexattr_init(0xbfdba888, 0xa57ff4, 16, 0, 0xbfdba8a4) = 0
pthread_cond_init(0x8271ff8, 0, 0xa57ff4, 16, 0) = 0
__errno_location() = 0xb7f9d690
pthread_mutex_lock(0x825dca0, 0xa57ff4, 16, 0, 0) = 0
pthread_mutex_unlock(0x825dca0, 0xa57ff4, 16, 0, 0 <unfinished ...>
__errno_location() = 0xb7f9d690
__errno_location() = 0xb7f9d690
<... pthread_mutex_unlock resumed> ) = 38
printf("Unable to initialise vmWait sema"...Unable to initialise vmWait semaphore. Aborting!
) = 49
__deregister_frame_info(0x826fbc0, 0xbfdba8b8, 0x80fc195, 0x9266b8, 0x925fd8) = 0
+++ exited (status 1) +++
#### It Doesn't work ...
#### Ok, let's go using export LD_ASSUME_KERNEL=2.4.1 ... fedora/red-hat NPTL problem ???
#### (same using 2.4.0)
[root@darkstar bin]# export LD_ASSUME_KERNEL=2.4.1
[root@darkstar bin]# ./tjvm
./tjvm: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
#### But, i think something is wrong , because .... ::
[root@darkstar bin]# ls -lrt
ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
#### Ok, trying to use strace and ltrace to get more info ...
[root@darkstar bin]# strace ./tjvm
strace: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
#### Ummm, no way ... ltrace ??? ...
[root@darkstar bin]# ltrace ./tjvm
ltrace: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
#### puf, just the same ... and ... now ???
[root@darkstar bin]# unset LD_ASSUME_KERNEL
[root@darkstar bin]# whereis libm.so.6
libm.so: /lib/libm.so.6 /usr/lib/libm.so
[root@darkstar bin]# whereis librt.so.1
librt.so: /lib/librt.so.1 /usr/lib/librt.so

thank you

vocaro
24th May 2006, 12:12 AM
I am using LD_ASSUME_KERNEL=2.4.1 ./tjvm

My understanding is that this is not supported in Fedora Core 5 because LinuxThreads support has been removed. (LinuxThreads was deprecated in FC4.)

jsanza@terra.es
24th May 2006, 09:22 AM
Hello,

Thank you for your response ...

Then ... Can i use/exist another Linux distribution to test Timesys RI for Java?

If Timesys implementation doen't use NTPL ... do any Linux distribution can it works ?

can i i "include/add" deprecated Linux Thread libraries to make test ?

Thank you