From owner-freebsd-current@FreeBSD.ORG Wed Feb 4 18:04:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58DDF106568E; Wed, 4 Feb 2009 18:04:50 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 16B378FC18; Wed, 4 Feb 2009 18:04:50 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [IPv6:2001:470:1f07:4e1::4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks Certificate Authority" (verified OK)) (Authenticated sender: imb) by sarah.protected-networks.net (Postfix) with ESMTPSA id 1538D6111; Wed, 4 Feb 2009 13:04:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1233770689; bh=q6NvI5SEyReKXsy5EgeEwwDkQuZaR5J8yFeowMI+Bi0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Ef56RvfTQkjzjpnhgJmoPYHAXvcFPq8wcsm7xFcdVzHe0AV6tpVztDMjDKhtPAAjd 1owCDYrnVxBLhFI6LRUdup0ZOynw4sKEQaN8D4hbsIABGf3mNOQ0RElZuHuVMNc DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=i1PcWvQ5dGJWmVjMzoWEeJxXWJtyCBOwk1fB4MDAkINcPtrwVV7oO+NvTsOCwEkP3 pGpeSAoZefKMqIv0JijurzdHjv8+ZZUdTf4EKesNxmaJc0nLfe7IiPiE+eZ3teJ Message-ID: <4989D8BF.6010301@protected-networks.net> Date: Wed, 04 Feb 2009 13:04:47 -0500 From: Michael Butler User-Agent: Thunderbird 2.0.0.19 (X11/20090128) MIME-Version: 1.0 To: John Baldwin References: <200902021643.39862.c47g@gmx.at> <4987157E.9080605@protected-networks.net> <200902040919.10647.jhb@freebsd.org> <4989CE44.7010209@protected-networks.net> In-Reply-To: <4989CE44.7010209@protected-networks.net> X-Enigmail-Version: 0.95.7 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: lpt stopped working X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 18:04:50 -0000 I wrote: > kqemu[-devel] compiles but fails when attempting to kldload it with: > > kernel: link_elf: symbol unit2minor undefined > > .. which is a different issue and seems to need a similar patch to that > applied to fuse-kmod for -current since unit2minor has 'gone away', Something trivial like this seems to make it load and run again .. *** kqemu-freebsd.c~ Wed Feb 4 12:34:54 2009 --- kqemu-freebsd.c Wed Feb 4 12:36:09 2009 *************** *** 381,387 **** r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); if (r) { ! *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); if (*dev != NULL) { dev_ref(*dev); --- 381,392 ---- r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); if (r) { ! *dev = make_dev(&kqemu_cdevsw, ! #if __FreeBSD_version < 800062 ! unit2minor(unit), ! #else /* __FreeBSD_version >= 800062 */ ! unit, ! #endif /* __FreeBSD_version < 800062 */ UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); if (*dev != NULL) { dev_ref(*dev); Michael