[comp.emacs] Installing gnuemacs on SPARCstation.

akshay@evax.arl.utexas.edu (Akshay K. Deshpande) (11/27/90)

I have been trying to install GNU Emacs on SPARCstation IPC. I have been able to
compile "temacs". But, when xemacs is dumped & I run it, I get coredump. I have
tried the suggestions given in PROBLEMS file and also tried to install on SPARC
machine with the same result.

If anybody knows what I need to modify, please let me know.

Thanks in advance.

-akshay
email: akshay@eval.utarl.edu

akshay@evax.arl.utexas.edu (Akshay K. Deshpande) (11/28/90)

The patchs that some people sent me, have solved the problem.
Thanks for everyones help.
-akshay

jeffe@eniac.seas.upenn.edu (George Jefferson ) (11/29/90)

>I, too am having problems with this.  Emacs 18.55 builds without
>errors on an SS/330, but dumps core when I try to run it.  An identical
>machine running OS4.0.3 causes no problems.  Has anybody succeeded in
>running 18.55 under 4.1?

me three.
I am trying to install 18.55 under os 4.1
I get a Fatal Error (6) and a core dump   
Whats up?

--
-george   @sol1.lrsm.upenn.edu

paj@mrcu (Paul Johnson) (12/03/90)

>
>>I, too am having problems with this.  Emacs 18.55 builds without
>>errors on an SS/330, but dumps core when I try to run it.  An identical
>>machine running OS4.0.3 causes no problems.  Has anybody succeeded in
>>running 18.55 under 4.1?
>
>me three.
>I am trying to install 18.55 under os 4.1
>I get a Fatal Error (6) and a core dump   
>Whats up?
>
>--
>-george   @sol1.lrsm.upenn.edu

OK guys, first you want to get on to gnu.emacs.help where they have a
FAQ which mentions this.  If you don't get the GNU stuff then go lobby
your newsadmin and point out the existance of gnu.emacs.sources.

From the gnu.emacs.help FAQ file:

44. Why does Emacs crash under SunOS 4.1?

  Under SunOS 4.1, Emacs dies with this message:

    Fatal error (6).Abort

  There is a bug in the "localtime" routine supplied with SunOS 4.1.
  A private function called by tzsetwall zeroes the byte just past an
  eight byte region it mallocs.  This corrupts GNU malloc's memory pool.

  Put "#define SYSTEM_MALLOC" in src/config.h.

  Or, for the purists:

  Put "#define SUNOS_LOCALTIME_BUG" in src/config.h and apply the following
  patch to src/malloc.c.

  (Patch by Eirik Fuller <eirik@elf.tn.cornell.edu>.)

  >*** malloc.c~   Fri Apr  7 22:12:10 1989
  >--- malloc.c    Tue May  8 07:07:22 1990
  >***************
  >*** 476,482 ****
  >--- 476,487 ----
  >       multiple of 8, then figure out which nestf[] area to use.
  >       Both the beginning of the header and the beginning of the
  >       block should be on an eight byte boundary.  */
  >+ #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
  >    {
  >      register unsigned int   shiftr = (nbytes - 1) >> 2;
  >

Good luck.

Paul.

-- 
Paul Johnson                               UUCP: <world>!mcvax!ukc!gec-mrc!paj
--------------------------------!-------------------------|-------------------
GEC-Marconi Research is not 	| Telex: 995016 GECRES G  | Tel: +44 245 73331
responsible for my opinions.	| Inet: paj@uk.co.gec-mrc | Fax: +44 245 75244