Subject: Re: netscape on sparc?
To: None <port-sparc@NetBSD.ORG>
From: None <eeh@netbsd.org>
List: port-sparc
Date: 01/30/2001 16:03:33
	Speaking of Netscape and other a.out binaries on 1.5 ...

	Pretty much all of my old (sometimes really old) a.out binaries in
	"/usr/local/bin" (pre-pkg era stuff) dies rather violently on my Ultra 5+.

	netbsd4me# ./netscape-3.04
	./netscape-3.04: Cannot allocate memory.
	netbsd4me# ./netscape-4.5.1.solaris
	./netscape-4.5.1.solaris: Exec format error. Wrong Architecture.
	netbsd4me# ./netscape-4.6.1.sunos
	./netscape-4.6.1.sunos: Cannot allocate memory.
	netbsd4me# ./nscal
	./nscal: Cannot allocate memory.
	netbsd4me# ./ntptrace
	Abort trap
	netbsd4me# ./zipinfo
	Abort trap
	netbsd4me# ./netscape-4.5.1.solaris
	Jan 29 21:46:10 netbsd4me /netbsd: Unknown memory model 3
	Jan 29 21:46:10 netbsd4me /netbsd: Alignment error: dsfsr=00000000:00800005 dsfar=ffffffff:ffffd291 isfsr=00000000:00000000 pc=0x10007290
	Bus error (core dumped)

	This is pretty much what I get from everything in there, in one form or
	another.

	Any ideas?  I have /emul/svr4 and /emul/sunos fully populated ...

That's predictable.  Solaris and Sunos are 32-bit.  Your kernel
is 64-bit.  32-bit emulation has only been done for COMPAT_NETBSD32.
Trying to run a 32-bit binary in 64-bit mode is bound to fail.

To make that work, the same thing that was done to create 
COMPAT_NETBSD32 needs to be done to SVR4 and Sunos emulation.

Eduardo