From owner-ports-jp@jp.freebsd.org  Tue Mar  2 01:49:17 1999
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) id BAA25649;
	Tue, 2 Mar 1999 01:49:17 +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.2+3.1W/8.7.3) with ESMTP id BAA25644
	for <ports-jp@jp.freebsd.org>; Tue, 2 Mar 1999 01:49:15 +0900 (JST)
	(envelope-from taoka@infonets.hiroshima-u.ac.jp)
Received: from peg.infonets.hiroshima-u.ac.jp (peg.infonets.hiroshima-u.ac.jp [133.41.33.64])
	by diana.infonets.hiroshima-u.ac.jp (8.8.8/3.6W) with ESMTP id BAA19152
	for <ports-jp@jp.freebsd.org>; Tue, 2 Mar 1999 01:49:15 +0900 (JST)
Received: from localhost (localhost.infonets.hiroshima-u.ac.jp [127.0.0.1]) by peg.infonets.hiroshima-u.ac.jp (8.9.2/3.6W) with ESMTP
	id BAA20860 for <ports-jp@jp.freebsd.org>; Tue, 2 Mar 1999 01:49:14 +0900 (JST)
To: ports-jp@jp.freebsd.org
From: TAOKA Satoshi <taoka@infonets.hiroshima-u.ac.jp>
In-Reply-To: Your message of "Tue, 02 Mar 1999 01:46:06 +0900"
	<19990302014606R.nakaji@zeisei.dpri.kyoto-u.ac.jp>
References: <19990302014606R.nakaji@zeisei.dpri.kyoto-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_Mar__2_01:49:13_1999_518)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19990302014914C.taoka@infonets.hiroshima-u.ac.jp>
Date: Tue, 02 Mar 1999 01:49:14 +0900
X-Dispatcher: imput version 980905(IM100)
Lines: 117
Reply-To: ports-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+981115
X-Sequence: ports-jp 5896
Subject: [ports-jp 5896] Re: mule-wnn6 fails on FreeBSD(98)-4.0-current
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org
X-Originator: taoka@infonets.hiroshima-u.ac.jp

----Next_Part(Tue_Mar__2_01:49:13_1999_518)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit


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


> $B$J$+$8!wF|K\8lF~NO4D6-I|3h(B

$B$3$s$P$s$O!#(B

> cd /usr/ports/japanese/mule-wnn6
> cd work/emacs-19.34b/lib-src
> gmake LOADLIBES="-lutil -lcrypt -lxpg4    -lc -lcompat"
> cd ../../../
> make install
> 
> $B$H$d$k$H!"$&$^$/?J$s$G$$$k$h$&$G$9!#(B

$B$3$N$"$H$G7k9=$G$9$,!"(B

Subject: [ports-jp 5722] Compile error on XEmacs/Mule

$B$NBP:v$b;n$7$F$b$i$($^$;$s$+(B?

/usr/ports/editors/mule-common/patches/patch-ac$B$rE:IU$N%Q%C%A$KF~$lBX$((B
$B$F$/$@$5$$!#(B


----Next_Part(Tue_Mar__2_01:49:13_1999_518)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: patch-ac
Content-Disposition: attachment; filename=patch-ac

--- src/s/freebsd.h.orig	Mon Jun 10 05:14:32 1996
+++ src/s/freebsd.h	Sat Jan 16 22:17:58 1999
@@ -1,5 +1,15 @@
 /* s/ file for freebsd system.  */
 
+/* Get the correct __FreeBSD_version, even if this is before that was
+   defined. */
+#ifndef __FreeBSD__
+#define __FreeBSD_version 199401
+#elif __FreeBSD__ == 1
+#define __FreeBSD_version 199405
+#else
+#include <osreldate.h>
+#endif
+
 /* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up.
    Earlier versions do not have shared libraries, so inhibit them.
    You can inhibit them on newer systems if you wish
@@ -34,7 +44,6 @@
 #define LIBS_DEBUG
 #define LIBS_SYSTEM -lutil
 #define LIBS_TERMCAP -ltermcap
-#define LIB_GCC -lgcc
 
 #define SYSV_SYSTEM_DIR
 
@@ -42,12 +51,33 @@
 #undef BSD_PGRPS
 #define GETPGRP_NO_ARG
 
+#ifdef __ELF__
+
+#define LD_SWITCH_SYSTEM
+#ifdef i386
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
+#else
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
+#endif
+#define UNEXEC unexelf.o
+#undef LIB_GCC
+#define LIB_GCC
+
+#else /* not __ELF__ */
+
 #ifndef NO_SHARED_LIBS
 #define LD_SWITCH_SYSTEM -e start -dc -dp
 #define HAVE_TEXT_START		/* No need to define `start_of_text'. */
+#if __FreeBSD_version >= 300002
+#define START_FILES pre-crt0.o /usr/lib/aout/crt0.o
+#else /* __FreeBSD_version < 300002 */
 #define START_FILES pre-crt0.o /usr/lib/crt0.o
-#define UNEXEC unexsunos4.o
+#endif /* __FreeBSD_version < 300002 */
+#define UNEXEC unexfreebsd.o
 #define RUN_TIME_REMAP
+#define LIB_GCC -lgcc
 
 #ifndef N_TRELOFF
 #define N_PAGSIZ(x) __LDPGSZ
@@ -63,6 +93,8 @@
 #endif /* __FreeBSD__ */
 #endif /* NO_SHARED_LIBS */
 
+#endif /* not __ELF__ */
+
 #define HAVE_WAIT_HEADER
 #define HAVE_GETLOADAVG
 /*#define HAVE_GETPAGESIZE  /* configure now puts this in config.h */
@@ -80,6 +112,8 @@
 #define BSD 199103
 #elif __FreeBSD__ == 2
 #define BSD 199306
+#elif __FreeBSD__ >= 3
+#define BSD 199506
 #endif
 
 #define WAITTYPE int

----Next_Part(Tue_Mar__2_01:49:13_1999_518)----
