From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: On the rebasing problem of Emacs on Cygwin Date: Sat, 16 Dec 2006 10:29:28 +0100 (MET) Message-ID: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1166261405 1036 80.91.229.10 (16 Dec 2006 09:30:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2006 09:30:05 +0000 (UTC) Cc: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 16 10:30:03 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvVrn-0001VZ-0e for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 10:30:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvVrm-0000h7-8u for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 04:30:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvVrV-0000gi-90 for emacs-devel@gnu.org; Sat, 16 Dec 2006 04:29:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvVrS-0000fs-Dn for emacs-devel@gnu.org; Sat, 16 Dec 2006 04:29:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvVrS-0000fc-7x for emacs-devel@gnu.org; Sat, 16 Dec 2006 04:29:42 -0500 Original-Received: from [141.108.26.25] (helo=postino2.roma1.infn.it) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GvVrO-0004En-Ou; Sat, 16 Dec 2006 04:29:39 -0500 Original-Received: from ax0rm1.roma1.infn.it (ax0rm1.roma1.infn.it [141.108.26.19]) by postino2.roma1.infn.it (8.12.11/8.12.11) with ESMTP id kBG9TWSw028961; Sat, 16 Dec 2006 10:29:33 +0100 Original-Received: from localhost (graziosi@localhost) by ax0rm1.roma1.infn.it (8.9.3/8.9.3) with ESMTP id KAA11943; Sat, 16 Dec 2006 10:29:28 +0100 (MET) Original-To: emacs-devel@gnu.org X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.16.2933 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_MEDIA_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' 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:63824 Archived-At: I want to report the following, hoping it can be useful for other users of Emacs on Cygwin. Usually, on Cygwin, one needs to rebase (the DLLs) if an application aborts with a message like this example: ------------- C:\cygwin\bin\python.exe: *** unable to remap C:\cygwin\bin\cygssl.dll to same address as parent(0xDF0000) != 0xE00000 ------------- But, since Cygwin DLL 1.5.17 was released, after the rebasing, Emacs hangs. This happens for the current version 21.2-13 and the exp. ver. 21.3.50-2 on Cygwin. And also for Emacs-CVS. So I have found useful to build Emacs-CVS in this way ---------------------------------------------- LDFLAGS='-Wl,--enable-auto-import -Wl,--enable-auto-image-base' \ ../configure --prefix=/usr/local/emacs-cvs make LD='$(CC)' bootstrap make LD='$(CC)' install ----------------------------------------------- This makes Emacs independent of rebasing. Note that it needs LD='$(CC)' in the bootstrap so that the GCC command line is gcc ... -Wl,--enable-auto-import -Wl,--enable-auto-image-base ... otherwise it would be gcc ... -Wl,--image-base,0x20000000 -Wl,--enable-auto-import -Wl,--enable-auto-image-base... and Emacs would be built with the base address 0x20000000 and rebasing Cygwin DLLs would cause the hanging. Regards, Angelo.