Can’t open perl script « /usr/src/linux-headers-2.6.32-1-common/scripts/recordmcount.pl »

I have recently installed the lastest kernel version from the testing Debian repositories : 2.6.32-1-686
Once downloaded, I must recompile some modules, particularly Virtualbox modules.

root@localhost:~# dpkg-reconfigure virtualbox-ose-dkms
Removing all DKMS Modules
Done.
Loading new virtualbox-ose-3.1.2 DKMS files…
Building for 2.6.32-1-686 and 2.6.32-trunk-686
Building initial module for 2.6.32-1-686

Error! Bad return status for module build on kernel: 2.6.32-1-686 (i686)
Consult the make.log in the build directory
/var/lib/dkms/virtualbox-ose/3.1.2/build/ for more information.

The error message is within the log file /var/lib/dkms/virtualbox-ose/3.1.2/build/make.log

root@localhost:~# cat /var/lib/dkms/virtualbox-ose/3.1.2/build/make.log

DKMS make.log for virtualbox-ose-3.1.2 for kernel 2.6.32-1-686 (i686)

LD      /var/lib/dkms/virtualbox-ose/3.1.2/build/vboxdrv/built-in.o
CC [M]  /var/lib/dkms/virtualbox-ose/3.1.2/build/vboxdrv/linux/SUPDrv-linux.o
Can’t open perl script “/usr/src/linux-headers-2.6.32-1-common/scripts/recordmcount.pl”:
make[4]: *** [/var/lib/dkms/virtualbox-ose/3.1.2/build/vboxdrv/linux/SUPDrv-linux.o] Erreur 2
make[3]: *** [/var/lib/dkms/virtualbox-ose/3.1.2/build/vboxdrv] Erreur 2
make[2]: *** [_module_/var/lib/dkms/virtualbox-ose/3.1.2/build] Erreur 2

Here is a workaround to get the missing file :

root@localhost:~# apt-get source linux-kbuild-2.6.32

then

root@localhost:~# cd /root/linux-kbuild-2.6-2.6.32/kbuild/scripts && cp recordmcount.pl /usr/src/linux-headers-2.6.32-1-common/scripts/

I reconfigure the package virtualbox-ose-dkms :

root@localhost:~# dpkg-reconfigure virtualbox-ose-dkms

Removing all DKMS Modules
Done.
Loading new virtualbox-ose-3.1.2 DKMS files…
Building for 2.6.32-1-686 and 2.6.32-trunk-686
Building initial module for 2.6.32-1-686
Done.

vboxdrv.ko:
Running module version sanity check.
– Original module
– No original module exists within this kernel
– Installation
– Installing to /lib/modules/2.6.32-1-686/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
– Original module
– No original module exists within this kernel
– Installation
– Installing to /lib/modules/2.6.32-1-686/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
– Original module
– No original module exists within this kernel
– Installation
– Installing to /lib/modules/2.6.32-1-686/updates/dkms/

depmod…………….

DKMS: install Completed.
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
Stopping VirtualBox kernel modules.
Starting VirtualBox kernel modules.

fool@localhost:~$lsmod |grep vbox

vboxnetflt             10854  0
vboxnetadp              5366  0
vboxdrv               117917  2 vboxnetflt,vboxnetadp

This compilation problem has already been encountered :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562512

Advertisements

One thought on “Can’t open perl script « /usr/src/linux-headers-2.6.32-1-common/scripts/recordmcount.pl »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s