From owner-freebsd-questions Wed Aug 7 21:48:16 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA06794 for questions-outgoing; Wed, 7 Aug 1996 21:48:16 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts6-line14.uoregon.edu [128.223.150.44]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA06784 for ; Wed, 7 Aug 1996 21:48:13 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id VAA00309; Wed, 7 Aug 1996 21:48:12 -0700 (PDT) Date: Wed, 7 Aug 1996 21:48:12 -0700 (PDT) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Stanley Hopcroft cc: freebsd-questions@freebsd.org Subject: Re: How can I avoid Bus Error when running Linux applications please ? In-Reply-To: <199608070934.JAA215182@smtp-gw01.ny.us.ibm.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 7 Aug 1996, Stanley Hopcroft wrote: > I am writing to ask your help in running linux applications on FreeBSD 2.1. > > My results are like Mr Doug White (& at least 2 others who have written to > this list, that after installing the shard and dynamically loaded libraries > and loading the linux kernel module (which is visible in modstat) that in > Xfree86 windows the application abends with a SIGNAL 10 (bus error). > > This is Mr Whites description :- > I compiled the sources from freebsd-current as indicated, created the > /compat/linux/* as directed, and are loading the lkm at boot time. But, > when I try to run a Linux X application, like xdoom: > > gdi,ttyp2,~/bin,54>./xdoom > Bus error > > Another writer has stated that linux applications also abend when run > outside of X-Windows > Running FreeBSD 2.1.0-RELEASE, Xf86 3.1.2s. That was ancient :) To fix it, I had to do a couple things: 1) Rebuild the linux LKM. 2) Add 'options COMPAT_LINUX' and 'options LINUX_COMPAT' to the kernel config & recompiled Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major