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

Quentin Garnier <cube@cubidou.net> wrote:
> On Thu, Mar 09, 2006 at 05:01:47PM -0500, Jan Schaumann wrote:
> > Quentin Garnier <cube@cubidou.net> 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=
t,
> > >    but it involves some work.
> >=20
> > Hmm, I've done that, so my /emul/netbsd32/lib contains
>=20
> The contents of /emul/netbsd32/lib is irrelevant.
>=20
> 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:

/emul/netbsd32/usr/libexec/ld.so
/emul/netbsd32/usr/libexec/ld.elf_so

Both are the actual files, not symlinks.

> > $ ./a.out
> > ./a.out: 1: Syntax error: "(" unexpected
>=20
> 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)

-Jan

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

--0F1p//8PRICkK4MW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFEELd8fFtkr68iakwRAv++AKDiYjlDTn7/5TpADiMjO+acOP5vuwCeIh9R
vaB0G5bZNfd1uykyMG84Gio=
=qc3Q
-----END PGP SIGNATURE-----

--0F1p//8PRICkK4MW--