From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.devel Subject: Re: [Mac-emacs-devel] "./configure --with-x --without-carbon" on MacOSX Date: Wed, 31 Jul 2002 21:41:41 -0600 Sender: emacs-devel-admin@gnu.org Message-ID: <15820.0327343822$1028173301@news.gmane.org> References: <3D8EFAA7-9319-11D6-977B-003065CDBD6E@mac.com> Reply-To: akochoi@shaw.ca NNTP-Posting-Host: localhost.gmane.org Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1028173301 24075 127.0.0.1 (1 Aug 2002 03:41:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 Aug 2002 03:41:41 +0000 (UTC) Cc: mac-emacs-devel@lists.sourceforge.net, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17a6qJ-0006GA-00 for ; Thu, 01 Aug 2002 05:41:39 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17a78o-0001XQ-00 for ; Thu, 01 Aug 2002 06:00:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17a6qg-0005Go-00; Wed, 31 Jul 2002 23:42:02 -0400 Original-Received: from h24-71-223-10.cg.shawcable.net ([24.71.223.10] helo=pd2mo2so.prod.shaw.ca) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17a6qQ-0005GR-00 for ; Wed, 31 Jul 2002 23:41:46 -0400 Original-Received: from pd2mr4so.prod.shaw.ca (pd2mr4so-ser.prod.shaw.ca [10.0.141.107]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0500NL7BLL29@l-daemon> for emacs-devel@gnu.org; Wed, 31 Jul 2002 21:41:45 -0600 (MDT) Original-Received: from pn2ml8so.prod.shaw.ca (pn2ml8so-qfe0.prod.shaw.ca [10.0.121.152]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0500G1XBLLUZ@l-daemon> for emacs-devel@gnu.org; Wed, 31 Jul 2002 21:41:45 -0600 (MDT) Original-Received: from localhost.shawmail (h24-71-203-212.cg.shawcable.net [24.71.203.212]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0500B50BLKI4@l-daemon> for emacs-devel@gnu.org; Wed, 31 Jul 2002 21:41:45 -0600 (MDT) In-Reply-To: <3D8EFAA7-9319-11D6-977B-003065CDBD6E@mac.com> Original-To: nand@mac.com Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6215 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6215 Hi Nozomu, Thanks! This is a very nice patch. I've checked this into the CVS and added your installation instructions below to the file mac/INSTALL. Andrew. [I have not tested this patch because I do not have X Window on my Mac. I invite everyone interested to try it.] > Hi, > > I had to compile emacs of current CVS tree with X window support on > MacOSX. But > > ./configure --with-x --without-carbon > > did not work. I think there are two problems. > > P1. Some symbols conflict between code for X and code for Carbon. > P2. Even when the abobe problem is solved, temacs linked with X dynlib > cannot unexec. > > To solve the problem 1, I made small patch attached to this mail. > > I think I cannot solve the problem 2. But there is workaround. e.g.: > > W2a. make directory contains only statically-linked X library. > % sudo mkdir /usr/X11R6/libstatic > % cd /usr/X11R6/libstatic > % sudo ln -s ../lib/lib*.a ../lib/X11 . > W2b. configure Emacs with the libraries. > % ./configure --without-carbon --with-x --x- > libraries=/usr/X11R6/libstatic > > This emacs on XDarwin also works fine for me. > > I hope this helps. > > Nozomu Ando > ----- > > Index: src/s/darwin.h > =================================================================== > RCS file: /cvsroot/emacs/emacs/src/s/darwin.h,v > retrieving revision 1.3 > diff -u -r1.3 darwin.h > --- src/s/darwin.h 1 Jul 2002 23:30:21 -0000 1.3 > +++ src/s/darwin.h 9 Jul 2002 08:21:26 -0000 > @@ -40,8 +40,10 @@ > /* MAC_OS is used to conditionally compile code common to both MAC_OS8 > and MAC_OSX. */ > #ifdef MAC_OSX > +#ifdef HAVE_CARBON > #define MAC_OS > #endif > +#endif > > /* SYSTEM_TYPE should indicate the kind of system you are using. > It sets the Lisp variable system-type. */ > @@ -222,7 +224,9 @@ > #define HAVE_SOCKETS > > /* Extra initialization calls in main for Mac OS X system type. */ > +#ifdef HAVE_CARBON > #define SYMS_SYSTEM syms_of_mac() > +#endif > > /* Definitions for how to dump. Copied from nextstep.h. */ > > @@ -271,7 +275,9 @@ > > /* Tell src/Makefile.in to create files in the Mac OS X application > bundle mac/Emacs.app. */ > +#ifdef HAVE_CARBON > #define OTHER_FILES macosx-app > +#endif > > > /* Define the following so emacs symbols will not conflict with those