Franz Lisp:rawhlisp problems - (macsyma)

Marc Elvy elvy at harvard.ARPA
Fri Jun 22 12:41:40 AEST 1984


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 at harvard )
		    ({allegra,genrad,ihnp4,ima,ucbvax}!harvard!elvy)
			     Aiken Computation Laboratory
				  Harvard University



More information about the Comp.unix mailing list