From owner-freebsd-emulation Mon Nov 4 22:59:56 2002 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 692BA37B401 for ; Mon, 4 Nov 2002 22:59:55 -0800 (PST) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FBC543E77 for ; Mon, 4 Nov 2002 22:59:53 -0800 (PST) (envelope-from fdisk@wananchi.com) Received: from [62.8.64.88] (helo=Gecko) by ns2.wananchi.com (Exim 4.10.8 #2 (FreeBSD)) protocol: smtp id 188xg8-000F01-00 for ; Tue, 05 Nov 2002 09:59:12 +0300 Message-ID: <005d01c28499$05489220$5840083e@wananchi.com> From: "Alex Vinogradoff" To: Subject: Extent RBS ISP Date: Tue, 5 Nov 2002 10:00:23 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *188xg8-000F01-00*lN4yay5T3J2* Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, Anyone tried subj ? Thanks. Alex. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 6 23:35:57 2002 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2B1D37B401 for ; Wed, 6 Nov 2002 23:35:56 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3749D43E42 for ; Wed, 6 Nov 2002 23:35:56 -0800 (PST) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost.cnd.mcgill.ca [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.3/8.12.3) with ESMTP id gA77aSQr018874; Thu, 7 Nov 2002 02:36:28 -0500 (EST) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.3/8.12.3/Submit) id gA77aSP9018873; Thu, 7 Nov 2002 02:36:28 -0500 (EST) Date: Thu, 7 Nov 2002 02:36:28 -0500 From: Mathew Kanner To: freebsd-emulation@freebsd.org Cc: Mathew Kanner Subject: flexlm(matlab) and linux-base-7 Message-ID: <20021107023628.W92742@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Organization: I speak for myself, operating in Montreal, CANADA Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, flexlm (which I need for matlab r6.13) doesn't work with linux-base-7. http://www.freebsd.org/cgi/query-pr.cgi?pr=45023 Contains a fix, Willem van Engen and Andrew Gallatin are the ones who found the cause and solution. --Mat ps, please cc me -- Brain: Are you pondering what I'm pondering? Pinky: I think so, Brain, but if the plural of mouse is mice, wouldn't the plural of spouse be spice? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Nov 7 10:38:44 2002 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AA2937B401 for ; Thu, 7 Nov 2002 10:38:40 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2BA743E4A for ; Thu, 7 Nov 2002 10:38:39 -0800 (PST) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost.cnd.mcgill.ca [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.3/8.12.3) with ESMTP id gA7Id0Qr020799; Thu, 7 Nov 2002 13:39:00 -0500 (EST) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.3/8.12.3/Submit) id gA7Id0Uh020798; Thu, 7 Nov 2002 13:39:00 -0500 (EST) Date: Thu, 7 Nov 2002 13:39:00 -0500 From: Mathew Kanner To: freebsd-emulation@freebsd.org Cc: Mathew Kanner Subject: Matlab 6.5 R13 installation notes Message-ID: <20021107133900.X92742@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Organization: I speak for myself, operating in Montreal, CANADA Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, The following is what I had to do to install and run Matlab with linux-base-7. Could someone please follow-up on http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/45023 (patch #1) and http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/42457 (patch #2). Notes: Two kernel patches are required and the default java doesn't work. Java jre1.3.1 dies with a thread problem and jre1.1.8 hangs on exit without patch #2. FlexLM doesn't run without patch #1. Matlab no-longer requires the /dev/ptmx and the unix command works. Installation (assumes kernel patches are done) % xhost + localhost % su % mount Unix installation CD #1 % /compat/linux/bin/bash % run install found on cd -Install to /usr/local/matlab6.13 -Cancel the license editor, cp your license to /usr/local/matlab6.13/etc/license.dat click ok (or yes), and your license should show up with the right SERVER and VENDOR lines. I choose to create the links in /usr/local/bin Complete the install. % (Optional) If you want additional toolboxes, eject the cd, mount the 2nd Unix CD, re-run the installation and specify the same path as before. % pw useradd -u 81 -n flexlm -s /bin/sh -d / (Creates a user for flexlm) % sed -i.bak -e's,^#\!.*/bin/sh$,#! /compat/linux/bin/bash,' /usr/local/matlab6.13/etc/lm* /usr/local/matlab6.13/bin/matlab /usr/local/matlab6.13/bin/mex (Set linux emulation, or you could hack the arch.sh, or manually specify the arch) % rm /usr/local/matlab6.13/sys/java/jre/glnx86 % ln -s /usr/local/matlab6.13/sys/java/jre/glnx86/jre1.1.8/ /usr/local/matlab6.13/sys/java/jre/glnx86/jre (Changes the default java to one that works) % /usr/local/matlab6.13/etc/lmstart -u flexlm (Start FlexLM) % as regular user, run matlab to test. Attached is two patches anda start-up script I use in /usr/local/etc/rc.d to automatically start flexlm. --Mat PS, please CC as I'm not on the list -- Captain Capacitor: Shiver me templates! (ReBoot) --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="matlab.patch1" --- /usr/src/sys/compat/linux/linux_file.c Mon Nov 5 14:08:22 2001 +++ /usr/src/sys/compat/linux/linux_file.c.new Thu Nov 7 02:16:51 2002 @@ -766,8 +766,8 @@ } bsd_flock->l_whence = linux_flock->l_whence; bsd_flock->l_start = (off_t)linux_flock->l_start; - bsd_flock->l_len = (off_t)linux_flock->l_len; - bsd_flock->l_pid = (pid_t)linux_flock->l_pid; + bsd_flock->l_pid = 0; + bsd_flock->l_len = 0; } static void @@ -818,8 +818,8 @@ } bsd_flock->l_whence = linux_flock->l_whence; bsd_flock->l_start = (off_t)linux_flock->l_start; - bsd_flock->l_len = (off_t)linux_flock->l_len; - bsd_flock->l_pid = (pid_t)linux_flock->l_pid; + bsd_flock->l_pid = 0; + bsd_flock->l_len = 0; } static void --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="matlab.patch2" --- /usr/src/sys/kern/kern_exit.c.old Thu Nov 7 12:59:18 2002 +++ /usr/src/sys/kern/kern_exit.c Thu Nov 7 13:00:06 2002 @@ -342,7 +342,8 @@ if (p->p_sigparent && p->p_pptr != initproc) { psignal(p->p_pptr, p->p_sigparent); } else { - psignal(p->p_pptr, SIGCHLD); + if (p->p_sigparent != 0) + psignal(p->p_pptr, SIGCHLD); } wakeup((caddr_t)p->p_pptr); --TakKZr9L6Hm6aLOc Content-Type: application/x-sh Content-Disposition: attachment; filename="flexlm.sh" #!/bin/sh # # FlexLM startup script flexlmdir=/usr/local/matlab6.13/etc/ flexlmuser=flexlm case "$1" in start) echo -n ' FlexLM' $flexlmdir/lmstart -u $flexlmuser ;; stop) $flexlmdir/lmdown ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac exit 0 --TakKZr9L6Hm6aLOc-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message