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#15094: Fix for posix_memalign on Cygwin Date: Wed, 14 Aug 2013 15:11:09 -0400 Message-ID: <520BD64D.2000906@cornell.edu> References: <520BAEBA.1030306@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376507536 2042 80.91.229.3 (14 Aug 2013 19:12:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 19:12:16 +0000 (UTC) To: 15094-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 14 21:12:18 2013 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 1V9gUT-0005Xf-P7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 21:12:17 +0200 Original-Received: from localhost ([::1]:49640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gUT-0004YR-9x for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 15:12:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gUK-0004Xy-Rz for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:12:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9gUE-0008HC-S4 for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:12:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gUE-0008H8-OV for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V9gUE-0002w0-J4 for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:12:02 -0400 Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Aug 2013 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15094 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15094@debbugs.gnu.org, kbrown@cornell.edu, kbrown@cornell.edu Original-Received: via spool by 15094-done@debbugs.gnu.org id=D15094.137650749911232 (code D ref 15094); Wed, 14 Aug 2013 19:12:01 +0000 Original-Received: (at 15094-done) by debbugs.gnu.org; 14 Aug 2013 19:11:39 +0000 Original-Received: from localhost ([127.0.0.1]:58702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9gTq-0002v3-Jk for submit@debbugs.gnu.org; Wed, 14 Aug 2013 15:11:39 -0400 Original-Received: from limerock02.mail.cornell.edu ([128.84.12.100]:35694) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9gTn-0002uk-1t for 15094-done@debbugs.gnu.org; Wed, 14 Aug 2013 15:11:36 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id r7EJBSK6014205 for <15094-done@debbugs.gnu.org>; Wed, 14 Aug 2013 15:11:29 -0400 Original-Received: from [128.84.234.244] (dhcp244.math.cornell.edu [128.84.234.244]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r7EJBS7Z013736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <15094-done@debbugs.gnu.org>; Wed, 14 Aug 2013 15:11:28 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <520BAEBA.1030306@cornell.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:77354 Archived-At: On 8/14/2013 12:22 PM, Ken Brown wrote: > Cygwin allows applications to supply their own malloc but not, until > today, their own posix_memalign. This has caused problems with the GTK > build of Emacs on Cygwin. The problem became worse with the latest Glib > update. Anyone who wants the gory details can find them starting here: > > http://cygwin.com/ml/cygwin-xfree/2013-08/msg00018.html > > Cygwin was just patched today to allow applications to supply their own > posix_memalign (but not their own memalign), which solves the Glib > problem. But posix_memalign in gmalloc.c calls memalign, so I need to > make sure that it calls Emacs's memalign. The attached patch does this. > Is this a reasonable way to handle the problem? (I plan to also add > an explanatory comment.) I made this more complicated than necessary. I've installed a simpler version as bzr revision 113880, and I'm closing the bug. Ken