Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

link_elf_obj: symbol vm_page_lock_queues undefined

3 views
Skip to first unread message

AN

unread,
Nov 16, 2012, 9:24:26 PM11/16/12
to
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.
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Garrett Cooper

unread,
Nov 16, 2012, 9:54:08 PM11/16/12
to
r242941 broke virtualbox. alc@ CCed.
Thanks,
-Garrett

Alan Cox

unread,
Nov 16, 2012, 10:14:54 PM11/16/12
to
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

ken

unread,
Nov 16, 2012, 11:02:05 PM11/16/12
to
Thank you, Alan.
I temporary commented out vm_page_lock_queues()/vm_page_unlock_queues() in "src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c".
So far, it works!! We need to wait for official fix, but just to report that it enabled to run.

Regards,

Garrett Cooper

unread,
Nov 17, 2012, 12:21:38 AM11/17/12
to
On Fri, Nov 16, 2012 at 8:02 PM, ken <k...@tydfam.jp> wrote:

> Thank you, Alan.
> I temporary commented out vm_page_lock_queues()/vm_page_unlock_queues()
> in "src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c".
> So far, it works!! We need to wait for official fix, but just to report
> that it enabled to run.
>

I'll produce a patch for this sometime this weekend if someone else
doesn't beat me to it first...
Cheers,
-Garrett
0 new messages