Subject: Re: does anyone have a working Solaris emulation?
To: None <email@example.com>
From: Andrey Petrov <firstname.lastname@example.org>
Date: 12/19/2003 01:26:05
On Fri, Dec 19, 2003 at 09:52:02AM +0100, email@example.com wrote:
> I'm trying to get Solaris 9 emulation to work. I use a GENERIC NetBSD
> 1.6.1 kernel on an UltraSparc5 and copied all libs from a Solaris
> machine to /emul/sunos/usr/lib (and .../lib/sparcv9). I also created
> links from /emul/svr4 to /emul/sunos as well as from /emul/svr4_32.
> A typical ldd output looks like the this:
> /emul/sunos/usr/lib/sparcv9>ldd libmd5.so.1
> -ldl.1 => not found
> -lc.1 => /emul/sunos/usr/lib/sparcv9/libc.so.1
> /emul/sunos/usr/lib/sparcv9>file libmd5.so.1
> libmd5.so.1: ELF 64-bit MSB shared object, SPARC V9, version 1 (SYSV),
> not stripped
> As you see it (correctly?) finds one library but not the other one. When
> I search for this library I get this:
> /emul/sunos/usr/lib/sparcv9>ls -al libdl.so*
> -rw-r--r-- 1 alex wheel 5160 Jun 24 19:59 libdl.so
> -rw-r--r-- 1 alex wheel 5160 Jun 24 19:59 libdl.so.1
> /emul/sunos/usr/lib/sparcv9>file libdl.so.1
> libdl.so.1: ELF 64-bit MSB shared object, SPARC V9, version 1 (SYSV),
> not stripped
> /emul/sunos/usr/lib/sparcv9>ldd libdl.so.1
> ldd: libdl.so.1: wrong number of segments (1 != 2)
I tried svr4 emulation recently, about 2 weeks ago and it worked all right
(for simle programs as ls and cat, I was interested in ktrace so didn't need
anything complicated). That was on -current though. I'd suggest to follow
compat_svr4(8), it has enought information for easy setup and configure.
Wrt ldd, after compat_svr4 setup solaris' ldd should work. System's one doesn't
know about /emul/... path.