From owner-cvs-ports Wed Dec 18 21:01:31 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA00202 for cvs-ports-outgoing; Wed, 18 Dec 1996 21:01:31 -0800 (PST) Received: from bacall.lodgenet.com (bacall.lodgenet.com [205.138.147.242]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id VAA00197; Wed, 18 Dec 1996 21:01:23 -0800 (PST) Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id XAA01858; Wed, 18 Dec 1996 23:00:19 -0600 Received: from garbo.lodgenet.com(204.124.123.250) by bacall via smap (V1.3) id sma001856; Wed Dec 18 23:00:16 1996 Received: from jake.lodgenet.com (jake.lodgenet.com [10.0.11.30]) by garbo.lodgenet.com (8.6.12/8.6.9) with ESMTP id XAA04400; Wed, 18 Dec 1996 23:00:39 -0600 Received: from jake.lodgenet.com (localhost [127.0.0.1]) by jake.lodgenet.com (8.8.4/8.6.12) with ESMTP id XAA22101; Wed, 18 Dec 1996 23:01:11 -0600 (CST) Message-Id: <199612190501.XAA22101@jake.lodgenet.com> To: asami@cs.berkeley.edu (Satoshi Asami) cc: erich@lodgenet.com, erich@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-ports@freefall.freebsd.org Subject: Re: cvs commit: ports/games/doom - Imported sources In-reply-to: Your message of "Wed, 18 Dec 1996 20:45:36 PST." <199612190445.UAA04370@silvia.HIP.Berkeley.EDU> Date: Wed, 18 Dec 1996 23:01:11 -0600 From: "Eric L. Hernes" Sender: owner-cvs-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Satoshi Asami writes: > * do you have the linuxulator loaded? `pat' is a linux binary and the > * kernel is trying to run it as a shell script. Can I assume that > * this will be loaded, or should I go through some contortions to > * check modstat and call /usr/bin/linux if necessary? > >I see. Yes, I would say so. Or at least print out a message and quit >before it gets there. > >I'm not too up to full speed with the Linux emulator stuff, does it >require special things in the kernel (I tried it and it worked on our >machines, but I can't tell if that's generic enough)? If not, I >suggest you put in a modstat | grep || /usr/bin/linux pipeline. The detection is a bit trickier :( There is a kernel option COMPAT_LINUX (I think) that will build the compat stuff staticly in the kernel. If you don't specify COMPAT_LINUX, you can modload and still get linux emulation. On my SMP kernel, I build everything statically, so the `modstat |grep || /usr/bin/linux' will fail with multiply defined symbols. The program will just work. On my standard UP kernel, I use the lkm's so the pipline would be fine. Maybe it should do something like `pat || (/usr/bin/linux; pat )' to test the emulator? > >Satoshi eric.