VMware Communities
lovetide
Contributor
Contributor
Jump to solution

vmware kernel module updater can't compile after upgraded to kernel-3.7.2 (Fedora 18)

Environments:

OS: Fedora 18 x86_64

Kernel and kernel headers: 3.7.2-201.fc18

VMware Player: VMware-Player-5.0.1-894247.x86_64.bundle

vmware-modconfig log:

2013-01-18T14:13:00.229+08:00| vthread-3| I120: Validating path "/lib/modules/3.7.2-201.fc18.x86_64/build/include" for kernel release "3.7.2-201.fc18.x86_64".
2013-01-18T14:13:00.229+08:00| vthread-3| I120: Failed to find /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/version.h
2013-01-18T14:13:00.229+08:00| vthread-3| I120: Failed version test: /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/version.h not found.
2013-01-18T14:13:00.329+08:00| vthread-3| I120: Kernel header path retrieved from FileEntry: 
2013-01-18T14:13:00.329+08:00| vthread-3| I120: Update kernel header path to 
2013-01-18T14:13:00.329+08:00| vthread-3| I120: Validating path "" for kernel release "3.7.2-201.fc18.x86_64".
2013-01-18T14:13:00.329+08:00| vthread-3| I120: Failed to find /linux/version.h
2013-01-18T14:13:00.329+08:00| vthread-3| I120: Failed version test: /linux/version.h not found.
2013-01-18T14:13:00.329+08:00| vthread-3| I120: Kernel header path  is invalid.
2013-01-18T14:13:00.330+08:00| vthread-3| I120: Found compiler at "/usr/bin/gcc"
2013-01-18T14:13:00.335+08:00| vthread-3| I120: Got gcc version "4.7.2".
2013-01-18T14:13:00.335+08:00| vthread-3| I120: The GCC version matches the kernel GCC minor version like a glove.
2013-01-18T14:13:00.335+08:00| vthread-3| I120: Using user supplied compiler "/usr/bin/gcc".
2013-01-18T14:13:00.340+08:00| vthread-3| I120: Got gcc version "4.7.2".
2013-01-18T14:13:00.340+08:00| vthread-3| I120: The GCC version matches the kernel GCC minor version like a glove.
2013-01-18T14:13:00.345+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel "3.7.2-201.fc18.x86_64".
2013-01-18T14:13:00.345+08:00| vthread-3| I120: No matching PBM set was found for kernel "3.7.2-201.fc18.x86_64".
2013-01-18T14:13:00.345+08:00| vthread-3| I120: Validating path "" for kernel release "3.7.2-201.fc18.x86_64".
2013-01-18T14:13:00.345+08:00| vthread-3| I120: Failed to find /linux/version.h
2013-01-18T14:13:00.345+08:00| vthread-3| I120: Failed version test: /linux/version.h not found.
linux newbie, vmware fan, 囧rz..
Reply
0 Kudos
1 Solution

Accepted Solutions
beoale
Contributor
Contributor
Jump to solution

I found this in another forum and solved the problem:

The version.h file is missing in /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/ Therefore, the scrip is not able to get the right path to fetch the other header files.

The following will fix the problem by copying the version.h to the folder:

cp /usr/include/linux/version.h /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/

View solution in original post

Reply
0 Kudos
3 Replies
beoale
Contributor
Contributor
Jump to solution

I found this in another forum and solved the problem:

The version.h file is missing in /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/ Therefore, the scrip is not able to get the right path to fetch the other header files.

The following will fix the problem by copying the version.h to the folder:

cp /usr/include/linux/version.h /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/

Reply
0 Kudos
lovetide
Contributor
Contributor
Jump to solution

Thanks, it works! (I use symbolic link instead of copy)

cd /usr/src/kernels/$(uname -r)/include/linux/
ln -s /usr/include/linux/version.h version.h
linux newbie, vmware fan, 囧rz..
Reply
0 Kudos
phamthanhdong
Contributor
Contributor
Jump to solution

@lovetide: you made my day Smiley Happy Thank you!

Reply
0 Kudos