Subject: freebsd binaries under 1.2?
To: NetBSD i386 <port-i386@NetBSD.ORG>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: port-i386
Date: 04/08/1997 12:41:37
I enabled FreeBSD emulation in my 1.2 kernel (also have COMPAT_LINUX there),
but I still can't seem to run a FreeBSD binary:

jmarin@kyyhky ~/s %(63)file ./desclient-freebsd
./desclient-freebsd: FreeBSD/i386 demand paged dynamically linked executable

If I ktrace the program, I get this:

   263 ktrace   RET   ktrace 0
   263 ktrace   CALL  execve(0xf7bfd743,0xf7bfd6c8,0xf7bfd6d0)
   263 ktrace   NAMI  "./desclient-freebsd"
   263 ktrace   RET   execve -1 errno 8 Exec format error
   263 ktrace   CALL  __sysctl(0xf7bfd1fc,0x2,0xb194,0xf7bfd204,0,0)
   263 ktrace   RET   __sysctl 0
   263 ktrace   CALL  break(0xb1cc)
   263 ktrace   RET   break 0
   263 ktrace   CALL  break(0xbffc)
   263 ktrace   RET   break 0
   263 ktrace   CALL  break(0xcffc)
   263 ktrace   RET   break 0
   263 ktrace   CALL  execve(0x2272,0xc000,0xf7bfd6d0)
   263 ktrace   NAMI  "/bin/sh"
   263 sh       EMUL  "netbsd"
   263 sh       RET   execve 0

What's wrong?  I did 'config', 'make depend' and 'make' and it still doesn't
work :-o

  -jm


-- 

                     ---> http://www.jmp.fi/~jmarin/ <---