VirtualBox

Ticket #9948 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: nouvo09 Owned by:
Priority: critical 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

comment:1 Changed 2 years ago by MichaelFischer

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 Changed 2 years ago by frank

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

comment:3 Changed 2 years ago by MichaelFischer

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 Changed 2 years ago by adhisimon

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

comment:5 Changed 2 years ago by frank

No, it would break 3.0.0 vanilla kernels.

comment:6 Changed 2 years ago by frank

  • Summary changed from Kernel modules won't compile on Fedora -15 with kernel 2.6.41 to Kernel modules won't compile on Fedora -15 with kernel 2.6.41 => Fixed in SVN

Correct fix in r39432.

comment:7 Changed 2 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in VBox 4.1.8.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use