Subject: linux compat
To: None <port-amd64@netbsd.org>
From: Mihai CHELARU <kefren@netbsd.ro>
List: port-amd64
Date: 06/11/2006 10:03:21
Hi,
Is LINUX_COMPAT32 supposed to work ? I get the following:
$ file ./firefox-bin
./firefox-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5,
stripped
$ ./firefox-bin
./firefox-bin: 1: Syntax error: "(" unexpected
$ ktruss ./firefox-bin | head
./firefox-bin: 1: Syntax error: "(" unexpected
6995 1 ktruss emul(netbsd)
6995 1 ktruss fcntl(0x4, 0x3, 0) = 1
6995 1 ktruss fcntl(0x4, 0x4, 0x1) = 0
6995 1 ktruss execve("./firefox-bin", 0x7f7fffffeac0, 0x7f7fffffead0)
Err#8 ENOEXEC
6995 1 sh emul(netbsd)
6995 1 sh execve("/bin/sh", 0x7f7fffffe570, 0x7f7fffffead0)
JUSTRETURN
6995 1 sh mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0) =
0x7f7ffdff8000
6995 1 sh open("/etc/ld.so.conf", 0, 0x7f7ffde0a66d) Err#2 ENOENT
6995 1 sh open("/lib/libedit.so.2", 0, 0xfefefefefefeff31) = 3
6995 1 sh __fstat30(0x3, 0x7f7fffffe238) = 0
Kernel is compiled with options COMPAT_NETBSD32, COMPAT_LINUX and
COMPAT_LINUX32. Am I missing something ?
--
Mihai