From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.bugs Subject: bug#6170: 24.0.50; Compiling on solaris2.10 with gcc doesn't define alloca Date: Mon, 31 May 2010 17:42:34 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275325101 27862 80.91.229.12 (31 May 2010 16:58:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 16:58:21 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 31 18:58:20 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ8Je-0001ne-Nw for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 May 2010 18:58:19 +0200 Original-Received: from localhost ([127.0.0.1]:42877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ8Je-00071f-6m for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 May 2010 12:58:18 -0400 Original-Received: from [140.186.70.92] (port=45804 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ8JB-0006Sh-7D for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:57:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ8J5-0006XL-0I for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:57:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33515) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ8J4-0006XG-UI for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:57:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJ87m-0005kT-CO; Mon, 31 May 2010 12:46:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Lawrence Mitchell Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 May 2010 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.127532430822063 (code B ref -1); Mon, 31 May 2010 16:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 May 2010 16:45:08 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ86t-0005jo-1v for submit@debbugs.gnu.org; Mon, 31 May 2010 12:45:07 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ86p-0005j8-UB for submit@debbugs.gnu.org; Mon, 31 May 2010 12:45:05 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:51935) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OJ86n-00021z-59 for submit@debbugs.gnu.org; Mon, 31 May 2010 12:45:01 -0400 Original-Received: from [140.186.70.92] (port=58128 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ86l-0002JS-7f for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:45:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ86i-0003qq-4e for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:44:57 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52461) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ86h-0003qZ-VT for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:44:56 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OJ86f-0001b8-Fk for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 18:44:53 +0200 Original-Received: from garnet.epcc.ed.ac.uk ([129.215.56.222]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 May 2010 18:44:53 +0200 Original-Received: from wence by garnet.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 May 2010 18:44:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 54 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: garnet.epcc.ed.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (usg-unix-v) Cancel-Lock: sha1:o8/jk71MQ/DCfGcVdlrqQRDABEU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 31 May 2010 12:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37448 Archived-At: Dan Nicolaescu wrote: > Lawrence Mitchell writes: >> On this system, is provided by Sun and therefore >> doesn't define alloca, unlike on a typical GNU/linux system where >> contains the following: >> | #if defined __USE_GNU || defined __USE_BSD || defined __USE_MISC >> | # include >> | #endif /* Use GNU, BSD, or misc. */ >> When compiling emacs with gcc, alloca is therefore undefined. >> The culprit is this snippet in configure.in: >> | #ifndef __GNUC__ >> | # ifdef HAVE_ALLOCA_H >> | # include >> | # else /* AIX files deal with #pragma. */ >> | # ifndef alloca /* predefined by HP cc +Olibcalls */ >> | char *alloca (); >> | # endif >> | # endif /* HAVE_ALLOCA_H */ >> | #endif /* __GNUC__ */ > "info autoconf" says that this is the proper way to do it: > #ifdef HAVE_ALLOCA_H > # include > #elif defined __GNUC__ > # define alloca __builtin_alloca > #elif defined _AIX > # define alloca __alloca > #elif defined _MSC_VER > # include > # define alloca _alloca > #else > # include > # ifdef __cplusplus > extern "C" > # endif > void *alloca (size_t); > #endif > Not sure we need the last #else part, or the _MSC_VER part... Is there any movement on getting this fix, or something like it, installed? It doesn't seem like a controversial change. Cheers, Lawrence -- Lawrence Mitchell