Subject: Re: Solaris emulation
To: Stefan Monnier <stefan.monnier@lia.di.epfl.ch>
From: Peter Svensson <petersv@df.lth.se>
List: port-sparc
Date: 02/19/1996 19:17:09
On Mon, 19 Feb 1996, Stefan Monnier wrote:

> Has anybody setup some manpage or help file for Solaris emulation setup ?
> I really can't get the thing to work:
> 
> I'm trying to get /usr/openwin/bin/xclock to work (not that I need it, but
> it's just the program I picked up for my tests) and I always end up (after
> adding files such as /emul/svr4/etc/netconfig or /emul/svr4/etc/nsswitch.conf)
> with the problem of devices. For instance, if I put Solaris's libresolv.so.1
> in /emul/svr4/usr/lib, xclock crashes when trying to open /dev/udp. Similarly
> when I avoid this specific problem by putting NetBSD's libresolv there (which
> surprisingly doesn't make the thing crash, but doesn't seem to work either since
> xclock keeps on looking at NIS and then /etc/hosts for the IP address of the
> display-host) xclock crashes later when trying to open /dev/tcp.
> 
> Any idea what the problem might be ? Should I try to mount somo Solaris's
> /dev and /devices in /emul/svr4 ?

You need to run the SVR4_MAKEDEV in /usr/src/etc/etc.svr4. It will build 
the necesarry devices. I have run a few Solaris 2.4 binaries, without too 
much trouble.

I have not managed to connect using unix sockets, only tcp-ip ones.

> Or should I try to convince xlock to use NetBSD's X libraries (but these
> are X11R6, whereas Solaris's are X11R5, there are likely to be
> incompatibilities) ?

Eh, xlock I am not so sure about, but xclock works.

Peter