GNU Emacs under SunOS 4.1
Philip Meese
pmeese at sanwaBGK.com
Thu Nov 29 04:45:45 AEST 1990
In article <276 at brchh104.bnr.ca> lubkt at 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 at sanwaBGK.com | email: pmeese at pmp.com
More information about the Comp.sys.sun
mailing list