home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lucidem / help / 715 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.3 KB  |  37 lines

  1. x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Fri, 20 Nov 1992 18:34:17 EST
  2. From: joost%ori.cadlab.de@lucid.com (Michael Joosten)
  3. Message-ID: <9211201610.AA03334@ori.cadlab.de>
  4. Subject: Re: Building 19.3 on Sun Sparc
  5. X-Mailer: ELM [version 2.3 PL11]
  6. Date: Fri, 20 Nov 1992 23:34:17 GMT
  7. Newsgroups: alt.lucid-emacs.help
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Sender: help-lucid-emacs-request@lucid.com
  10. Lines: 25
  11.  
  12. bha writes:
  13. > OK.  Now I have an image to run.  But when I run it, the initial
  14. > window is mapped, I see the mode line and minibuffer but lemacs
  15. > immediately quits with the message:
  16. > Error: Cannot perform calloc
  17.  
  18. I assume you are linked it with the Motif libs, right? Well, Motif likes to
  19. allocate 0 (in words: zero) bytes for this and that whereas X/Open and prob.
  20. ANSI too, allow a malloc() implementation to return either NULL or a valid
  21. memory pointer when being invoked with malloc(0).
  22.  
  23. What I did? Well, look in gmalloc.c and change (somewhere at line 365):
  24.   if (size == 0)
  25.     return NULL;
  26. to
  27.   if (size == 0)
  28.       size++;
  29. That worked for me. But even if lemacs now starts up, the pulldown menu
  30. for buffers was empty and other funny things happened, so I would recommend all
  31. (on Suns, at least) not to use Motif but the Lucid widgets instead.
  32.  
  33. Michael
  34.  
  35.