Hi

Now I tried to make "yes" work without the redhat base. I uninstalled
redhat_base, partial-redhat_base and partial-partial-redhat_base (??).
Then ldd yes on the Linux system shows these libraries:
[EMAIL PROTECTED] ~ $ ldd `which yes`
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0xb7e79000)
        /lib/ld-linux.so.2 (0xb7fa7000)

I copied the following files to /emul/linux/... :
/lib/ld-linux.so.2
/lib/libc.so.6
/lib/ld-2.4.so
/lib/libc-2.4.so
/etc/ld.so.cache
/etc/ld.so.conf

Now when I run ./yes (which I copied too), I get Bad system call (core dumped)
and the following trace:

 16287 ktrace   RET   ktrace 0
 16287 ktrace   CALL  execve(0xcf7cc963,0xcf7cc7f0,0xcf7cc7f8)
 16287 ktrace   NAMI  "./yes"
 16287 ktrace   NAMI  "/emul/svr4/lib/ld-linux.so.2"
 16287 ktrace   NAMI  "/emul/linux/lib/ld-linux.so.2"
 16287 ktrace   NAMI  "/emul/linux"
 16287 yes      NAMI  "/emul/linux/lib/ld-linux.so.2"
 16287 yes      EMUL  "linux"
 16287 yes      RET   oldolduname 0
 16287 yes      CALL  brk(0)
 16287 yes      RET   brk 134529024/0x804c000
 16287 yes      CALL  uname(0xcf7f1488)
 16287 yes      RET   uname 0
 16287 yes      CALL  access(0x50578de5,0x4)
 16287 yes      NAMI  "/emul/linux/etc/ld.so.preload"
 16287 yes      NAMI  "/etc/ld.so.preload"
 16287 yes      RET   access -1 errno 2 No such file or directory
 16287 yes      CALL  open(0xcf7f0db0,0,0)
 16287 yes      NAMI  "/emul/linux/usr/local/geda/lib/tls/libc.so.6"
 16287 yes      NAMI  "/usr/local/geda/lib/tls/libc.so.6"
 16287 yes      RET   open -1 errno 2 No such file or directory
 16287 yes      CALL  open(0xcf7f0db0,0,0)
 16287 yes      NAMI  "/emul/linux/usr/local/geda/lib/libc.so.6"
 16287 yes      NAMI  "/usr/local/geda/lib/libc.so.6"
 16287 yes      RET   open -1 errno 2 No such file or directory
 16287 yes      CALL  open(0xcf7f0db0,0,0)
 16287 yes      NAMI  "tls/libc.so.6"
 16287 yes      RET   open -1 errno 2 No such file or directory
 16287 yes      CALL  open(0xcf7f0db0,0,0)
 16287 yes      NAMI  "libc.so.6"
 16287 yes      RET   open -1 errno 2 No such file or directory
 16287 yes      CALL  open(0x505790d1,0,0)
 16287 yes      NAMI  "/emul/linux/etc/ld.so.cache"
 16287 yes      NAMI  "/emul/linux"
 16287 yes      NAMI  "/emul/linux/etc/ld.so.cache"
 16287 yes      RET   open 3
 16287 yes      CALL  fstat64(0x3,0xcf7f0d80)
 16287 yes      RET   fstat64 0
 16287 yes      CALL  mmap2(0,0x150c2,0x1,0x2,0x3,0)
 16287 yes      RET   mmap2 1259569152/0x4b138000
 16287 yes      CALL  close(0x3)
 16287 yes      RET   close 0
 16287 yes      CALL  open(0x4b14a79d,0,0)
 16287 yes      NAMI  "/emul/linux/lib/libc.so.6"
 16287 yes      NAMI  "/emul/linux"
 16287 yes      NAMI  "/emul/linux/lib/libc.so.6"
 16287 yes      RET   open 3
 16287 yes      CALL  read(0x3,0xcf7f0ee4,0x200)
 16287 yes      GIO   fd 3 read 512 bytes
       "\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0\M^JY\^A\0004\0\0\
        [EMAIL PROTECTED] \0\v\0(\0>\0=\0\^F\0\0\0004\0\0\0004\0\0\
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]@\M^D\^P\0\^S\0\0\0\^S\0\0\0\^D\0\0\0\^A\0\0\0\^A\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\M-<\M-y\^P\0\M-<\M-y\^P\0\^E\0\0\0\0\^P\0\0\
        \^A\0\0\0\M-\\M^?\^P\0\M-\\^O\^Q\0\M-\\^O\^Q\0\240)\0\0\240U\0\0\^F\0\
        \0\0\0\^P\0\0\^B\0\0\0\\\^]\^Q\0\\-\^Q\0\\-\^Q\0\M-p\0\0\0\M-p\0\0\0\
        \^F\0\0\0\^D\0\0\0\^D\0\0\0\M^T\^A\0\0\M^T\^A\0\0\M^T\^A\0\0 \0\0\0 \0\
        \0\0\^D\0\0\0\^D\0\0\0\a\0\0\0\M-\\M^?\^P\0\M-\\^O\^Q\0\M-\\^O\^Q\0\b\
        \0\0\0(\0\0\0\^D\0\0\0\^D\0\0\0P\M-etd\M-T\M^D\^P\0\M-T\M^D\^P\0\M-T\
        \M^D\^P\0\M^L\^V\0\0\M^L\^V\0\0\^D\0\0\0\^D\0\0\0Q\M-etd\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\^F\0\0\0\^D\0\0\0R\M-etd\M-d\M^?\^P\0\M-d\
        \^O\^Q\0\M-\\^O\^Q\0\^P \0\0\^P \0\0\^D\0\0\0 [EMAIL PROTECTED]
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0(\0\0\^D\0\0\0\^D\0\0\0\^P\0\0\0\
        \^A\0\0\0GNU\0\0\0\0\0\^B\0\0\0\^F\0\0\0        \0\0\0\M^?\^C\0\0\M-5\
        \b\0\0\^P\^A\0\0\M-A\^F\0\0k\^B\0\0\M-[\0\0\0.\a\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\M-0\^F\0\0\f\^F\0\0\0\0\0\0l\b\0\0\M-:\^F\0\0'\^B\0\0\
        \M->\^B\0\0\M^A\b\0\0"
 16287 yes      RET   read 512/0x200
 16287 yes      CALL  fstat64(0x3,0xcf7f0e00)
 16287 yes      RET   fstat64 0
 16287 yes      CALL  mmap2(0,0x11657c,0x5,0x802,0x3,0)
 16287 yes      RET   mmap2 1340907520/0x4feca000
 16287 yes      CALL  mmap2(0x4ffda000,0x4000,0x3,0x812,0x3,0x10f)
 16287 yes      RET   mmap2 1342021632/0x4ffda000
 16287 yes      CALL  mmap2(0x4ffde000,0x257c,0x3,0x32,0xffffffff,0)
 16287 yes      RET   mmap2 1342038016/0x4ffde000
 16287 yes      CALL  close(0x3)
 16287 yes      RET   close 0
 16287 yes      CALL  mmap2(0,0x1000,0x3,0x22,0xffffffff,0)
 16287 yes      RET   mmap2 1382084608/0x5260f000
 16287 yes      CALL  #243 (unimplemented linux_sys_set_thread_area)()
 16287 yes      PSIG  SIGSYS SIG_DFL code 0
 16287 yes      NAMI  "yes.core"

What does this mean? That linux_sys_set_thread_area is unimplemented in the 
emulation?

When I install redhat_base alone without copying the libraries from the Linux 
system (although http://www.openbsd.org/faq/faq9.html suggests that one
should do both), yes works. But it's about all what works. I need to run ekiga 
(or xten-xlite or whatever SIP phone Linux binary happens to work
on OpenBSD under emulation) so that's why I am trying to find some method how 
to copy the program with any arbitrary library it requires.

But why does the same yes work with the redhat_base package? If 
linux_sys_set_thread_area were unimplemented in the emulation I would guess
it wouldn't work regardless of what libraries are or are not installed.

OpenBSD 4.0, i386


CL<

Reply via email to