From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 11 10:54:39 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8AC11065675 for ; Wed, 11 Feb 2009 10:54:39 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (daffy.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 64EC08FC15 for ; Wed, 11 Feb 2009 10:54:39 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id n1BAcaXK025435; Wed, 11 Feb 2009 03:38:40 -0700 (MST) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.3/8.14.3) with ESMTP id n1BAAmKx003104; Wed, 11 Feb 2009 03:10:48 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.3/8.14.3/Submit) id n1BAAmJ5003100; Wed, 11 Feb 2009 03:10:48 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18834.42024.739091.493218@gromit.timing.com> Date: Wed, 11 Feb 2009 03:10:48 -0700 From: John Hein To: Daichi GOTO In-Reply-To: <4992924E.4090604@ongs.co.jp> References: <498A5F90.1030004@ongs.co.jp> <20090206214916.GA14653@saturn.kn-bremen.de> <200902102257.n1AMvF9v013733@saturn.kn-bremen.de> <4992924E.4090604@ongs.co.jp> X-Mailer: VM 7.19 under Emacs 22.3.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org, Juergen Lock Subject: Re: emulators/qemu: build fail on current amd64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2009 10:54:40 -0000 Daichi GOTO wrote at 17:54 +0900 on Feb 11, 2009: > Juergen Lock wrote: > > In article <4990EF3E.5090908@ongs.co.jp> you write: > >> After some days, I have tried to build qemu and kqemu with > >> latest amd64 current system, and I have gottten it success :) > >> > >> FYI, qemu works well but without kqemu. > >> > >> # /usr/local/etc/rc.d/kqemu start > >> kldload: can't load kqemu: Exec format error > >> /usr/local/etc/rc.d/kqemu: WARNING: kqemu module failed to load. > >> # > > > > Oh? Is there anything in dmesg, like a missing symbol? Or did you > > update your world/kernel after building kqemu? In that case you should > > rebuild your kqemu port... > > # uname -a > FreeBSD parancell.ongs.co.jp 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Mon Feb 9 14:18:09 JST 2009 > root@parancell.ongs.co.jp:/usr/obj/usr/src/sys/PARANCELL amd64 > # dmesg > (snip) > link_elf_obj: symbol unit2minor undefined > kldload: /boot/modules/kqemu.ko: Unsupported file type > (snip) unit2minor was removed recently. See recent commit to sys/sys/conf.h Any in-tree drivers left that used unit2minor were fixed at the same time. For kqemu-kmod, try this... --- kqemu-1.3.0pre11/kqemu-freebsd.c.orig 2007-02-06 14:02:00.000000000 -0700 +++ kqemu-1.3.0pre11/kqemu-freebsd.c 2009-02-11 03:04:50.000000000 -0700 @@ -296,7 +296,11 @@ r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); if (r) { +#if __FreeBSD_version > 800061 + *dev = make_dev(&kqemu_cdevsw, unit, +#else *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), +#endif UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); if (*dev != NULL) { dev_ref(*dev);