GNU bug report logs - #7366
incompatible implicit declaration of built-in function 'alloca'

Previous Next

Package: emacs;

Reported by: "Dr. David Kirkby" <david.kirkby <at> onetel.net>

Date: Wed, 10 Nov 2010 16:30:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7366 in the body.
You can then email your comments to 7366 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7366; Package emacs. (Wed, 10 Nov 2010 16:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Dr. David Kirkby" <david.kirkby <at> onetel.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 10 Nov 2010 16:30:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Dr. David Kirkby" <david.kirkby <at> onetel.net>
To: bug-gnu-emacs <at> gnu.org
Subject: incompatible implicit declaration of built-in function 'alloca'
Date: Wed, 10 Nov 2010 15:40:35 +0000
When building on Solaris 10 SPARC, I see several messages like this:



/rootpool2/local/kirkby/emacs-23.2/lib-src/emacsclient.c:1290:17: warning: 
incompatible implicit declaration of built-in function 'alloca'


Note the man page for Solaris says its defined in <alloca.h>



Here's part of the man page




kirkby <at> t2:64 ~$ man alloca

Standard C Library Functions                           malloc(3C)

NAME
     malloc, calloc, free, memalign, realloc,  valloc,  alloca  -
     memory allocator

SYNOPSIS
     #include <stdlib.h>

     void *malloc(size_t size);

     void *calloc(size_t nelem, size_t elsize);

     void free(void *ptr);

     void *memalign(size_t alignment, size_t size);

     void *realloc(void *ptr, size_t size);

     void *valloc(size_t size);

     #include <alloca.h>

     void *alloca(size_t size);

DESCRIPTION
     The  malloc()  and  free()  functions  provide   a   simple,
     general-purpose  memory  allocation  package.  The  malloc()
     function returns a pointer to a block of at least size bytes
     suitably  aligned for any use. If the space assigned by mal-
     loc() is overrun, the results are undefined.




Dave





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7366; Package emacs. (Thu, 11 Nov 2010 09:58:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lawrence Mitchell <wence <at> gmx.li>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#7366: incompatible implicit declaration of built-in function
	'alloca'
Date: Thu, 11 Nov 2010 09:59:51 +0000
Dr. David Kirkby wrote:

> When building on Solaris 10 SPARC, I see several messages like this:

> /rootpool2/local/kirkby/emacs-23.2/lib-src/emacsclient.c:1290:17:
> warning: incompatible implicit declaration of built-in function
> alloca'

I suspect this is the same as bug#6170
(http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6170) which is
fixed in the trunk release, however the fix has not propagated
back into the emacs-23 branch.

Lawrence
-- 
Lawrence Mitchell <wence <at> gmx.li>





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7366; Package emacs. (Sat, 13 Nov 2010 17:19:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Lawrence Mitchell <wence <at> gmx.li>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#7366: incompatible implicit declaration of built-in function
	'alloca'
Date: Sat, 13 Nov 2010 12:23:13 -0500
Lawrence Mitchell <wence <at> gmx.li> writes:

>> /rootpool2/local/kirkby/emacs-23.2/lib-src/emacsclient.c:1290:17:
>> warning: incompatible implicit declaration of built-in function
>> alloca'
>
> I suspect this is the same as bug#6170
> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6170) which is
> fixed in the trunk release, however the fix has not propagated
> back into the emacs-23 branch.

I just backported it.  Thanks for the timely reminder.




bug closed, send any further explanations to "Dr. David Kirkby" <david.kirkby <at> onetel.net> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 13 Nov 2010 17:19:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 12 Dec 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.