*BSD News Article 29966


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!news.intercon.com!udel!newsserv.cs.sunysb.edu!home.stark.cs.sunysb.EDU!stark!stark!gene
From: stark!gene@newsserv.cs.sunysb.edu (Gene Stark)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Working Gnu Emacs 18.59 for FreeBSD 1.1 Gamma? Also 'file' bug.
Date: 26 Apr 94 22:35:18
Organization: Gene Stark's home system
Lines: 24
Distribution: world
Message-ID: <STARK!GENE.94Apr26223518@stark.uucp>
References: <CSHAKER.94Apr25150312@shaker-bsd.cisco.com>
NNTP-Posting-Host: home.stark.cs.sunysb.edu
In-reply-to: cshaker@shaker-bsd.cisco.com's message of 25 Apr 94 15:03:12

In article <CSHAKER.94Apr25150312@shaker-bsd.cisco.com> cshaker@shaker-bsd.cisco.com (Christopher J. Shaker) writes:

>  When I've attempted to build Gnu emacs 18.59 from sources that built and ran
>  on FreeBSD 1.0.2, I got an error about '__DYNAMIC' being undefined. So, I
>  assumed that it was trying to use the dynamic shared libraries, so I did a
>  'make clean', and added '#define LD_SWITCH_MACHINE "-static"' to my
>   'src/config.h' file to force 'ld' to use static libraries.

Yes, this is correct.

>   Another thing to note is that the 'file' command in 1.1 Gamma thinks that
>   the '*.o' files that I built are PDP-11 executables!

You need a new /etc/magic.

>   I then can build Gnu emacs aok, *but*, when I attempt to run it, I get the
>   following garbage output and errors:

You need to also add the undocumented -Z option to LD_SWITCH_MACHINE.
This causes the linker to produce old format executables.  The Emacs
dump code cannot properly dump an executable in the new format.

							- Gene Stark
--