Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: pmeese@sanwaBGK.com (Philip Meese) Newsgroups: comp.sys.sun Subject: Re: GNU Emacs under SunOS 4.1 Keywords: Software Message-ID: <486@brchh104.bnr.ca> Date: 28 Nov 90 17:45:45 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 33 Approved: Sun-Spots@rice.edu X-Original-Date: Sat, 17 Nov 90 20:37:35 GMT X-Refs: Original: v9n366 X-Sun-Spots-Digest: Volume 9, Issue 375, message 5 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu In article <276@brchh104.bnr.ca> lubkt@vax1.cc.lehigh.edu writes: >I am trying to compile GNU Emacs 18.55 under SunOS 4.1, and everything >seems to be working fine all the way uptil installation of the software, >and I get no error messages what soever. I always seem to get Fatal error >(6), and a core is dumped. When I do an adb on the core file, I get the >message SIGIOT 6: abort. I had the same *&#! problem. I include a little section from my config.h file (emacs/src/config.h) which took care of it: /* SunOS 4.1 localtime scribbles on the ninth byte. * This includes a workaround piece of code in * malloc.c */ #define SUNOS_LOCALTIME_BUG Then in your malloc.c at about line 479 you need: #ifdef SUNOS_LOCALTIME_BUG /* 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 ...instead of: nbytes = (n + ((sizeof *p + 7) & ~7) + EXTRA + 7) & ~7; Good Luck. Philip Meese ----------------------------------------- On Assignment: | Office: Sanwa-BGK Securities | PM Projects, Inc. pmeese@sanwaBGK.com | email: pmeese@pmp.com