From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Key Newsgroups: gmane.emacs.devel Subject: Compilation error caused by SPARE_MEMORY Date: Sun, 5 Jun 2011 16:10:30 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00032555717adc566604a4fd6bc0 X-Trace: dough.gmane.org 1307308275 25104 80.91.229.12 (5 Jun 2011 21:11:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2011 21:11:15 +0000 (UTC) To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 05 23:11:12 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QTKbG-0008QA-SN for ged-emacs-devel@m.gmane.org; Sun, 05 Jun 2011 23:11:11 +0200 Original-Received: from localhost ([::1]:38832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTKbF-0007ua-Bd for ged-emacs-devel@m.gmane.org; Sun, 05 Jun 2011 17:11:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTKaz-0007uB-Qf for Emacs-devel@gnu.org; Sun, 05 Jun 2011 17:10:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTKax-0005uV-QX for Emacs-devel@gnu.org; Sun, 05 Jun 2011 17:10:53 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:63843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTKax-0005uB-Bz for Emacs-devel@gnu.org; Sun, 05 Jun 2011 17:10:51 -0400 Original-Received: by bwz17 with SMTP id 17so3667396bwz.0 for ; Sun, 05 Jun 2011 14:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=TE+sGfWzHIUF6sS+YuVOdzaQhzsunkCgf3XrmnZb5B8=; b=PL6rI58XHl+jGeoTocdmDZgMSbEuvqXezK0t8Ut9kRZmehL4wcr1ITBqEQnkINw4Jc WhgzgRJIMR0ce+LzdprhGMHH2YlAsPeS0wNr973w61bW60LF46BJw6F8XsZaOpmanF7P 7ZEchtn9ew0Rm8Uedr04gBISJnhHetBInUjaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=SKi5IWNyjDKzJfZMijjt+YXBoYSEUn+PnpahqHtSMYTc/zIWiLzpnC0RXWlgpk4ffp iArjUZQR0PZV8vOPI4iFt7sZ4WDtgw6RNEf1yDT6YMrK5SGHlKA/AhH09tIEBukT+eBr 7qrGMMJ09MMtoYiCRw/lwSt+VLgkyYI6cizIc= Original-Received: by 10.204.19.3 with SMTP id y3mr1962427bka.180.1307308250125; Sun, 05 Jun 2011 14:10:50 -0700 (PDT) Original-Received: by 10.204.59.212 with HTTP; Sun, 5 Jun 2011 14:10:30 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140212 Archived-At: --00032555717adc566604a4fd6bc0 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am seeing a compilation error in alloc.c on line 3287 on Mac OS X due to SPARE_MEMORY being undeclared. Starting on line 193 of alloc.c is the following code block that attempts to define SPARE_MEMORY. #ifndef SYSTEM_MALLOC /* Amount of spare memory to keep in large reserve block. */ #define SPARE_MEMORY (1 << 14) #endif The problem is that SYSTEM_MALLOC is defined on Mac OS X but SPARE_MEMORY is not defined in any of the system header files (at least running 'grep -RnH SPARE_MEMORY *' in the /usr/include/ directory yields no results). I believe that the above code block should be changed to the following but I am not certain how this change will affect other platforms. #ifndef SPARE_MEMORY /* Amount of spare memory to keep in large reserve block. */ #define SPARE_MEMORY (1 << 14) #endif Note that SPARE_MEMORY does not appear to be defined on Windows either. At least I could not find it in any of the MinGW header files. How is SPARE_MEMORY defined on systems that do define it? Is the above change the correct one? It fixes the problem on Mac OS X but I do not want to make a change that will cause problems for other operating systems. --00032555717adc566604a4fd6bc0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I am seeing a compilation error in alloc.c o= n line 3287 on Mac OS X due to SPARE_MEMORY being undeclared.

Starti= ng on line 193 of alloc.c is the following code block that attempts to defi= ne
SPARE_MEMORY.

#ifndef SYSTEM_MALLOC
/* Amount of spare memory to keep in large res= erve block.=A0 */

#define SPARE_MEMORY (1 << 14)
#endif
=
The problem is that
SYSTEM_MALLOC is defined on= Mac OS X but SPARE_MEMORY is not defined in any of= the system header files (at least running 'grep -RnH SPARE_MEMORY *= 9; in the /usr/include/ directory yields no results).=A0 I believe that the= above code block should be changed to the following but I am not certain h= ow this change will affect other platforms.

#ifndef SPARE_MEMORY
/* Amount of spare memory to keep in large reserve= block.=A0 */

#define SPARE_MEMORY (1 << 14)
#endif

= Note that
SPARE_MEMORY does= not appear to be defined on Windows either.=A0 At least I could not find i= t in any of the MinGW header files.

How is
SPARE_MEMORY defined on systems that do = define it?=A0 Is the above change the correct one?=A0 It fixes the problem = on Mac OS X but I do not want to make a change that will cause problems for= other operating systems.
=A0

--00032555717adc566604a4fd6bc0--