Subject: Re: 2.x and COMPAT_NETBSD32
To: None <>
From: Jan Schaumann <>
List: port-amd64
Date: 03/09/2006 18:17:17
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Quentin Garnier <> wrote:
> On Thu, Mar 09, 2006 at 05:01:47PM -0500, Jan Schaumann wrote:
> > Quentin Garnier <> wrote:
> > =20
> > >  - change all the absolute symlinks in /emul/netbsd32/usr/lib* to be
> > >    relative instead of abosulte.  This is the easiest and the cleanes=
> > >    but it involves some work.
> >=20
> > Hmm, I've done that, so my /emul/netbsd32/lib contains
> The contents of /emul/netbsd32/lib is irrelevant.
> The contents of /emul/netbsd32/usr/libexec and /emul/netbsd32/usr/lib are.

Right, my mistake, typo in the message.  I have those libraries in
/emul/netbsd32/usr/lib.  /emul/netbsd32/usr/libexec contains:


Both are the actual files, not symlinks.

> > $ ./a.out
> > ./a.out: 1: Syntax error: "(" unexpected
> Symptom that no correct interpreter is found;  because it is set to
> /usr/libexec/ld.so_elf which in /emul/netbsd32 is a symlink to
> /libexec/ld.so_elf.

Well, unfortunately that's not the case.  It's the actual ld.so_elf from
an i386 system, no symlink.

> ktrace is helpful for those problems;  unfortunately it's not possible
> to have an explicit error message.

ktrace hasn't really been helpful to me here, either.

  2897 ktrace   EMUL  "netbsd"
  2897 ktrace   CALL  execve(0x7f7ffffffc52,0x7f7ffffffb18,0x7f7ffffffb28)
  2897 ktrace   NAMI  "./a.out"
  2897 ktrace   RET   execve -1 errno 8 Exec format error
  2897 ktrace   CALL  execve(0x4089ec43,0x7f7ffffff5f0,0x7f7ffffffb28)


If you are undertaking anything substantial, C is the only reasonable choice
of programming language.
	-- UNIX User's Supplementary Documents

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.1 (NetBSD)