Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2012 21:14:54 -0600
From:      Alan Cox <alc@rice.edu>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        alc@freebsd.org, AN <andy@neu.net>, freebsd-current@freebsd.org
Subject:   Re: link_elf_obj: symbol vm_page_lock_queues undefined
Message-ID:  <50A7012E.9060908@rice.edu>
In-Reply-To: <CAGH67wRqU5QESxhUt%2Be8bqDtZq469PcYjFmDo=0H54sw5hEbDA@mail.gmail.com>
References:  <alpine.BSF.2.00.1211162112570.74106@mail.neu.net> <CAGH67wRqU5QESxhUt%2Be8bqDtZq469PcYjFmDo=0H54sw5hEbDA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/16/2012 20:54, Garrett Cooper wrote:
> On Fri, Nov 16, 2012 at 6:24 PM, AN <andy@neu.net> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
>>   Features2=0x802009<SSE3,MON,CX16,POPCNT>
>>   AMD
>> Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
>>   AMD
>> Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
>>
>>
>> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50A7012E.9060908>