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, 12 May 2010 14:29:40 -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 1273690630 8833 80.91.229.12 (12 May 2010 18:57:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 May 2010 18:57:10 +0000 (UTC) Cc: 6170@debbugs.gnu.org To: Lawrence Mitchell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 12 20:57:07 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 1OCH7A-00086l-Pd for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 May 2010 20:57:05 +0200 Original-Received: from localhost ([127.0.0.1]:54218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCH79-0004Ah-3d for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 May 2010 14:57:03 -0400 Original-Received: from [140.186.70.92] (port=59324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCH6t-0003zr-6W for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 14:56:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCH6d-0001oJ-Vv for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 14:56:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55176) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCH6d-0001oD-Sn for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 14:56:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OCGh1-0007IT-Fl; Wed, 12 May 2010 14:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 May 2010 18:30:03 +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 6170-submit@debbugs.gnu.org id=B6170.127368898728025 (code B ref 6170); Wed, 12 May 2010 18:30:03 +0000 Original-Received: (at 6170) by debbugs.gnu.org; 12 May 2010 18:29:47 +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 1OCGgk-0007Hy-T0 for submit@debbugs.gnu.org; Wed, 12 May 2010 14:29:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCGgj-0007Hs-8h for 6170@debbugs.gnu.org; Wed, 12 May 2010 14:29:45 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OCGge-0004gP-IQ; Wed, 12 May 2010 14:29:40 -0400 In-Reply-To: (Lawrence Mitchell's message of "Tue\, 11 May 2010 11\:57\:17 +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, 12 May 2010 14:30:03 -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:36903 Archived-At: 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...