Subject: compat netbsd32 broken on -current amd64 ?
To: NetBSD amd64 <>
From: Nicolas Joly <>
List: port-amd64
Date: 03/22/2005 11:25:22

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 3.99.1 NetBSD 3.99.1 (GENERIC.MP) #7: Mon Mar 21 20:32:32 CET 2005 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.