From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: New emacs maintainer for cygwin Date: Tue, 19 May 2009 20:21:15 -0400 Message-ID: <4A134CFB.7070403@cornell.edu> References: <4A0D7111.7090800@cornell.edu> <83ljoyqwmn.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242778903 25577 80.91.229.12 (20 May 2009 00:21:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 00:21:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 20 02:21:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M6ZYu-0006js-G8 for ged-emacs-devel@m.gmane.org; Wed, 20 May 2009 02:21:36 +0200 Original-Received: from localhost ([127.0.0.1]:41599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6ZYt-0005O0-AA for ged-emacs-devel@m.gmane.org; Tue, 19 May 2009 20:21:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6ZYn-0005LD-H8 for emacs-devel@gnu.org; Tue, 19 May 2009 20:21:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6ZYj-0005KT-5E for emacs-devel@gnu.org; Tue, 19 May 2009 20:21:29 -0400 Original-Received: from [199.232.76.173] (port=46831 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6ZYi-0005KQ-V9 for emacs-devel@gnu.org; Tue, 19 May 2009 20:21:24 -0400 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141]:41061 helo=authusersmtp.mail.cornell.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6ZYg-0008An-47; Tue, 19 May 2009 20:21:22 -0400 Original-Received: from [192.168.1.6] (cpe-67-241-20-9.twcny.res.rr.com [67.241.20.9]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id n4K0LGoo007394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 19 May 2009 20:21:17 -0400 (EDT) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83ljoyqwmn.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110989 Archived-At: On 5/15/2009 10:16 AM, Eli Zaretskii wrote: > There are also a few Cygwin-related problems in etc/PROBLEMS. I've started looking at this, and it's not clear to me exactly what is supposed to be in etc/PROBLEMS. If a problem is solved, should the discussion be updated to indicate what the solution was or should it just be deleted? Here's a specific example. There is a discussion in etc/PROBLEMS of a rebasing problem, followed by this workaround: > To work around this, build Emacs like this: > > LDFLAGS='-Wl,--enable-auto-import -Wl,--enable-auto-image-base' ./configure > make LD='$(CC)' > make LD='$(CC)' install > > This produces an Emacs binary that is independent of rebasing. > > Note that you _must_ use LD='$(CC)' in the last two commands above, to > prevent GCC from passing the "--image-base 0x20000000" option to the > linker, which is what it does by default. That option produces an > Emacs binary with the base address 0x20000000, which will cause Emacs > to hang after Cygwin DLLs are rebased. But a much more straightforward solution to the problem is to apply the following patch to src/s/cygwin.h: --- origsrc/emacs-23.0.92/src/s/cygwin.h 2009-01-08 06:46:27.000000000 -0500 +++ src/emacs-23.0.92/src/s/cygwin.h 2009-05-17 11:40:55.812500000 -0400 @@ -108,8 +108,12 @@ along with GNU Emacs. If not, see #define PTY_OPEN \ > > do \ > > { \ > > int dummy; \ > > SIGMASKTYPE mask; \ > > mask = sigblock (sigmask (SIGCHLD)); \ > > if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ > > fd = -1; \ > > sigsetmask (mask); \ > > emacs_close (dummy); \ > This will close a random number if openpty fails. > > #define vfork fork > This is a no-op since vfork == fork. Ken