From owner-freebsd-current Sun Dec 26 5:46:10 1999 Delivered-To: freebsd-current@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 4064714CA7; Sun, 26 Dec 1999 05:46:06 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 25EE81CA0; Sun, 26 Dec 1999 21:45:59 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Mike Smith Cc: Andreas Klemm , current@FreeBSD.ORG Subject: Re: can't get vmware to run ( on -current ) In-Reply-To: Message from Mike Smith of "Sat, 25 Dec 1999 14:24:11 PST." <199912252224.OAA00513@mass.cdrom.com> Date: Sun, 26 Dec 1999 21:45:59 +0800 From: Peter Wemm Message-Id: <19991226134559.25EE81CA0@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > b) could not open /usr/local/lib/vmware/lib/vmm (no such file or directory) . > > No idea about that one. That is because /proc/curproc/exe is missing. Under Linux it's a pointer to the executable file (like our "file" used to be before it was killed). A trivial patch to reactivate it in a form that is useable by vmware: Index: procfs_vnops.c =================================================================== RCS file: /home/ncvs/src/sys/miscfs/procfs/procfs_vnops.c,v retrieving revision 1.76 diff -u -r1.76 procfs_vnops.c --- procfs_vnops.c 1999/12/15 23:02:08 1.76 +++ procfs_vnops.c 1999/12/26 13:43:49 @@ -91,6 +91,7 @@ /* name type validp */ { DT_DIR, N("."), Pproc, NULL }, { DT_DIR, N(".."), Proot, NULL }, + { DT_REG, N("exe"), Pfile, procfs_validfile }, { DT_REG, N("mem"), Pmem, NULL }, { DT_REG, N("regs"), Pregs, procfs_validregs }, { DT_REG, N("fpregs"), Pfpregs, procfs_validfpregs }, This works because the Pfile support code hasn't been removed. Or you can check out the linprocfs stuff, see the vmware pages for a pointer. It provides a linux-like /compat/linux/proc that provides the missing bits that linux programs expect. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message