*BSD News Article 87998


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!newsfeeds.sol.net!europa.clark.net!newsfeed.internetmci.com!kirin.wwa.com!news.oz.net!usenet
From: Bill&Virginia Hodges <hodges@oz.net>
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: How to make NetBSD-1.2 i386 execute ELF binaries
Date: Sat, 01 Feb 1997 09:09:09 -0800
Organization: Sense Networking (http://www.oz.net)
Lines: 57
Message-ID: <32F378B5.41C67EA6@oz.net>
References: <32ED6F29.41C67EA6@oz.net> <5clb32$g3o$1@vishnu.jussieu.fr> <5cpkvv$7u4@doom> <5cq98h$cam@trumpet.uni-mannheim.de>
NNTP-Posting-Host: hodges.oz.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (X11; I; NetBSD 1.2 i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5273

Andrew Wheadon wrote:
> 
> In article <5cpkvv$7u4@doom>, Paul Newhouse <pimin@diac.com> wrote:
> >In article <5clb32$g3o$1@vishnu.jussieu.fr>,
> >       bouyer@antifer.ibp.fr (Manuel BOUYER) writes:
> >>Yes. Put COMPAT_LINUX or COMPAT_SVR4 in your kernel config file (they are
> >>mutually exclusives).
> >Hmmm!  Not very nice of GENERIC to have come with both defined and
> >not commented as such.
> They are not mutually exclusive except for ELF binaries so if you
> leave both of them defined you can run a.out binaries from both
> linux and svr4, and whichever elf-format gets checked first (Linux
> as far as I remember) from one or the other system but not both.
> Also for newer Versions of NetBSD you need to add: EXEC_ELF32
> Cheerio
> 
> --
> The cost of living hasn't affected its popularity. (Mark Twain)
> current release=doc host=netbsd.wifo.uni-mannheim.de \ "NetBSD-current mirror"
> hostbase=/mit/ftp/pub/NetBSD base=/usr prefix=/usr backup delete use-rel-suffix
I rebuilt kernel specifying:
options         COMPAT_NOMID    # compatibility with 386BSD, BSDI,
NetBSD 0.8,
options         COMPAT_09       # NetBSD 0.9,
options         COMPAT_10       # NetBSD 1.0,
options         COMPAT_11       # NetBSD 1.1,
options         COMPAT_43       # and 4.3BSD
options         TCP_COMPAT_42   # TCP bug compatibility with 4.2BSD

options         COMPAT_SVR4     # binary compatibility with SVR4
options         COMPAT_IBCS2    # binary compatibility with SCO and ISC
options         COMPAT_LINUX    # binary compatibility with Linux
options         COMPAT_FREEBSD  # binary compatibility with FreeBSD

options         EXEC_ELF32      # To execute linux &SVR4  exectables

When I execute I get:
localhost[bin] 67 > file *
acolorman:     ELF 32-bit LSB executable, Intel 80386, version 1
andrewdirs:    ELF 32-bit LSB executable, Intel 80386, version 1
ez:            symbolic link to runapp
ez2ascii:      ELF 32-bit LSB executable, Intel 80386, version 1
ez2html:       symbolic link to runapp
ez2ps:         C shell script text
ezpostprocess: Bourne shell script text
ezprint:       symbolic link to runapp
indexpro:      ELF 32-bit LSB executable, Intel 80386, version 1
printscribe:   C shell script text
recover:       ELF 32-bit LSB executable, Intel 80386, version 1
runapp:        ELF 32-bit LSB executable, Intel 80386, version 1
scribetext:    ELF 32-bit LSB executable, Intel 80386, version 1
toez:          symbolic link to runapp
localhost[bin] 68 > recover
recover: Exec format error. Wrong Architecture.
localhost[bin] 69 > 

What am I doing wrong?