-   Slackware (
-   -   Trouble recompiling vmware modules for new kernel (

spoovy 02-28-2013 04:00 PM

Trouble recompiling vmware modules for new kernel
Hi all. I've built a new kernel which is working fine, but I'm struggling to rebuild the vmware modules for it. I have left the src in the right place, all the symlinks seem to be pointing in the correct places, but the vmware modconfig script just won't see them.

Unless it's looking for the wrong header because I've given the new kernel a custom name or something? I dunno, take a look below and help pls!


root@drbunsen:/usr/src# uname -a
Linux drbunsen 3.7.9-smp-cjt

root@drbunsen:/usr/src# ls -l
total 8
lrwxrwxrwx  1 root root  20 Feb 28 21:43 linux -> linux-3.7.9-smp-cjt//
drwxr-xr-x 24 root root 4096 Sep 17 19:33 linux-3.2.29/
drwxrwxr-x 24 root root 4096 Feb 25 20:47 linux-3.7.9-smp-cjt/

root@drbunsen:/usr/src# ls -l /lib/modules/3.7.9-smp-cjt/build
lrwxrwxrwx 1 root root 29 Feb 28 21:47 /lib/modules/3.7.9-smp-cjt/build -> /usr/src/linux-3.7.9-smp-cjt//

Installer always gives me the following error :


C header files matching your running kernel were not found.  Refer to your distribution's documentation for installation instructions
Thanks in advance


spoovy 02-28-2013 05:28 PM

Found the answer on the Arch wiki - this additional symlink is required for kernels >3.7 :


ln -s /usr/src/linux-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-$(uname -r)/include/linux/

All times are GMT -5. The time now is 06:13 AM.