Article View: gnu.emacs.bug
Article #99541GNU Emacs on a SPARCstation
From: David J. MacKenzie
Date: Wed, 15 Aug 1990 03:30
Date: Wed, 15 Aug 1990 03:30
105 lines
4126 bytes
4126 bytes
If you're building 18.55 with gcc on a sparc you need a patch to fix a
bug in emacs. Below is that patch (the one for alloc.c) as well as
several others that are needed for sunos 4.1, Open Look, and the
Decstation, all collected from various postings to the emacs mailing
lists and threatening to become Frequently Asked Questions.
diff -2rc dist-18.55.dist/src/alloc.c dist-18.55/src/alloc.c
*** dist-18.55.dist/src/alloc.c Mon Feb 13 05:23:35 1989
--- dist-18.55/src/alloc.c Mon Nov 27 23:30:13 1989
***************
*** 665,673 ****
#define NSTATICS 200
- char staticvec1[NSTATICS * sizeof (Lisp_Object *)] = {0};
-
int staticidx = 0;
#define staticvec ((Lisp_Object **) staticvec1)
/* Put an entry in staticvec, pointing at the variable whose address is given */
--- 665,676 ----
#define NSTATICS 200
int staticidx = 0;
+ #ifdef __GNUC__
+ Lisp_Object *staticvec[NSTATICS] = {0};
+ #else
+ char staticvec1[NSTATICS * sizeof (Lisp_Object *)] = {0};
#define staticvec ((Lisp_Object **) staticvec1)
+ #endif
/* Put an entry in staticvec, pointing at the variable whose address is given */
diff -2rc dist-18.55.dist/src/m-pmax.h dist-18.55/src/m-pmax.h
*** dist-18.55.dist/src/m-pmax.h Thu Jun 8 11:53:55 1989
--- dist-18.55/src/m-pmax.h Fri Jul 13 19:16:29 1990
***************
*** 2,3 ****
--- 2,5 ----
#undef LIBS_MACHINE
#undef BIG_ENDIAN
+ #define DATA_START 0x10000000
+ #define DATA_SEG_BITS 0x10000000
diff -2rc dist-18.55.dist/src/malloc.c dist-18.55/src/malloc.c
*** dist-18.55.dist/src/malloc.c Fri Apr 7 21:12:10 1989
--- dist-18.55/src/malloc.c Wed Jul 11 16:11:15 1990
***************
*** 477,481 ****
--- 477,486 ----
Both the beginning of the header and the beginning of the
block should be on an eight byte boundary. */
+ #ifdef sun
+ /* SunOS 4.1 localtime scribbles on the ninth byte. */
+ nbytes = (n + ((sizeof *p + 15) & ~15) + EXTRA + 15) & ~15;
+ #else
nbytes = (n + ((sizeof *p + 7) & ~7) + EXTRA + 7) & ~7;
+ #endif
{
register unsigned int shiftr = (nbytes - 1) >> 2;
diff -2rc dist-18.55.dist/src/process.c dist-18.55/src/process.c
*** dist-18.55.dist/src/process.c Sun Aug 6 17:01:31 1989
--- dist-18.55/src/process.c Fri Jul 13 19:18:25 1990
***************
*** 1032,1035 ****
--- 1032,1038 ----
ioctl (j, TIOCNOTTY, 0);
close (j);
+ #ifndef USG
+ setpgrp (0, 0);
+ #endif
}
#endif /* TIOCNOTTY */
diff -2rc dist-18.55.dist/src/x11term.c dist-18.55/src/x11term.c
*** dist-18.55.dist/src/x11term.c Wed Aug 2 21:56:42 1989
--- dist-18.55/src/x11term.c Fri Jul 13 19:22:32 1990
***************
*** 1213,1216 ****
--- 1213,1218 ----
#endif /* not sun */
+ static XComposeStatus status;
+
internal_socket_read(bufp, numchars)
register unsigned char *bufp;
***************
*** 1223,1227 ****
BLOCK_INPUT_DECLARE ();
XEvent event;
- XComposeStatus status;
KeySym keysym;
--- 1225,1228 ----
***************
*** 1330,1334 ****
nbytes = XLookupString (&event,
mapping_buf, 20, &keysym,
! 0);
/* Someday this will be unnecessary as we will
be able to use XRebindKeysym so XLookupString
--- 1331,1335 ----
nbytes = XLookupString (&event,
mapping_buf, 20, &keysym,
! &status);
/* Someday this will be unnecessary as we will
be able to use XRebindKeysym so XLookupString
Technical Details
Message-ID:
<9008150330.AA08071@pepsi.eng.umd.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!ENG.UMD.EDU!djmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,235e7c8b30bd67f8,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-08-14 20:30:58 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!ENG.UMD.EDU!djm From: djm@ENG.UMD.EDU (David J. MacKenzie) Newsgroups: gnu.emacs.bug Subject: GNU Emacs on a SPARCstation Message-ID: <9008150330.AA08071@pepsi.eng.umd.edu> Date: 15 Aug 90 03:30:58 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 105 Posted: Wed Aug 15 04:30:58 1990