[comp.emacs] help for emacs 18.55 on SunOS 4.1

david@lta.com (David B. Lewis) (12/06/90)

Are there known problems building Emacs 18.55 for the SPARC {SLC} running
SunOS 4.1? Emacs immediately exits with a "Fatal error(6).Abort" caused
from line 515 of malloc.c, in malloc(). Tracing through it, it appears that
the first (?) malloc of a segment of 8 or fewer bytes results in p->mh_alloc
not ISFREE and p->mh_size not nunits. With HAVE_XWINDOWS and X11 defined,
this happens on the XOpenDisplay call in x11term.c, when the R4 Xlib
makes a copy of the displayname passed in; when built without X support
the same problem comes up in a different way. That problem does not manifest 
itself with Saber-C 3.0, although that debugger doesn't like the 
pointer subtraction in morecore() and later never loads the lisp files.
I have s-sunos4.h and m-sparc.h set by default; when I use s-bsd4-2.h instead,
temacs isn't built properly. This happens with both 'cc' and 'cc -misalign'
and with 'gcc -traditional' (gcc 1.37.1).

I've built this distribution for a DECstation and am pretty sure that my
procedure is correct.

I'm guessing that something in a crucial header file has changed, but I don't
know where to look. Has anyone got this working on a SunOS 4.1 machine?

Thanks very much in advance!

Traceback for build with s-sunos4.h and m-sparc.h using Sun CC and
HAVE_XWINDOWS and X11 defined:

lta# emacs
Fatal error (6).Abort (core dumped)
lta# dbx /usr/local/bin/emacs core
Reading symbolic information...
Read 32249 symbols
program terminated by signal ABRT (abort)
(dbx) where
kill() at 0x90ac8
abort() at 0x94c84
malloc(n = 5), line 515 in "src/malloc.c"
copystring() at 0x8d4bc
_XConnectDisplay() at 0x8d574
XOpenDisplay() at 0x84ae0
x_term_init(), line 1539 in "src/x11term.c"
init_display(), line 1411 in "src/dispnew.c"
main(argc = 1, argv = 0xf7fffc7c, envp = 0xf7fffc84), line 354 in "src/emacs.c"



David B. Lewis  			Lewis, Trachtenberg & Associates (LTA)
Note new address!:  david@lta.com	+1 617 225 0366