VirtualBox

Opened 11 years ago

Closed 8 years ago

#12830 closed defect (obsolete)

Guest Additions build not finding kernel headers on slackware 14.1

Reported by: JeToJedno Owned by:
Component: guest additions Version: VirtualBox 4.3.8
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

The Guest Additions iso for 4.3.8 does not find normally installed kernel headers on Slackware 14.1 and will only install if the full source has been downloaded and installed.

It's looking for the sources in /usr/src/linux/include and the headers are in /usr/include

Host os openSUSE 12.3 if that's relevant.

Change History (4)

comment:1 by Michael Thayer, 11 years ago

I'm not familiar with Slackware, but are you sure that is wrong behaviour? Most Linux distributions include a set of generic headers in /usr/include which do not exactly match the headers for the current kernel but are close enough for user space applications. These headers are not suitable for building kernel modules, as these must match the running kernel exactly, and need to be rebuilt if a different kernel is used, even if the versions are very close.

comment:2 by Frank Mehnert, 11 years ago

Exactly, and the headers which are relevant for building kernel modules are actually located in

/lib/modules/`uname -r`/build

. Does this directory exist in your guest?

comment:3 by galitsyn, 11 years ago

Additionally, could you please attach build log. Please also make sure:

  • When you use default kernel - make sure kernel-headers package is installed.
  • When you use custom kernel - make sure you installed kernel headers properly (simple copying files will not work):
mkdir -p /tmp/kernel-headers/usr
make INSTALL_HDR_PATH=/tmp/kernel-headers/usr headers_install
cd /tmp/kernel-headers
makepkg ../kernel-headers-version.txz
installpkg ../kernel-headers-version.txz

OR just

make headers_install

comment:4 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

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