From owner-freebsd-questions Sat Mar 27 19:51:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from terror.hungry.com (terror.hungry.com [199.181.107.40]) by hub.freebsd.org (Postfix) with SMTP id C91B814EBE for ; Sat, 27 Mar 1999 19:51:37 -0800 (PST) (envelope-from fn@hungry.com) Received: (qmail 9130 invoked by uid 0); 28 Mar 1999 03:51:18 -0000 Received: from siren.hungry.com (undead@199.181.107.129) by terror.hungry.com with SMTP; 28 Mar 1999 03:51:17 -0000 Received: (qmail 25631 invoked by uid 507); 28 Mar 1999 03:51:33 -0000 From: Faried Nawaz To: FreeBSD Questions Subject: Re: emacs 18.59. Reply-To: Faried Nawaz References: <19990327150416.362951.FMU5280@siren.hungry.com> <19990328115128.V53452@lemis.com> Date: 27 Mar 1999 19:51:33 -0800 In-Reply-To: Greg Lehey's message of "Sun, 28 Mar 1999 11:51:28 +0930" Message-ID: Lines: 27 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey writes: No, but have you tried just building it? I can probably drag out some port logs if you run into trouble, but it would be nice to know what goes wrong first. Emacs, as you probably know, builds itself from the C source, and creates an executable named "temacs". temacs loads some of the lisp source, and then "undumps" itself to create the proper emacs executable. There are minor problems getting it to build (have to add a __progname symbol to emacs' crt0.c, fix the sys_errlist definitions, etc), but the main problem is getting it to undump correctly. src/unexec.c in the source distribution is geared towards a.out executables. Perhaps the best thing to try is to grab unexec for FreeBSD from a recent Emacs version. I've also found some stuff in ftp://alpha.gnu.org/friedman/ that might help (it's geared towards Linux/ELF). My main reason for mailing chat was to save myself the trouble of figuring out how executables are set up internally -- it's an area I'm not familiar with. I was hoping someone else had already gone through the trouble of building it. faried. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message