From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#22522: Commit b88e9cded7ae3756e3a2ec4a23e8df352a0239f9 breaks emacs dumping for me Date: Tue, 2 Feb 2016 17:08:25 -0500 Message-ID: <56B128D9.3080706@cornell.edu> References: <87mvrkft66.fsf@whirm.eu> <86io28qd6g.fsf@gmail.com> <56B01BA1.1030602@cornell.edu> <85powfyywo.fsf@iznogoud.viz> <56B110B6.3090703@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1454450971 6056 80.91.229.3 (2 Feb 2016 22:09:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2016 22:09:31 +0000 (UTC) Cc: Paul Eggert , Andy Moreton , 22522@debbugs.gnu.org To: Wolfgang Jenkner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 02 23:09:21 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aQj8S-00088Q-FA for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 23:09:20 +0100 Original-Received: from localhost ([::1]:59681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQj8R-0001oQ-RF for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 17:09:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQj8D-0001Zw-Ua for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 17:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQj8A-0003kT-Mq for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 17:09:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQj8A-0003kH-JI for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 17:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aQj8A-0006Vy-BE for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 17:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Feb 2016 22:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22522 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22522-submit@debbugs.gnu.org id=B22522.145445091725007 (code B ref 22522); Tue, 02 Feb 2016 22:09:02 +0000 Original-Received: (at 22522) by debbugs.gnu.org; 2 Feb 2016 22:08:37 +0000 Original-Received: from localhost ([127.0.0.1]:57205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQj7k-0006VH-UY for submit@debbugs.gnu.org; Tue, 02 Feb 2016 17:08:37 -0500 Original-Received: from limerock02.mail.cornell.edu ([128.84.13.242]:45164) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQj7k-0006V5-2r for 22522@debbugs.gnu.org; Tue, 02 Feb 2016 17:08:36 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u12M8SgZ010568; Tue, 2 Feb 2016 17:08:28 -0500 Original-Received: from [10.13.22.4] (65-112-130-194.dia.static.qwest.net [65.112.130.194]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u12M8QJm027418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 2 Feb 2016 17:08:28 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <56B110B6.3090703@cornell.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112299 Archived-At: On 2/2/2016 3:25 PM, Ken Brown wrote: > On 2/2/2016 9:20 AM, Wolfgang Jenkner wrote: >> On Mon, Feb 01 2016, Ken Brown wrote: >> >>> ../../master/src/alloc.c: In function ‘lisp_align_malloc’: >>> ../../master/src/alloc.c:1247:7: warning: implicit declaration of >>> function ‘hybrid_aligned_alloc’ [-Wimplicit-function-declaration] >> >> Before Paul's 7fdc3cf, src/alloc.c used to contain a declaration for >> aligned_alloc(), which a preprocessor definition turned into >> a declaration for hybrid_aligned_alloc(). The preprocessor definition >> was redundant as it is contained in src/conf_post.h as well, but the >> declaration has to be supplied by some other include file. >> >> (For FreeBSD, stdlib.h, which alloc.c includes, supplies the >> declaration, guarded by #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= >> 201103L, which is true by default, at least on FreeBSD 10). > > Cygwin's stdlib.h also has the declaration with the same guard. But for > some reason, alloc.c is still not getting the declaration. I'll have to > figure out what's going on. OK, here's what's happening. config.h defines _GNU_SOURCE. The following excerpt from /usr/include/sys/cdefs.h then causes __ISO_C_VISIBLE to be defined as 1999, thereby hiding the declaration of aligned_alloc: #ifdef _GNU_SOURCE [...] #define _XOPEN_SOURCE 700 [...] #endif [...] #if _XOPEN_SOURCE - 0 >= 700 [...] #define _POSIX_C_SOURCE 200809 [...] #endif [...] #if _POSIX_C_SOURCE >= 200809 [...] #define __ISO_C_VISIBLE 1999 [...] #endif /* _POSIX_C_SOURCE */ Paul, I can ask on the Cygwin list whether this should be changed to be more in line with other platforms. In the meantime, what's the best way to deal with this? Ken