*BSD News Article 94866


Return to BSD News archive

#! rnews 2172 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.telstra.net!act.news.telstra.net!news-out.internetmci.com!newsfeed.internetmci.com!news.vivanet.com!node2.frontiernet.net!usenet.logical.net!news.mathworks.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.maxwell.syr.edu!newsfeeder.toronto.ican.net!news.rochester.ican.net!newsin.iconnet.net!/news/spool/news!newsread.exodus.net!mike
From: Dan Kegel <dkegel@activision.com>
Newsgroups: comp.unix.bsd.misc,comp.os.linux.misc
Subject: Re: Can one executable run on both Red Hat and BSDI?
Date: Tue, 29 Apr 1997 18:49:12 -0700
Organization: Exodus Communications
Lines: 28
Message-ID: <3366A518.96A@activision.com>
References: <335FC204.1090@activision.com> <87rafwpc6g.fsf@paramount.res.wpi.edu>
NNTP-Posting-Host: u81.activision.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (Win95; U)
To: Frank Sweetser <rasmusin@paramount.res.wpi.edu>
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:3128 comp.os.linux.misc:172944

Frank Sweetser wrote:
> Dan Kegel <dkegel@activision.com> writes:
> > I'm writing a program that I'd like to distribute to
> > ISP's.  The first platform I'm supporting is Red Hat Linux,
> > since it seems to be the best linux at the moment.
> > I'm getting requests to also support BSDI.
> >
> > Question: is it possible to compile a single executable to run
> > on both Red Hat Linux and BSDI?
>
> In C, none that I know, unless you use the iBCS modules on linux.  ...

OK, that sounds good.  I could compile both native Linux executables
(for those who don't have iBCS installed) and iBCS executables.

Um, but I don't know how to generate iBCS executables with gcc.
Looking at the built-in list of executable formats supported
by bintools (with objdump -i), I don't see iBCS listed.
Nor does the iBCS package appear to replace objdump or ld
(at least not according to 
http://www.redhat.com/linux-info/pkglist/details.cgi?pkg=iBCS&section=rh4.1_i386
)   

Can anyone give me a hint about how to generate iBCS2 executables under
(Red Hat 4.1) Linux (hopefully with gcc)?

Thanks,
Dan Kegel