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