GNU bug report logs - #15094
Fix for posix_memalign on Cygwin

Previous Next

Package: emacs;

Reported by: Ken Brown <kbrown <at> cornell.edu>

Date: Wed, 14 Aug 2013 16:23:02 UTC

Severity: normal

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ken Brown <kbrown <at> cornell.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#15094: closed (Fix for posix_memalign on Cygwin)
Date: Wed, 14 Aug 2013 19:12:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 14 Aug 2013 15:11:09 -0400
with message-id <520BD64D.2000906 <at> cornell.edu>
and subject line Re: bug#15094: Fix for posix_memalign on Cygwin
has caused the debbugs.gnu.org bug report #15094,
regarding Fix for posix_memalign on Cygwin
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
15094: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15094
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ken Brown <kbrown <at> cornell.edu>
To: emacs-bug <bug-gnu-emacs <at> gnu.org>
Subject: Fix for posix_memalign on Cygwin
Date: Wed, 14 Aug 2013 12:22:18 -0400
[Message part 3 (text/plain, inline)]
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.)

Thanks.

Ken
[memalign.patch (text/plain, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Ken Brown <kbrown <at> cornell.edu>
To: 15094-done <at> debbugs.gnu.org
Subject: Re: bug#15094: Fix for posix_memalign on Cygwin
Date: Wed, 14 Aug 2013 15:11:09 -0400
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



This bug report was last modified 11 years and 360 days ago.

Previous Next


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