From owner-freebsd-ports Fri Nov 3 15:08:27 1995 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA16134 for ports-outgoing; Fri, 3 Nov 1995 15:08:27 -0800 Received: from cabri.obs-besancon.fr (cabri.obs-besancon.fr [193.52.184.3]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id PAA16125 ; Fri, 3 Nov 1995 15:08:21 -0800 Received: by cabri.obs-besancon.fr (5.57/Ultrix3.0-C) id AA15505; Sat, 4 Nov 95 00:00:30 +0100 Date: Sat, 4 Nov 95 00:00:30 +0100 Message-Id: <9511032300.AA15505@cabri.obs-besancon.fr> From: Jean-Marc Zucconi To: erich@lodgenet.com Cc: freebsd-ports@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <199511032049.OAA00534@jake.lodgenet.com> (erich@lodgenet.com) Subject: Re: cvs commit: ports/emulators/linux_lib - Imported sources X-Mailer: Emacs Sender: owner-ports@freebsd.org Precedence: bulk >>>>> Eric L Hernes writes: > Here's my cliff notes on setting up linux compat: > 1) make sure you're running on a kernel whose config file > has `options COMPAT_LINUX' in it. If not, then re-config, rebuild, > and reboot. I did it, and I also have the SYSVxxx options > 2) make sure you have a set of linux shared libraries. Friday > afternoon I intend to import my port of linux libraries. > then it should just be to make install from > /usr/ports/emulators/linux_lib. or get the port from the port > ftp/www server. > At any rate, your linux libraries must be installed in > /compat/linux/{lib,usr/lib}. They are in /compat/linux/lib > NOTE: linux libraries *must* be ZMAGIC, although it appears that > binaries can be either ZMAGIC or QMAGIC. > 3) make sure you have a /usr/bin/linux, if not do a `make all install' > from /usr/src/lkm/linux. run /usr/bin/linux (as root). You > should get output something like: > (jake)$ sudo linux > Linux emulator installed > Module loaded as ID 2 > (jake)$ ok: bash# linux Linux emulator installed Module loaded as ID 0 > 4) run your favorite linux binaries. I have personally run I tried a random binary - no problem: bash# /cdrom2/usr/bin/ctags /cdrom2/usr/bin/ctags: No input files specified. /cdrom2/usr/bin/ctags: Try `/cdrom2/usr/bin/ctags --help' for a complete list of options. > doom, Wingz, Xess, and Maple. I've made ports of Wingz, and DOOM! bash# ./xdoom DOOM System Startup v1.8 V_Init: allocate screens. M_LoadDefaults: Load system defaults. Z_Init: Init zone memory allocation daemon. W_Init: Init WADfiles. adding ./doom1.wad shareware version. M_Init: Init miscellaneous info. R_Init: Init DOOM refresh daemon - [...................] P_Init: Init Playloop state. I_Init: Setting up machine state. D_CheckNetGame: Checking network game status. startskill 2 deathmatch: 0 startmap: 1 startepisode: 1 player 1 of 1 (1 nodes) S_Init: Setting up sound. HU_Init: Setting up heads up display. ST_Init: Init status bar. Using MITSHM extension LINUX: 'ioctl' fd=5, typ=0x450(P), num=0xa not implemented ioctl(dsp,-1073459190,arg) failed errno=22 shared memory id=131072, addr=0x802c000 The program starts, and crashes after a few seconds :0( Broken pipe And if I try to restart the program, it ends immediatly with ... Using MITSHM extension errno=17 Error: Could not get any shared memory Any hints? Jean-Marc _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr =============================================================================