Ticket #6958 (closed defect: invalid)
debian lenny - kernel compilation problem on self made kernel
|Reported by:||michele_petrazzo||Owned by:|
my system is a debian lenny with kernel compiled by myself (with bfs patch) and I found that there is a problem compiling vboxdrv (/etc/init.d/vboxdrv setup): error message (vbox-install.log) say me:
Makefile:170: * Error: /usr/src/linux (version 2.6.34) does not match the current kernel (version 2.6.34-bfs). Stop.
Looking around I see two things:
- I have no /usr/src/linux link even if it's indicated
- /lib/modules/2.6.34-bfs/build point to a directory (/home/michele/Download/kernel/linux-2.6.34) where I have the 2.6.34 kernel sources *with* bfs patch.
Conversely if I create the /build link pointing to /usr/src/linux-headers-2.6.34-bfs it compile without problem. So can be that Makefile look for the wrong file in case of self build kernels? (of course can be also a problem of the debian kernel installation / compile procedure, but I never seen other problems with other softwares, so... )
P.s. I compile the kernel with standard debian-way, so:
fakeroot make-kpkg --append-to-version -bfs kernel_image --initrd kernel_headers
dpkg -i linux-headers-2.6.34-bfs* linux-kernel-2-6.34-bfs*