[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VirtualBox 4 fails building kernel module (the same with nvidia module)



In <[🔎] 4D3B20C8.3080503@o2.pl>, MRH wrote:
>   CC [M]  /var/lib/dkms/vboxhost/4.0.2/build/vboxdrv/linux/SUPDrv-linux.o
>In file included from
>/var/lib/dkms/vboxhost/4.0.2/build/vboxdrv/include/VBox/types.h:30,
>                  from
>/var/lib/dkms/vboxhost/4.0.2/build/vboxdrv/linux/../SUPDrvInternal.h:35,
>                  from
>/var/lib/dkms/vboxhost/4.0.2/build/vboxdrv/linux/SUPDrv-linux.c:31:
>/var/lib/dkms/vboxhost/4.0.2/build/vboxdrv/include/iprt/types.h:105:31:
>error: linux/autoconf.h: No such fil
>e or directory

This file should be provided by the linux-headers-* package for your kernel.  
Make sure you are this package installed in order to build kernel modules.

>I have home-build kernel.
>
>I suspect the problem is I build the kernel with --append-to-version:
>
>make-kpkg --initrd --revision=.mrh.01 --append-to-version=.mrh.01
>
>but this helps me keeping things tidy.

I'm not familiar with make-kpkg since the stock Debian kernels have served me 
well so far.  Does it prepare all the linux-* .debs?  You'll need linux-
headers-* for building kernel modules.
-- 
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: