Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site harvard.ARPA
Path: utzoo!linus!vaxine!wjh12!harvard!elvy
From: elvy@harvard.ARPA (Marc Elvy)
Newsgroups: net.unix
Subject: Re: Franz Lisp:rawhlisp problems - (macsyma)
Message-ID: <288@harvard.ARPA>
Date: Thu, 21-Jun-84 22:41:40 EDT
Article-I.D.: harvard.288
Posted: Thu Jun 21 22:41:40 1984
Date-Received: Sat, 23-Jun-84 06:34:51 EDT
References: <18500009@smu.UUCP>
Organization: Aiken Computation Lab, Harvard
Lines: 52

I had the exact same problem trying to install macsyma.  It turns out that
there are several problems involved in trying to remake Macsyma for 4.2.
The tape which Symbolics provides includes a 4.1 binary, so no one has ever
tried to recompile the system with another Lisp interpreter as far as I
can see.  So I started up (using the 4.2 Franz, since it was newer) and
discovered (much to my chagrin) that one could not make rawhlisp because
__brk was not defined in my system.  (There is a piece of code in rlc.c
which says #ifdef os_4_2  #define brk _brk #endif.)  Since I could not
find it, I checked out the code on ucbmonet -- it turns out they have
defined another entry point into the brk() function (called _brk) which
avoids the error checking (and avoids the segmentation fault one gets
when trying to run a rawhlisp).  I installed the change here and the rawhlisp
compiled beautifully.  BUT I still cannot remake macsyma, since I do not
have the file "startup.l" which is supposed to be included.  Does anyone
else have it on his distribution tape?

Marc

Enclosed is /usr/src/lib/libc/vax/sys/brk.c.

Enc.
----------------------------------------
/* brk.c 4.3 83/10/06 */

#include "SYS.h"

#define	SYS_brk		17

	.globl	curbrk
	.globl	minbrk
ENTRY(_brk)
	jbr	ok

ENTRY(brk)
	cmpl	4(ap),minbrk
	bgeq	ok
	movl	minbrk,4(ap)
ok:
	chmk	$SYS_brk
	jcs	err
	movl	4(ap),curbrk
	clrl	r0
	ret
err:
	jmp	cerror
---------------------------------------------

			     Marc A. Elvy  ( elvy@harvard )
		    ({allegra,genrad,ihnp4,ima,ucbvax}!harvard!elvy)
			     Aiken Computation Laboratory
				  Harvard University