Subject: Re: Compat-Sunos trouble.
To: None <e.p.boven@student.utwente.nl>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: port-sparc
Date: 11/26/1996 03:40:24
> Has anyone gotten Compat_sunos to work, with any www-browser?

I use the SunOS Netscape 3.01 Gold binary daily, with no problems.
(Well, actually, every once in a while if I've downloaded a bunch of images
 over the course of using it, it'll do something which causes my R6 Xsun to
 try and realloc() some huge gob of memory, thus dying)

> I have installed the libraries (from SunOS 4.1.2) in /emul/sunos/usr/lib 

I'd use the SunOS 4.1.4 libraries; they work for me.

For reference, my /emul/sunos/usr/lib contains

netbsd4me:1:148 [/emul/sunos/usr/lib] % ls -lt
total 2990
-rwxr-xr-x  1 root  bin    335872 Jun 21 01:51 libpixrect.so.2.14*
-rw-r--r--  1 root  bin       950 Jun 21 01:51 libpixrect.sa.2.14
lrwxr-xr-x  1 root  bin         1 Jun  6 22:26 usr@ -> .
lrwxr-xr-x  1 root  wheel       1 Sep 15  1995 lib@ -> .
-r-xr-xr-x  1 root  staff   40960 Mar 17  1995 ld.so*
-rw-r--r--  1 root  bin      2262 Dec  2  1994 libXmu.sa.4.10
-rw-r--r--  1 root  bin     10106 Dec  2  1994 libXaw.sa.5.0
-rw-r--r--  1 root  bin     24576 Dec  2  1994 liboldX.so.4.10
-rw-r--r--  1 root  bin      5374 Dec  2  1994 libXt.sa.4.10
-rw-r--r--  1 root  bin     10106 Dec  2  1994 libXaw3d.sa.5.0
-rw-r--r--  1 root  bin     65536 Dec  2  1994 libXpm.so.4.1
-rwxr-xr-x  1 root  wheel  294912 Dec  2  1994 libXt.so.4.10*
-rw-r--r--  1 root  bin     98304 Dec  2  1994 libXmu.so.4.10
-rw-r--r--  1 root  bin     40960 Dec  2  1994 libXi.so.4.10
-rw-r--r--  1 root  bin    278528 Dec  2  1994 libXaw3d.so.5.0
-rwxr-xr-x  1 root  wheel   40960 Dec  2  1994 libXext.so.4.10*
-rw-r--r--  1 root  bin    278528 Dec  2  1994 libXaw.so.5.0
-rwxr-xr-x  1 root  wheel  450560 Dec  2  1994 libX11.so.4.10*
-rwxr-xr-x  1 root  sys      7996 Oct  7  1994 libc.sa.1.9*
-rwxr-xr-x  1 root  sys    516096 Jul  7  1994 libc.so.1.9*
-rwxr-xr-x  1 root  bin     24576 May 19  1994 libdl.so.1.0*
-rwxr-xr-x  1 root  bin    516096 May 19  1994 libc.so.1.8*
-rwxr-xr-x  1 root  bin    335872 Jun 21 01:51 libpixrect.so.2.14*

> and /emul/sunos/usr/5lib, and made a /emul/sunos/dev, currently only
> populated by a /dev/zero and a MAKEDEV that won't work under NetBSD ;)

I haven't made an /emul/sunos/usr/5lib; what programs are you using that
use that?  Surely not the SunOS "vi" ... a termlib/curses program, perhaps?

As for /dev/zero, if the system doesn't find /emul/sunos/dev/zero, it will
fall back to /dev/zero itself, which works ...

> I'm trying to run Mosaic, has anyone gotten that or it's evil counterpart
> to run on their SPARC?

I've run 2.7beta5 without any problems like the one you report.  In practice,
I don't run Mosaic because it just doesn't support enough Netscape-isms, sigh.

> ktrace output: 
...
>  29161 Mosaic-sun-2.7b5 CALL  open(0x221b,0,0x7)
>  29161 Mosaic-sun-2.7b5 NAMI  "/emul/sunos/dev/zero"
>  29161 Mosaic-sun-2.7b5 NAMI  "/emul/sunos"
>  29161 Mosaic-sun-2.7b5 NAMI  "/emul/sunos/dev/zero"
>  29161 Mosaic-sun-2.7b5 RET   open 4
>  29161 Mosaic-sun-2.7b5 PSIG  SIGSEGV SIG_DFL
>  29161 Mosaic-sun-2.7b5 NAMI  "Mosaic-sun-2.7b5.core"

This isn't getting very far, is it?

> Any help? I seem to recall people have sucesfully ran eiter Mosaic or 
> NetScape under NetBSD.

I can run both (under 1.2, not -current btw) without trouble.  I'd advise you
to get the SunOS 4.1.4 libraries first, then see if it dies in the same place.
Maybe the 4.1.2 ld.so is causing the problem.  It's not even getting far
enough to open() & mmap() libc.so ...

	- Greg