*BSD News Article 60312


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!chi-news.cic.net!newsfeed.internetmci.com!in1.uu.net!news.reference.com!cnn.nas.nasa.gov!not-for-mail
From: thorpej@lestat.nas.nasa.gov (Jason R Thorpe)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: NetBSD 1.1 Linux binary compatibility...
Date: 28 Jan 1996 08:36:38 -0800
Organization: Numerical Aerodynamic Simulation Project - NASA Ames
Lines: 25
Message-ID: <4eg8mm$mnu@lestat.nas.nasa.gov>
References: <4eaan3$co2@nntp5.u.washington.edu>
NNTP-Posting-Host: lestat.nas.nasa.gov

In article <4eaan3$co2@nntp5.u.washington.edu>,
Zachary N. Fine <czyz@u.washington.edu> wrote:

>uncommented, but have yet to successfully run a Linux binary.  A class I'm
>taking distributes the assignments as header files and objects compiled under
>Linux, which I'm then supposed to use to test my source.  I'm having trouble
>linking and also unable to run the provided sample executable file, receiving
>the following error:
>
>/a.out: Exec format error. Wrong Architecture.

You can't link against Linux object files.  You might want to consider
asking your instructor for the source code used to make the object files
so that you can build them natively under NetBSD.

As for not being able to run the sample executable, a couple of things
pop to mind.  It may be dynamically linked, in which case you will need
to install Linux shared libraries on your system.  See the compat_linux(8)
manual page for more information.

-- 
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939