From owner-freebsd-questions  Tue Oct  7 03:41:14 1997
Return-Path: <owner-freebsd-questions>
Received: (from root@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id DAA16261
          for questions-outgoing; Tue, 7 Oct 1997 03:41:14 -0700 (PDT)
          (envelope-from owner-freebsd-questions)
Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA16240;
          Tue, 7 Oct 1997 03:41:06 -0700 (PDT)
          (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE)
Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13)
	with ESMTP id MAA00665; Tue, 7 Oct 1997 12:41:21 +0200 (MET DST)
Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id MAA01171; Tue, 7 Oct 1997 12:49:10 +0200 (MEST)
Message-ID: <19971007124909.27468@gil.physik.rwth-aachen.de>
Date: Tue, 7 Oct 1997 12:49:09 +0200
From: Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE>
To: Donald Burr <dburr@POBoxes.com>
Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG>,
        FreeBSD Ports <freebsd-ports@FreeBSD.ORG>
Subject: Re: has anyone successfully built STonX?
References: <XFMail.971002220600.dburr@POBoxes.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.81e
In-Reply-To: <XFMail.971002220600.dburr@POBoxes.com>; from Donald Burr on Thu, Oct 02, 1997 at 09:20:45PM -0700
Sender: owner-freebsd-questions@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

On Thu, Oct 02, 1997 at 09:20:45PM -0700, Donald Burr wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> I'd like to get STonX (the Atari ST emulator) up and running on my FreeBSD
> 2.2.2-RELEASE system.  Unfortunately, I'm running into a bit of a snag (to
> put it mildly).
> 
> The code compiles OK (except for a reference in x.c about SHMMAX, and I
> can fudge that easily enough based on my /sys/i386/conf/KERNEL config file
> and some of the /usr/include/machine/*.h headers, and anyway it looks like
> it's only used in a printf).

I downloaded (the original) STonX-0.6.7-epsilon and ran into the 
same problem. The port doesn't address this problem either.

I looked into a linux box and this value is defined in
/usr/include/asm/shmparams.h (or something)
to:

#define SHMMAX 0x1000000

Defining this in x.c gets the compilation through but I'm not sure
if this is the right way to do it - probably not.

At least stonx can be started - but I can;t test it right now
unless I get a tos.img from somewhere.

> 
> However, when I try and run it, I get a "cannot allocate memory" (or
> similar) error.  This happens with SMALL (in options.h) defined to 1 and 0.
> 
> I've tried both the STonX port (in ftp.freebsd.org:/pub/FreeBSD/incoming)
> and just grabbing the STonX source off the internet (tried both the
> release and the current version), with the exact same results.
> 
> My machine (2.2.2-RELEASE) is a AMD Am5x86 (aka P5-133, aka 486dx4/133)
> machine with 32 MB of physical RAM (and 64 MB swap).
> 
> Any ideas?  Please email me.  Thanks!
> 
> e
> release and the current version), with the exact same results.
> 
> My machine (2.2.2-RELEASE) is a AMD Am5x86 (aka P5-133, aka 486dx4/133)
> machine with 32 MB of physical RAM (64 MB swap
> 
> Any ideas?  Please email me.  Thanks!
> 
> - ---
> Donald Burr <dburr@POBoxes.com> - Ask me for my PGP key | PGP: Your
> WWW HomePage: http://DonaldBurr.base.org/  ICQ #1347455 | right to
> Address: P.O. Box 91212, Santa Barbara, CA 93190-1212   | 'Net privacy.
> Phone: (805) 957-9666    FAX: (800) 492-5954            | USE IT.
> 
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.2
> 
> iQCVAwUBNDR9N/jpixuAwagxAQHUwgP9HCt9HqNUa5Xh37N9g5rEiXuoI2yREVgd
> ElNnshEkOkAhtLUovfs60JcoISsoRmXmH+Y/j60c7gqy+W5gtTTTcNDST4uSegx+
> 654Ppct4wGPQYyGwwzqyKl8+CSPfrgoGXQUUhIdHOUdTjaYRPxT1tsTDrjkjcp5N
> 9MdHzUrMrtE=
> =H7uq
> -----END PGP SIGNATURE-----

-- 
--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de