On 08/23/2010 10:43 AM, Roger Oberholtzer pecked at the keyboard and wrote:
I am trying to start VMware player, and it wants to rebuild it's kernel modules. This has usually worked ok after a kernel update. Unfortunately, it is not working now. The VMware log only contains the kernel command, and not the error messages. So I am doing the same by hand (command is the one vmplayer lists in the log when it tries this):
/usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.31.12-0.2-desktop/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4
Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-root/modules/vmmon-only' make -C /lib/modules/2.6.31.12-0.2-desktop/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory `/usr/src/linux-2.6.31.12-0.2-obj/i386/desktop' make -C ../../../linux-2.6.31.12-0.2 O=/usr/src/linux-2.6.31.12-0.2-obj/i386/desktop/. modules CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o In file included from /tmp/vmware-root/modules/vmmon-only/./include/compat_kernel.h:23, from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:25: /usr/src/linux-2.6.31.12-0.2/include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory [and so on]
Since I have done this before, I know that the required packages have been installed. Perhaps as the result of a kernel upgrade, the package that would contain this file is missing? I have these installed:
kernel-xen-devel-2.6.31.12-0.2.1.i586 kernel-default-devel-2.6.31.12-0.2.1.i586 kernel-source-2.6.31.12-0.2.1.noarch kernel-pae-devel-2.6.31.12-0.2.1.i586 kernel-desktop-devel-2.6.31.12-0.2.1.i586 kernel-desktop-2.6.31.12-0.2.1.i586 nfs-kernel-server-1.1.3-21.3.1.i586 linux-kernel-headers-2.6.31-3.4.noarch kernel-debug-devel-2.6.31.12-0.2.1.i586 kernel-syms-2.6.31.12-0.2.1.i586 kernel-firmware-20090821-4.1.noarch kernel-docs-2.6.3-44.4.noarch
Is this file somewhere else?
This is very odd. I have a driver that builds properly on OBS. I have also rebuilt it many times on my local system. It still compiles on OBS, but no longer compiles on my system. It (local system compile) makes the same argument about stdarg.h, which is referenced in /usr/src/linux-2.6.31.12-0.2/include/linux/kernel.h I use stdarg.h in local non-kernel programs and it works fine. So, why is the kernel module compile not finding this file? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org