Hi,

I dont want to spam; but I am desperate: I am trying to use an alien
toolchain with sbrsh. This is the original error:

[sbox-target: /bin] >sbrsh
/bin/sh: can't load library '/scratchbox/tools/lib/libsb.so.0'
[sbox-target: /bin] >sbrsh ls
/bin/sh: can't load library '/scratchbox/tools/lib/libsb.so.0'


[sbox-target: ~] >cd ~
[sbox-target: ~] >gcc hello.c -o output
[sbox-target: ~] >chmod a+x output
[sbox-target: ~] >./output
bash: ./output: cannot execute binary file


Here are new symptoms:

- When I run misc_runner with one parameter(parameter does not change
anything, it can be a non-sense command), I get the sh on the target
sandbox.. In the shell I can run mipsel executables:

[sbox-target: ~] >misc_runner anything_you_type
$ ./output
hello world
$ exit
exit
[sbox-target: ~] >

- When I run misc_runner by two parameters second one actually runs:

[sbox-target: ~] >misc_runner anything_you_type ./output
hello world
[sbox-target: ~] >


- when I try strace

[sbox-target: ~] > strace ./output
hello world


[sbox-target: ~] > strace strace ./output
execve("./output", ["./output"], [/* 63 vars */]) = 0
svr4_syscall()                          = -1 ERRNO_4090 (Unknown error 4090)
stat("etc/ld.so.cache", 0x7fb1ce48)     = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=429048, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2aaaf000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\260\271"..., 4096)
= 4096
old_mmap(NULL, 405504, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2aab0000
old_mmap(0x2aab0000, 379828, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0x2aab0000
old_mmap(0x2ab0d000, 4592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x5d000) = 0x2ab0d000
old_mmap(0x2ab0f000, 16024, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab0f000
close(3)                                = 0
munmap(0x2aaaf000, 4096)                = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
write(1, "hello world\n", 12hello world
)           = 12
exit(0)                                 = ?
Process 422 detached



- When I try sbrsh with strace:

[sbox-target: ~] > sbrsh strace /home/levent/output
execve("/home/levent/output", ["/home/levent/output"], [/* 44 vars */]) = 0
svr4_syscall()                          = -1 ERRNO_4090 (Unknown error 4090)
stat("etc/ld.so.cache", 0x7f8492b8)     = -1 ENOENT (No such file or
directory)
open("/scratchbox/tools/lib/libsb.so.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/libsb.so.0", O_RDONLY)       = -1 ENOENT (No such file or
directory)
open("/usr/lib/libsb.so.0", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/libsb.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/X11R6/lib/libsb.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libsb.so.0", O_RDONLY)       = -1 ENOENT (No such file or
directory)
open("lib/libsb.so.0", O_RDONLY)        = -1 ENOENT (No such file or
directory)
open("usr/lib/libsb.so.0", O_RDONLY)    = -1 ENOENT (No such file or
directory)
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2aaaf000
write(2, "", 0)                         = 0
write(2, "/home/levent/output", 19/home/levent/output)     = 19
write(2, ": can\'t load library \'", 22: can't load library ') = 22
write(2, "/scratchbox/tools/lib/libsb.so.0",
32/scratchbox/tools/lib/libsb.so.0) = 32
write(2, "\'\n", 2'
)                     = 2
munmap(0x2aaaf000, 4096)                = 0
exit(15)                                = ?
Process 417 detached


I could not make much sense out of these. I tried running arm with qemu:
works perfectly. I would appreciate any help.

Thanks,
Levent
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to