Subject: Re: 2.x and COMPAT_NETBSD32
To: None <port-amd64@netbsd.org>
From: Quentin Garnier <cube@cubidou.net>
List: port-amd64
Date: 03/09/2006 23:23:29
--fC9kceC3Ynf/5ezY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 cleanest,
> >    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.

[...]
> But still no dice:
>=20
> $ file a.out
> a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
> NetBSD 2.0.2, statically linked, not stripped
> $ ./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.

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

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--fC9kceC3Ynf/5ezY
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iQEVAwUBRBCq4dgoQloHrPnoAQLZiAf/awDsJs7a+fJVesHMkg0sz5Zan4AN8Ak4
2x48M4m+xQ7toQTp3RQRPeS4zLeBEMyg4zPdCEisEBJLGXewS7sU9MNT8epCSsLV
/kYGqkqt+MTYimklTt+VtqUqx7UQf81Tp3byDc090E/3rdlXR3aBPrxWWJqgoEPj
2kOFKusUlDoK9Po8UAgBfsfYn7l848XsgPx6yt69j9177nU0d0FrKeI+jgW4jC7j
Ca7iAq9M95SvJ6+pLPj/+sgn0z2MvXtO3y3dnpWBdVQ83dARiinemyqzYQi/cOP9
gEJCa9xbGYtYFlisFaQVMos7cT7opBE6zrEKfda6APjiQQl1uRRB2A==
=is1G
-----END PGP SIGNATURE-----

--fC9kceC3Ynf/5ezY--