I am trying to run a linux binary on my OpenBSD 4.4/i386 system. The
binary file (let's call it 'static_exec') is a static executable.
So far, i have done the following:
1. I have modified /etc/sysctl.conf so that it reads
kern.emul.linux=1
2. Reboot
3. sudo pkg_add -i fedore_base
4. I have copied the file 'static_exec' from /usr/bin of my Ubuntu/i386
system to /emul/linux/usr/bin/ of my OpenBSD installation.
5. $ /emul/linux/usr/bin/static_exec
Bad system call (core dumped)
6. $ cp /emul/linux/usr/bin/static_exec /emul/linux/fedora/usr/bin/
7. $ /emul/linux/fedora/usr/bin/static_exec
Bad system call (core dumped)
8. $ ktrace /emul/linux/usr/bin/static_exec
9. $ kdump -e linux
4410 ktrace RET brk 0
4410 ktrace CALL oldolduname(0xcfbe6107,0xcfbe5fb0,0xcfbe5fb8)
4410 ktrace NAMI "/emul/linux/usr/bin/static_exec"
4410 fpc EMUL "native"
4410 fpc RET execve 0
4410 fpc CALL pathconf(0xcfbea7d0,0x805918b)
4410 fpc NAMI "A`(3/4I"+?"
4410 fpc RET pathconf -1 errno 2 No such file or directory
4410 fpc CALL #76 (obsolete vhangup)()
4410 fpc PSIG SIGSYS SIG_DFL code 0
4410 fpc NAMI "static_exec.core"
Is there something i can do to run this binary??