From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15094: Fix for posix_memalign on Cygwin Date: Wed, 14 Aug 2013 22:29:05 +0300 Message-ID: <8361v8oyv2.fsf@gnu.org> References: <520BAEBA.1030306@cornell.edu> <520BD64D.2000906@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376508566 13397 80.91.229.3 (14 Aug 2013 19:29:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 19:29:26 +0000 (UTC) Cc: 15094@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 14 21:29:28 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 1V9gl6-0003vu-6l for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 21:29:28 +0200 Original-Received: from localhost ([::1]:49713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gl5-0004g6-QU for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 15:29:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gkn-0004Kg-Fi for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:29:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9gkg-000609-SP for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:29:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gkg-0005zq-Ms for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V9gkg-0003Qs-5n for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Aug 2013 19:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15094 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15094-submit@debbugs.gnu.org id=B15094.137650852713168 (code B ref 15094); Wed, 14 Aug 2013 19:29:02 +0000 Original-Received: (at 15094) by debbugs.gnu.org; 14 Aug 2013 19:28:47 +0000 Original-Received: from localhost ([127.0.0.1]:58721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9gkQ-0003QK-KP for submit@debbugs.gnu.org; Wed, 14 Aug 2013 15:28:46 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43395) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9gkN-0003Pw-1U for 15094@debbugs.gnu.org; Wed, 14 Aug 2013 15:28:44 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MRJ00G00CK4P800@a-mtaout20.012.net.il> for 15094@debbugs.gnu.org; Wed, 14 Aug 2013 22:28:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRJ00GLKCROBO70@a-mtaout20.012.net.il>; Wed, 14 Aug 2013 22:28:36 +0300 (IDT) In-reply-to: <520BD64D.2000906@cornell.edu> X-012-Sender: halo1@inter.net.il 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:77355 Archived-At: > Date: Wed, 14 Aug 2013 15:11:09 -0400 > From: Ken Brown > > 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. Thanks, but could you please make the commentary more clear? I'm afraid it doesn't make sense to me: if posix_memalign calls memalign, then why does the latter have to be renamed, if all you want is for it to be called? Why won't it be called unless renamed? TIA