From owner-freebsd-alpha Thu Dec 31 13:58:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA24369 for freebsd-alpha-outgoing; Thu, 31 Dec 1998 13:58:46 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from burka.rdy.com (burka.rdy.com [205.149.163.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA24356 for ; Thu, 31 Dec 1998 13:58:42 -0800 (PST) (envelope-from dima@burka.rdy.com) Received: (from dima@localhost) by burka.rdy.com (8.9.1/RDY&DVV) id NAA78946; Thu, 31 Dec 1998 13:58:20 -0800 (PST) Message-Id: <199812312158.NAA78946@burka.rdy.com> Subject: Re: OSF/1 binary compatibility In-Reply-To: <13963.54329.494979.215317@grasshopper.cs.duke.edu> from Andrew Gallatin at "Dec 31, 1998 3:15:38 pm" To: gallatin@cs.duke.edu (Andrew Gallatin) Date: Thu, 31 Dec 1998 13:58:20 -0800 (PST) Cc: freebsd-alpha@FreeBSD.ORG X-Class: Fast Organization: HackerDome Reply-To: dima@best.net From: dima@best.net (Dima Ruban) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Am I missing something? alpha# make cc -O -pipe -g -DCOMPAT_OSF1 -Werror -DKERNEL -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I/usr/obj/a/home/dima/sys/modules/osf1 -I/usr/obj/a/home/dima/sys/modules/osf1/@ -mno-fp-regs -Wa,-mev56 -c /a/home/dima/sys/modules/osf1/../../alpha/osf1/osf1_signal.c /a/home/dima/sys/modules/osf1/../../alpha/osf1/osf1_signal.c: In function `osf1_sigaction': /a/home/dima/sys/modules/osf1/../../alpha/osf1/osf1_signal.c:301: structure has no member named `osf_sigtramp' /a/home/dima/sys/modules/osf1/../../alpha/osf1/osf1_signal.c: In function `osf1_sendsig': /a/home/dima/sys/modules/osf1/../../alpha/osf1/osf1_signal.c:709: structure has no member named `osf_sigtramp' *** Error code 1 Stop. alpha# Andrew Gallatin writes: > > I've taken NetBSD's OSF1 binary emulator (written by Chris Demetriou) > and ported it to FreeBSD. I've added signifigant functionality so > that the FreeBSD version is able to run dynamically linked Digital > UNIX binaries. > > With the software floating point completion code that was recently > done by Doug Rabson, as well the recently committed (by Doug, on my > behalf) stack fixes & minor changes to kern_exec.c, the emulator is > ready for general consumption. Its available for download at > ftp://ftp.cs.duke.edu/pub/gallatin/osf1.tar.gz > > You'll need a number of things in order to make it useful > > a) a Digital UNIX or OSF/1 filesystem mounted at /compat/osf1, > complete with shared libraries. Remember that in order to legally use > the shared libraries, your machine must be licensed to run Digital UNIX > > b) a kernel built from very recent sources > (you must have revision 1.92 or better of kern_exec.c) > > c) an up-to-date /usr/share/mk so that your kernel module is > built with the proper flags (-mno-fp-regs -Wa,-mev56) > > > To get started, download the above tarball and untar it into your > source tree. Then cd to sys/modules/osf1 and build & install it. > Load the module with the just installed osf1 shell script. > > I've done admittedly limited testing. The following programs appear to > work without a hitch -- Netscape 4.5, Mathematica 3.0.2, xemacs 20.3. > > The following have some problems: > > Splus 3.4 -- command line editing doesn't work due to pty cloning problem > cvsup(*) -- occasional m3 execption problem(static binary from http://www.cs.wustl.edu/~nanbor/CVSUP/cvsup-15.2-client-alpha.osf4.0b.tar.gz) > csh/tcsh -- some sort of signal handling problem after a child exits > > The known problems thus far are > > o many tty ioctls are not implemented, or are implemented incorrectly > o signal handling is fragile > o programs, such as Adobe Acroread, which are linked to libmach use > hard to emulate mach traps. See README.mach-traps for CGD's words > on this > o I really need to clean things up a little more.. > > Enjoy, > > Drew > ------------------------------------------------------------------------------ > Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin > Duke University Email: gallatin@cs.duke.edu > Department of Computer Science Phone: (919) 660-6590 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message > -- dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message