From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#6170: 24.0.50; Compiling on solaris2.10 with gcc doesn't define alloca Date: Wed, 02 Jun 2010 05:24:36 -0400 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 1275470877 21159 80.91.229.12 (2 Jun 2010 09:27:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2010 09:27:57 +0000 (UTC) Cc: 6170-done@debbugs.gnu.org To: Lawrence Mitchell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 02 11:27:55 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 1OJkEt-0001IO-0Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jun 2010 11:27:55 +0200 Original-Received: from localhost ([127.0.0.1]:59432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJkEs-0001cD-FO for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jun 2010 05:27:54 -0400 Original-Received: from [140.186.70.92] (port=44201 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJkEk-0001c1-Pu for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 05:27:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJkEj-0008Js-9a for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 05:27:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47186) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJkEj-0008Jj-8D for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 05:27:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJkC6-0000Xc-74 for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 05:25:02 -0400 Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jun 2010 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 6170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 6170@debbugs.gnu.org, dann@gnu.org Original-Received: via spool by 6170-done@debbugs.gnu.org id=D6170.12754706802072 (code D ref 6170); Wed, 02 Jun 2010 09:25:02 +0000 Original-Received: (at 6170-done) by debbugs.gnu.org; 2 Jun 2010 09:24:40 +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 1OJkBk-0000XN-FN for submit@debbugs.gnu.org; Wed, 02 Jun 2010 05:24:40 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJkBj-0000XH-6S for 6170-done@debbugs.gnu.org; Wed, 02 Jun 2010 05:24:40 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJkBg-0007LG-92; Wed, 02 Jun 2010 05:24:36 -0400 In-Reply-To: (Lawrence Mitchell's message of "Mon\, 31 May 2010 17\:42\:34 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 02 Jun 2010 05:25: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:37483 Archived-At: Lawrence Mitchell writes: > 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. Should be fixed now.