Subject: compat netbsd32 broken on -current amd64 ?
To: NetBSD amd64 <port-amd64@netbsd.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: port-amd64
Date: 03/22/2005 11:25:22
Hi,

I just reinstalled one of our amd64 machine with -current 3.99.1
(build from yesterday sources) and noticed that compat_netbsd32 does
not work anymore (i can't remember last time it worked).

njoly@lanfeust [amd64/amd64]> uname -a
NetBSD lanfeust.sis.pasteur.fr 3.99.1 NetBSD 3.99.1 (GENERIC.MP) #7: Mon Mar 21 20:32:32 CET 2005  njoly@hal.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/GENERIC.MP amd64

I installed `netbsd32_compat16' package, from -current pkgsrc, (with a
little hack to allow installation on NetBSD-[23]*-x86_64 platforms.

A small hello world program compiled on NetBSD/i386 2.0D aborts ...

njoly@lanfeust [emul/netbsd32]> file hello
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD 2.0D, dynamically linked (uses shared libs), not stripped
njoly@lanfeust [emul/netbsd32]> ./hello
zsh: abort      ./hello
njoly@lanfeust [emul/netbsd32]> ktruss ./hello
 19308 ktruss   emul(netbsd)
 19308 ktruss   fcntl(0x4, 0x3, 0)                 = 1
 19308 ktruss   fcntl(0x4, 0x4, 0x1)               = 0

I checked 1.6.2 and 2.99.x binaries, with the same results.

Anyone else seeing this ?

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.