Subject: Re: compat_solaris
To: None <port-sparc64@NetBSD.ORG>
From: Michael <macallan18@earthlink.net>
List: port-sparc64
Date: 02/05/2005 14:15:02
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

>> I tried to run Opera for Solaris on NetBSD/sparc64 but all I got was
>> 'unrecognized binary format' or something similar.  I enabled all the
>> COMPAT_SVR4_32 stuff in the kernel, copied the necessary libs and so
>> on from a Solaris 9 installation and other Solaris binaries just work
>> ( tried things like xterm and so on ).  objdump and file both agree
>> that the Opera binary is an ordinary, dynamically linked ELF32_SPARC
>> binary, just like most things coming with Solaris.
>> So I guess there's some voodoo going on in the kernel to pick the
>> right emulation which for some reason fails with Opera - any idea
>> where to look?  I read the stuff in sys/compat/svr4_32/svr4_exec*
>> without seeing anything obvious.
>
> ktrace(1) is Your Friend.
Doh! Should have thought of that - thanks for reminding me :)

Hmm, now I get...
Syntax error: ")" unexpected
Apparently ktrace thinks it's a script for some reason. Odd.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBQgUbNspnzkX8Yg2nAQKh4Af/amsS5T1yabW/wz0kC7elIbXjWLnbTku+
eJBlABQmrWfBxISaPnkebVn/G5ZTUQzVeeTQD1FFt1rwEY0FmunvzUsz3CbSLTHh
V0lOM0OBqtre4XA7beF+fy9B3132QG82pWf7fW1WdtDKtEHua9UTDKxTK4e65YQU
1JNDCGDJnWoMADQsgVEjSkjnHrjI6Et6oVWZ6aSqCvR4pdjrYkcGKCxMM5bPtJ2U
r2pjMMCcmKwMBtgmn0yxLguXG15q1HlY0zOa3FsrSzVRXf6Q1W89jccQA7N/J3Pd
xHlMj2chs2ggvMhHdho81QSfrIw2+8ccamqS4ItvVLolgqEikgGYxA==
=CFYg
-----END PGP SIGNATURE-----