Date: Tue, 4 Dec 2001 12:35:17 -0600 From: Glenn Johnson <glennpj@charter.net> To: "Hartmann, O." <ohartman@klima.physik.uni-mainz.de> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: problem with the new linux module Message-ID: <20011204183517.GA25133@gforce.johnson.home> In-Reply-To: <20011204183407.G83313-100000@klima.physik.uni-mainz.de> References: <20011204183407.G83313-100000@klima.physik.uni-mainz.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 04, 2001 at 06:39:27PM +0100, Hartmann, O. wrote: > Hello. > > We have the same problem around here with FLEXlm, but the 'damage' is > much bigger due to the fact we tried to use PGI's F90 compiler within > a floating network license. > > Indeed, lmutil reports a zero host-id for each host, so the central > license manager host does not allow to use any license anymore. > > The last update has been done today and we run FreeBSD 4.4-STABLE. > Our environment for Linux and PGI is at an experimental stage, so that > means we try to figure out how 'stable' a FreeBSD environment can > handle Linux software like Fortran compilers from PGI within a network > with the appropriate network license. > > At this moment up to 10 workstations are 'without' PGI compiler due to > the failing of FLEXlm. > > Hope this bug gets fixed soon ;-)) Marcel posted a patch to the emulation list. I tested it and it solved the problem for me. I am attaching the message he sent. Also, he said the patch should be comitted by the end of the week to -STABLE. -- Glenn Johnson glennpj@charter.net --1yeeQ81UyVL57Vl7 Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <owner-freebsd-emulation@FreeBSD.ORG> Received: from localhost (localhost [127.0.0.1]) by gforce.johnson.home (8.11.6/8.11.6) with ESMTP id fB43xN900872 for <glenn@localhost>; Mon, 3 Dec 2001 21:59:23 -0600 (CST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from mail.charter.net [209.225.8.223] by localhost with IMAP (fetchmail-5.8.17) for glenn@localhost (single-drop); Mon, 03 Dec 2001 21:59:23 -0600 (CST) Received: from mx2.freebsd.org ([216.136.204.119] verified) by dc-mx04.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 1750936 for glennpj@charter.net; Mon, 03 Dec 2001 01:51:20 -0500 Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id A768055503; Sun, 2 Dec 2001 22:45:00 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: by hub.freebsd.org (Postfix, from userid 538) id C492837B41C; Sun, 2 Dec 2001 22:44:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 48FD72E800C; Sun, 2 Dec 2001 22:44:58 -0800 (PST) Received: by hub.freebsd.org (bulk_mailer v1.12); Sun, 2 Dec 2001 22:44:57 -0800 Delivered-To: freebsd-emulation@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id F33A637B41A for <emulation@FreeBSD.ORG>; Sun, 2 Dec 2001 22:44:47 -0800 (PST) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.11.6/8.11.4) with ESMTP id fB36ilQ98471; Sun, 2 Dec 2001 22:44:47 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.11.6/8.11.6) id fB36imV04555; Sun, 2 Dec 2001 22:44:48 -0800 (PST) (envelope-from marcel) Date: Sun, 2 Dec 2001 22:44:48 -0800 From: Marcel Moolenaar <marcel@xcllnt.net> To: Glenn Johnson <gjohnson@srrc.ars.usda.gov> Cc: emulation@FreeBSD.ORG Subject: Re: SIOCGIFHWADDR ioctl fails [was: Re: problem with the new linux module] Message-ID: <20011202224448.A4448@dhcp01.pn.xcllnt.net> References: <20011130102101.A5245@node7.cluster.srrc.usda.gov> <20011202180007.A2618@dhcp01.pn.xcllnt.net> <20011203034308.GA643@gforce.johnson.home> <20011202205417.A3522@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <20011202205417.A3522@dhcp01.pn.xcllnt.net> User-Agent: Mutt/1.3.21i Sender: owner-freebsd-emulation@FreeBSD.ORG List-ID: <freebsd-emulation.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-emulation> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-emulation> X-Loop: FreeBSD.org Precedence: bulk --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Dec 02, 2001 at 08:54:17PM -0800, Marcel Moolenaar wrote: > > 692 lmutil CALL linux_ioctl(0x3,SIOCGIFHWADDR,0xbfbff614) > > 692 lmutil RET linux_ioctl -1 errno 22 Invalid argument > > 692 lmutil CALL close(0x3) > > 692 lmutil RET close 0 > > 692 lmutil CALL write(0x1,0x280ad000,0x29) > > 692 lmutil GIO fd 1 wrote 41 bytes > > "The FLEXlm host ID of this machine is "" > > " > > 692 lmutil RET write 41/0x29 Can you try the attached patch. Note that the patch is against -current. If it doesn't apply cleanly to -stable, let me know. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ioctl.diff" Index: linux_ioctl.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_ioctl.c,v retrieving revision 1.76 diff -u -r1.76 linux_ioctl.c --- linux_ioctl.c 19 Nov 2001 15:43:45 -0000 1.76 +++ linux_ioctl.c 3 Dec 2001 06:17:55 -0000 @@ -1793,6 +1793,7 @@ struct ifnet *ifp; int len, unit; char *ep; + int is_eth, index; for (len = 0; len < LINUX_IFNAMSIZ; ++len) if (!isalpha(lxname[len])) @@ -1802,13 +1803,18 @@ unit = (int)strtoul(lxname + len, &ep, 10); if (ep == NULL || ep == lxname + len || ep >= lxname + LINUX_IFNAMSIZ) return (NULL); + index = 0; + is_eth = (len == 3 && !strncmp(lxname, "eth", len)) ? 1 : 0; TAILQ_FOREACH(ifp, &ifnet, if_link) { - /* allow Linux programs to use FreeBSD names */ + /* + * Allow Linux programs to use FreeBSD names. Don't presume + * we never have an interface named "eth", so don't make + * the test optional based on is_eth. + */ if (ifp->if_unit == unit && ifp->if_name[len] == '\0' && strncmp(ifp->if_name, lxname, len) == 0) break; - if (ifp->if_index == unit && IFP_IS_ETH(ifp) && - strncmp(lxname, "eth", len) == 0) + if (is_eth && IFP_IS_ETH(ifp) && unit == index++) break; } if (ifp != NULL) --/9DWx/yDrRhgMJTb-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message --1yeeQ81UyVL57Vl7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204183517.GA25133>