On Sun, May 27, 2007 at 08:05:40PM -0700, Ben Calvert wrote: > > On May 27, 2007, at 6:22 PM, [EMAIL PROTECTED] wrote: > > >On Mon, May 28, 2007 at 12:09:01AM +0100, Edd Barrett wrote: > >>Hi there, > >> > >>My friend has made an application that uses a shared library which is > >>not yet ported to OpenBSD (xereces-c). We have been trying to run it > >>on OpenBSD using linux-compat. I know this is all set up properly > >>as I > >>use opera a lot. > >> > >>We have a static binary for the correct arch: > >>$ file a.out > >>a.out: ELF 32-bit LSB executable, Intel 80386, version 1, for > >>GNU/Linux 2.6.9, statically linked, not stripped > > > >try 'branding' it with 'elf2olf -o linux a.out'. > >and sysctl kern.emul.linux should be set to 1, of course. > > > > it's already branded, or file wouldn't give that output.
no. the OpenBSD kernel doesn't seem to care about file(1) and its output. $ file ./sln ./sln: ELF 32-bit LSB executable, Intel 80386, version 1, for GNU/Linux 2.4.1, statically linked, stripped $ ./sln ./sln ./slnx ksh: ./sln: Operation not permitted $ elf2olf -o linux /tmp/sln $ ./sln ./sln ./slnx $ echo $? 0