From owner-ports-jp@jp.freebsd.org  Tue Sep 29 13:55:01 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id NAA23994;
	Tue, 29 Sep 1998 13:55:01 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from diana.infonets.hiroshima-u.ac.jp (diana.infonets.hiroshima-u.ac.jp [133.41.33.53])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id NAA23987
	for <ports-jp@jp.freebsd.org>; Tue, 29 Sep 1998 13:54:59 +0900 (JST)
	(envelope-from taoka@infonets.hiroshima-u.ac.jp)
Received: from cal.infonets.hiroshima-u.ac.jp (cal.infonets.hiroshima-u.ac.jp [133.41.33.61])
	by diana.infonets.hiroshima-u.ac.jp (8.8.8/3.6W) with ESMTP id NAA18397
	for <ports-jp@jp.freebsd.org>; Tue, 29 Sep 1998 13:54:46 +0900 (JST)
Received: from localhost (localhost.infonets.hiroshima-u.ac.jp [127.0.0.1]) by cal.infonets.hiroshima-u.ac.jp (8.8.8/3.6W) with ESMTP
	id NAA04852 for <ports-jp@jp.freebsd.org>; Tue, 29 Sep 1998 13:54:46 +0900 (JST)
To: ports-jp@jp.freebsd.org
From: TAOKA Satoshi <taoka@infonets.hiroshima-u.ac.jp>
In-Reply-To: Your message of "Tue, 29 Sep 1998 12:14:30 +0900"
	<19980929121430G.taoka@infonets.hiroshima-u.ac.jp>
References: <19980929121430G.taoka@infonets.hiroshima-u.ac.jp>
X-Mailer: Mew version 1.93 on XEmacs 20.4 (Emerald)
X-Prom-Mew: Prom-Mew 1.93 (procmail reader for Mew)
X-URL: http://www.infonets.hiroshima-u.ac.jp/~taoka/
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Tue_Sep_29_13:54:42_1998_809)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19980929135445Y.taoka@infonets.hiroshima-u.ac.jp>
Date: Tue, 29 Sep 1998 13:54:45 +0900
X-Dispatcher: imput version 980905(IM100)
Lines: 81
Reply-To: ports-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980914
X-Sequence: ports-jp 4522
Subject: [ports-jp 4522] XEmacs under ELF (Re: mule cannot be made)
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org

----Next_Part(Tue_Sep_29_13:54:42_1998_809)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit


$BED2,$G$9!#(B

From: TAOKA Satoshi <taoka@infonets.hiroshima-u.ac.jp>
Subject: [ports-jp 4518] Re: mule cannot be made
Date: Tue, 29 Sep 1998 12:14:30 +0900
Message-ID: <19980929121430G.taoka@infonets.hiroshima-u.ac.jp>

> > 
> > $B$=$&$G$9$M!#6M;3$5$s$7$^$9$+!)(B
> 
> $B2H1J$5$s$N%Q%C%A$r$=$N$^$^(BXEmacs 20.4$B$KEv$j$^$9!#$$$^(Bbuild$B$7$F$^$9!#$=$l(B
> $B$G!"7k2L$,=P$?$i$*CN$i$;$7$^$9!#(B

OK$B$G$9!#$_$J$5$s;n$7$F$/$@$5$$!#(B
$B2H1J$5$s$N%Q%C%A$O%Q%9$,$A$g$C$H0c$&$N$G!"<h$jD>$7$^$7$?!#$=$l$rE:IU$7$F(B
$B$*$-$^$9!#(B

editors/xemacs-mule-common/patches/
editors/xemacs20/patches/

$B$K(Bpatch-ah$B$H$7$F$*$$$F$/$@$5$$!#!V(Bah$B!W$J$N$O(Bxemacs20$B$K9g$o$;$?$+$i$G$9!#(B


----Next_Part(Tue_Sep_29_13:54:42_1998_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: patch-ah
Content-Disposition: attachment; filename=patch-ah

--- orig/s/freebsd.h	Mon Oct 13 13:47:36 1997
+++ src/s/freebsd.h	Tue Sep 29 12:08:15 1998
@@ -45,6 +45,20 @@
 
 #define LIBS_TERMCAP "-ltermcap"
 
+#ifdef __ELF__ /* since from 3.0-CURRENT(maybe 19980831 or later) */
+#ifndef NOT_C_CODE
+#include <stddef.h>
+#endif
+#define LD_SWITCH_SYSTEM
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
+#define UNEXEC unexelf.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
+#define LINKER "$(CC) -nostdlib"
+#undef LIB_GCC
+#define LIB_GCC
+
+#else /* not __ELF__ */
+
 #ifndef NO_SHARED_LIBS
 #if 0 /* mrb */
 #define LIB_GCC "-lgcc"
@@ -74,6 +88,8 @@
 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
 #endif /* __FreeBSD__ */
 #endif /* NO_SHARED_LIBS */
+
+#endif /* not __ELF__ */
 
 #define HAVE_GETLOADAVG
 /* #define NO_TERMIO */ /* detected in configure */
--- orig/unexelf.c	Fri Feb 13 08:28:06 1998
+++ src/unexelf.c	Tue Sep 29 12:08:15 1998
@@ -846,7 +846,9 @@
 
       for (; symp < symendp; symp ++)
 	if (strcmp ((char *) (symnames + symp->st_name), "_end") == 0
-	    || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0)
+	    || strcmp ((char *) (symnames + symp->st_name), "end") == 0
+	    || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0
+	    || strcmp ((char *) (symnames + symp->st_name), "edata") == 0)
 	  memcpy (&symp->st_value, &new_bss_addr, sizeof (new_bss_addr));
     }
 

----Next_Part(Tue_Sep_29_13:54:42_1998_809)----
