From owner-freebsd-bugs Wed Nov 6 23:30: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71BEC37B401 for ; Wed, 6 Nov 2002 23:30:06 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFB3E43E6E for ; Wed, 6 Nov 2002 23:30:05 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gA77U5x3084256 for ; Wed, 6 Nov 2002 23:30:05 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gA77U5vF084255; Wed, 6 Nov 2002 23:30:05 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ABAE37B401 for ; Wed, 6 Nov 2002 23:29:40 -0800 (PST) Received: from cnd184.cnd.mcgill.ca (cnd184.cnd.mcgill.ca [132.216.11.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id D91BB43E42 for ; Wed, 6 Nov 2002 23:29:39 -0800 (PST) (envelope-from mat@cnd184.cnd.mcgill.ca) Received: from cnd184.cnd.mcgill.ca (localhost [127.0.0.1]) by cnd184.cnd.mcgill.ca (8.12.6/8.12.6) with ESMTP id gA77Tet6034582 for ; Thu, 7 Nov 2002 02:29:40 -0500 (EST) (envelope-from mat@cnd184.cnd.mcgill.ca) Received: (from mat@localhost) by cnd184.cnd.mcgill.ca (8.12.6/8.12.6/Submit) id gA77Tef2034581; Thu, 7 Nov 2002 02:29:40 -0500 (EST) Message-Id: <200211070729.gA77Tef2034581@cnd184.cnd.mcgill.ca> Date: Thu, 7 Nov 2002 02:29:40 -0500 (EST) From: Mathew Kanner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/45023: flexlm does not run with linux-base-7, stops matlab Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45023 >Category: kern >Synopsis: flexlm does not run with linux-base-7, stops matlab >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 06 23:30:05 PST 2002 >Closed-Date: >Last-Modified: >Originator: Mathew Kanner >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD cnd184.cnd.mcgill.ca 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: FlexLM does not work with linux_base-7 but does with linux_base-6. flock is the apparent cause. Willem van Engen reported it on freebsd-emulation on 12/10/2001, and Andrew Gallatin proposes the solution here. flexlm gives the vague error message: cannot establish lock - exiting (file: "", errno: 22) This allows me to run matlab >How-To-Repeat: Run flexlm with linux-base-7 >Fix: --- /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 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message