From xemacs-m  Mon Jun 23 00:26:32 1997
Received: from ns.jsys.co.jp (ns.jsys.co.jp [202.33.240.82])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id AAA25813
	for <xemacs-beta@xemacs.org>; Mon, 23 Jun 1997 00:26:30 -0500 (CDT)
Received: from cosmos.jsys.co.jp (cosmos.jsys.co.jp [172.31.80.5])
	by ns.jsys.co.jp (8.8.6/8.8.6) with ESMTP id OAA14694
	for <xemacs-beta@xemacs.org>; Mon, 23 Jun 1997 14:26:32 +0900 (JST)
Received: from skywalk.jsys.co.jp (j-04110.jsys.co.jp [172.31.49.72])
	by cosmos.jsys.co.jp (8.8.6/8.8.6/NOTES) with ESMTP id OAA23235
	for <xemacs-beta@xemacs.org>; Mon, 23 Jun 1997 14:26:31 +0900 (JST)
Received: (from ienaga@localhost) by skywalk.jsys.co.jp (8.8.5/3.5Wpl2) id OAA26513; Mon, 23 Jun 1997 14:26:05 +0900 (JST)
To: xemacs-beta@xemacs.org
Subject: Copenhagen build ok on FreeBSD 2.2.2
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Mon_Jun_23_14:26:05_1997-1"
Content-Transfer-Encoding: 7bit
From: Kazuyuki IENAGA <ienaga@jsys.co.jp>
Date: 23 Jun 1997 14:26:05 +0900
Message-ID: <rysd8pd3n6a.fsf@skywalk.jsys.co.jp>
Lines: 68
X-Mailer: Gnus v5.4.59/XEmacs 20.3(beta8) - "Copenhagen"
X-Face:  czfHfB+cCdftWr4Fwe9^^-!_PKouj^vkcIk4Hg_xxx<~JF.4vv)^7jM;w_w'(UZ#{K&xpz:
 [v3`j%a.u`CP*Tbsm[N0PYlk&+xt3Vd1KZL%'I+v,:*0\(akF?Vf>l_VeOHH]2.Z6^e_O;zDZJW.


--Multipart_Mon_Jun_23_14:26:05_1997-1
Content-Type: text/plain; charset=US-ASCII

Finaly I got running Copenhagen.



Here's what I had to do.

1. configure


--Multipart_Mon_Jun_23_14:26:05_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="configure.diff"
Content-Transfer-Encoding: 7bit

--- configure	1997/06/23 02:30:41	1.1
+++ configure	1997/06/23 03:03:06
@@ -2124,7 +2140,7 @@
 ' > $tempcname
 CPP=`eval "echo $CPP"`
 eval `$CPP -Isrc $tempcname \
-	| sed -n -e "s/[ \t]*=[ \t\"]*/='/" -e "s/[ \t\"]*\$/'/" -e "s/^configure___//p"`
+	| sed -n -e "s/[ 	]*=[ 	\"]*/='/" -e "s/[ 	\"]*\$/'/" -e "s/^configure___//p"`
 
 
 rm $tempcname

--Multipart_Mon_Jun_23_14:26:05_1997-1
Content-Type: text/plain; charset=US-ASCII


2. src/s/freebsd.h

By default, configure produced src/Makefile to use *ld* as a linker
for FreeBSD, and it set "-Xlinker xx" as ld's argument.

It produces the error as bellow:
    ld: start: No such file or directory

gcc accepts -Xlinker option, but ld does not.


--Multipart_Mon_Jun_23_14:26:05_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="freebsd.h.diff"
Content-Transfer-Encoding: 7bit

--- src/s/freebsd.h	1997/06/23 04:03:16	1.1
+++ src/s/freebsd.h	1997/06/23 04:06:52
@@ -41,6 +41,7 @@
 
 #ifndef NO_SHARED_LIBS
 #define LD_SWITCH_SYSTEM "-dc -dp -e start"
+#define LINKER "$(CC) -nostdlib"
 #define HAVE_TEXT_START		/* No need to define `start_of_text'. */
 #define START_FILES "pre-crt0.o /usr/lib/crt0.o"
 #define UNEXEC "unexfreebsd.o"


--Multipart_Mon_Jun_23_14:26:05_1997-1
Content-Type: text/plain; charset=US-ASCII

3.  libgcc didn't linked as it's said in PROBLEMS :-<


--Multipart_Mon_Jun_23_14:26:05_1997-1--

