From owner-freebsd-current@FreeBSD.ORG Sat Nov 17 03:15:01 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C829A966; Sat, 17 Nov 2012 03:15:01 +0000 (UTC) (envelope-from alc@rice.edu) Received: from mh10.mail.rice.edu (mh10.mail.rice.edu [128.42.201.30]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6E88FC08; Sat, 17 Nov 2012 03:15:01 +0000 (UTC) Received: from mh10.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh10.mail.rice.edu (Postfix) with ESMTP id 79FED603DC; Fri, 16 Nov 2012 21:14:55 -0600 (CST) Received: from mh10.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh10.mail.rice.edu (Postfix) with ESMTP id 78739603DB; Fri, 16 Nov 2012 21:14:55 -0600 (CST) X-Virus-Scanned: by amavis-2.7.0 at mh10.mail.rice.edu, auth channel Received: from mh10.mail.rice.edu ([127.0.0.1]) by mh10.mail.rice.edu (mh10.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id IDkRTBSxqNB4; Fri, 16 Nov 2012 21:14:55 -0600 (CST) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh10.mail.rice.edu (Postfix) with ESMTPSA id F0730603D3; Fri, 16 Nov 2012 21:14:54 -0600 (CST) Message-ID: <50A7012E.9060908@rice.edu> Date: Fri, 16 Nov 2012 21:14:54 -0600 From: Alan Cox User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:16.0) Gecko/20121111 Thunderbird/16.0.2 MIME-Version: 1.0 To: Garrett Cooper Subject: Re: link_elf_obj: symbol vm_page_lock_queues undefined References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: alc@freebsd.org, AN , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 03:15:01 -0000 On 11/16/2012 20:54, Garrett Cooper wrote: > On Fri, Nov 16, 2012 at 6:24 PM, AN wrote: >> FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #38 r243165: Fri Nov 16 >> 20:53:48 EST 2012 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 >> >> Vbox is broken for me after recent upgrade. >> >> # dmesg >> Table 'FACP' at 0xc7fb0290 >> Table 'APIC' at 0xc7fb0390 >> APIC: Found table at 0xc7fb0390 >> APIC: Using the MADT enumerator. >> MADT: Found CPU APIC ID 0 ACPI ID 1: enabled >> SMP: Added CPU 0 (AP) >> MADT: Found CPU APIC ID 1 ACPI ID 2: enabled >> SMP: Added CPU 1 (AP) >> MADT: Found CPU APIC ID 2 ACPI ID 3: enabled >> SMP: Added CPU 2 (AP) >> MADT: Found CPU APIC ID 3 ACPI ID 4: enabled >> SMP: Added CPU 3 (AP) >> MADT: Found CPU APIC ID 132 ACPI ID 5: disabled >> MADT: Found CPU APIC ID 133 ACPI ID 6: disabled >> Copyright (c) 1992-2012 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 10.0-CURRENT #38 r243165: Fri Nov 16 20:53:48 EST 2012 >> root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 >> Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff81e8b000. >> Preloaded elf obj module "/boot/kernel/amdtemp.ko" at 0xffffffff81e8b200. >> Preloaded elf obj module "/boot/modules/nvidia.ko" at 0xffffffff81e8b768. >> Preloaded elf obj module "/boot/kernel/linux.ko" at 0xffffffff81e8bd90. >> Preloaded elf obj module "/boot/modules/vboxdrv.ko" at 0xffffffff81e8c538. >> link_elf_obj: symbol vm_page_lock_queues undefined >> KLD file vboxdrv.ko - could not finalize loading >> Calibrating TSC clock ... TSC clock: 3100083911 Hz >> CPU: AMD Athlon(tm) II X4 645 Processor (3100.08-MHz K8-class CPU) >> Origin = "AuthenticAMD" Id = 0x100f53 Family = 0x10 Model = 0x5 >> Stepping = 3 >> >> Features=0x178bfbff >> Features2=0x802009 >> AMD >> Features=0xee500800 >> AMD >> Features2=0x37ff >> >> >> I rebuilt and reinstalled: >> ===> Installing for virtualbox-ose-kmod-4.1.22 >> ===> Registering installation for virtualbox-ose-kmod-4.1.22 >> >> # kldload vboxdrv.ko >> kldload: can't load vboxdrv.ko: Exec format error >> >> Log file: >> ov 16 21:16:40 FBSD10 kernel: link_elf_obj: symbol vm_page_lock_queues >> undefined >> Nov 16 21:16:40 FBSD10 kernel: linker_load_file: Unsupported file type >> >> Any help is appreciated, thanks in advance. > r242941 broke virtualbox. alc@ CCed. > Thanks, > -Garrett > I just glanced at the virtualbox code for a couple minutes. For FreeBSD 9 and 10, these lock acquires are completely unnecessary, and have been since FreeBSD 9.0. Just delete them. They may be equally unnecessary under FreeBSD 8, but I didn't look carefully enough to answer that question. Alan