VirtualBox

Opened 13 years ago

Closed 13 years ago

#9948 closed defect (fixed)

Kernel modules won't compile on Fedora -15 with kernel 2.6.41 => Fixed in SVN

Reported by: nouvo09 Owned by:
Component: installer Version: VirtualBox 4.1.6
Keywords: Cc:
Guest type: Linux Host type: other

Description

Since the last kernel was shipped, it becomes impossible to compile the kernel modules, with or without dkms

It seems that some files have changed name, as amd_iommu.h changed in amd-iommu.h but also linking amd-iommu.h in amd_iommu.h does not work.

Finally I think that this kernel is in fact an 3.0.X kernel named 2.41x for compatibility.

Change History (7)

comment:1 by Michael Fischer, 13 years ago

Here's a workaround: Change line 38 of file /usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c from

    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)

to

    #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 41)

The problem seems to be as nouvo09 noted above that the 2.6.41 Fedora-15 kernel is really a 3.1 kernel with respect to the name and location of amd-iommu.h.

comment:2 by Frank Mehnert, 13 years ago

No, that change is wrong as it would break vanialla kernels. Sigh, we need to introduce another exception for Fedora kernels...

comment:3 by Michael Fischer, 13 years ago

I agree. That's why I called it a "workaround" rather than a "patch" or a "fix". But it will allow Fedora users to continue using VirtualBox until a proper fix is released.

comment:4 by adhisimon, 13 years ago

I think that workaround is safe and would not break vanilla kernel, because there's no 2.6.41 vanilla kernel.

comment:5 by Frank Mehnert, 13 years ago

No, it would break 3.0.0 vanilla kernels.

comment:6 by Frank Mehnert, 13 years ago

Summary: Kernel modules won't compile on Fedora -15 with kernel 2.6.41Kernel modules won't compile on Fedora -15 with kernel 2.6.41 => Fixed in SVN

Correct fix in r39432.

comment:7 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in VBox 4.1.8.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette