*BSD News Article 19169


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!sdd.hp.com!math.ohio-state.edu!cs.utexas.edu!uunet!bloom-beacon.mit.edu!paperboy.osf.org!paperboy!brezak
From: brezak@york.osf.org (John Brezak)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Using emacs under NetBSD-current
Date: 4 Aug 93 16:02:07
Organization: /afs/ri/user/brezak/.organization
Lines: 54
Message-ID: <BREZAK.93Aug4160207@york.osf.org>
References: <23og5a$4jm@hrd769.brooks.af.mil>
NNTP-Posting-Host: york.osf.org
In-reply-to: burgess@hrd769.brooks.af.mil's message of 4 Aug 1993 09:12:44 -0500

In article <23og5a$4jm@hrd769.brooks.af.mil> burgess@hrd769.brooks.af.mil (Dave Burgess) writes:

   Path: paperboy.osf.org!bloom-beacon.mit.edu!news.kei.com!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail
   From: burgess@hrd769.brooks.af.mil (Dave Burgess)
   Newsgroups: comp.os.386bsd.questions
   Date: 4 Aug 1993 09:12:44 -0500
   Organization: Armstrong Laboratory, Brooks AFB, TX
   Lines: 20
   NNTP-Posting-Host: hrd769.brooks.af.mil

   I am trying to recompile emacs (either 19.17 or 18.59) so that I can use
   it under NetBSD current.

   The old 386bsd image works OK, except for the /etc/pwd.db format errors,
   but emacs versions using precisely the same setup fail when compiled
   under NetBSD.  I suspect that the crt0.c file that is included with the
   released version on emacs is conflicting with the NetBSD one, although I
   am pretty clueless when it comes to understanding why...

   If anyone has managed to get emacs compiled under the NetBSD-current
   sources, could you drop me a line.

   Please post, since I don't read E-Mail very often :-)


   -- 
   ------
   TSgt Dave Burgess
   NCOIC AL/Management Information Systems Office
   Brooks AFB, TX

If you get a working temacs, but the dumped version is trashed, then add this
to the config.h (or someplace more appropriate).

/* Say that the text segment of a.out includes the header;
   the header actually occupies the first few bytes of the text segment
   and is counted in hdr.a_text.  */

#define A_TEXT_OFFSET(HDR) sizeof (HDR)

/* This is the offset of the executable's text, from the start of the file.  */

#define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))

(I suspect a *real* patch will be posted soon...)

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 John Brezak                    UUCP:     uunet!osf!brezak
 Open Software Foundation       Internet: brezak@osf.org
 11 Cambridge Center            Fax:      (617) 621 8696
 Cambridge, Massachusetts       Phone:    (617) 621-7350