🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87669

Problems Building emacs 19.26 under IRIX5.2

#87669
From: Robert Abramovitz
Date: Thu, 08 Sep 1994 17:18
64 lines
2522 bytes
I attempted to build emacs 19.26 with the native SGI compilers under IRIX5.2 on
an SGI R4000 Indigo.

configure was invoked as follows:
./configure mips-sgi-irix5.2 -with-gcc=no -with-x-toolkit=lucid

gmalloc.c would not compile. I got the following errors:

	cc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/well/src/emacs-19.26/src -cckr
           -g  gmalloc.c
cfe: Error: gmalloc.c, line 1250: Syntax Error
      ptrdiff_t increment;
 -----^
cfe: Error: gmalloc.c, line 1253: Syntax Error
   if (result == (char *) -1)
 --^
*** Error code 1 (bu21)

make: fatal error.

Compilation exited abnormally with code 1 at Thu Sep  8 09:50:52

Here is the procedure in which the above errors occured:

#ifndef	_MALLOC_INTERNAL
#define	_MALLOC_INTERNAL
#include <malloc.h>
#endif

#ifndef	__GNU_LIBRARY__
#define	__sbrk	sbrk
#endif

#ifdef __GNU_LIBRARY__
/* It is best not to declare this and cast its result on foreign operating
   systems with potentially hostile include files.  */
extern __ptr_t __sbrk __P ((int increment));
#endif

#ifndef NULL
#define NULL 0
#endif

/* Allocate INCREMENT more bytes of data space,
   and return the start of data space, or NULL on errors.
   If INCREMENT is negative, shrink data space.  */
__ptr_t
__default_morecore (increment)
     ptrdiff_t increment;
{
  __ptr_t result = (__ptr_t) __sbrk ((int) increment);
  if (result == (__ptr_t) -1)
    return NULL;
  return result;
}


Adding an include of stddef.h fixed the problem.

-- 
| Bromo (Robert Abramovitz)       Diagnostician                          |
| Tandem Computers Incorporated   Guardian: Abramovitz_Robert            |
| 19333 Vallco Parkway            Internet: abramovitz_robert@tandem.com |
|_Cupertino, CA 95015 MS3-22______Phone: (408) 285-6730__________________|
Technical Details
Message-ID: <9409081013.ZM22719@graviton>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cougar.tandem.com!bromo

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,5e5124de32275c47,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-09 01:02:20 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cougar.tandem.com!bromo
From: bromo@cougar.tandem.com (Robert Abramovitz)
Newsgroups: gnu.emacs.bug
Subject: Problems Building emacs 19.26 under IRIX5.2
Date: 8 Sep 1994 13:18:10 -0400
Organization: GNUs Not Usenet
Lines: 65
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409081013.ZM22719@graviton>