[opensuse] compiling vmplayer vmmon module on OS 11.2
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? -- 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
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?
From webpin:
* gcc43: The GNU C Compiler and Support Files - 4.3.4_20090804 [suse-oss] >> /usr/lib/gcc/i586-suse-linux/4.3/include/stdarg.h Do you have gcc installed? -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2010-08-23 at 11:02 -0400, Ken Schneider - openSUSE wrote:
Is this file somewhere else?
From webpin:
* gcc43: The GNU C Compiler and Support Files - 4.3.4_20090804 [suse-oss] >> /usr/lib/gcc/i586-suse-linux/4.3/include/stdarg.h
Do you have gcc installed?
Yes. It is a full development system on chich I compile many things. My file is: /usr/lib/gcc/i586-suse-linux/4.4/include/stdarg.h But shouldn't this also be in /usr/include/ somewhere? The Makefile is the one that comes with vmmon from VMware. It is in a tar file in /usr/lib/vmware. -- 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
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
On Thu, 2010-08-26 at 09:45 +0200, Roger Oberholtzer wrote: I cannot compile kernel modules on opensuse 11.2 with kernel 2.6.31.12-0.2-desktop I get this error: /usr/src/linux-2.6.31.12-0.2/include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory I see that kernel.h is indeed including stdarg.h. But I do not see stdarg.h in the kernel include files. stdarg.h does exist for normal compiles (non-kernel). It is only when compiling ANY kernel modules that this happens. At first I thought this was only an issue with VMplayer. But I see now that it is for any kernel module I compile out of the kernel tree. I don't know if the kernel itself compiles. -- 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
* Roger Oberholtzer (roger@opq.se) [20100827 09:05]:
/usr/src/linux-2.6.31.12-0.2/include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory
What flags are passed to the compiler? If they include -nostdinc it's clear why it won't be found because that flag tells the compiler to only search in those directories passed explicitly to it. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-08-27 at 15:04 +0200, Philipp Thomas wrote:
* Roger Oberholtzer (roger@opq.se) [20100827 09:05]:
/usr/src/linux-2.6.31.12-0.2/include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory
What flags are passed to the compiler? If they include -nostdinc it's clear why it won't be found because that flag tells the compiler to only search in those directories passed explicitly to it.
I will have to see if VMware's vmmon Makefile is using this. If so, it never should have compiled. I really feel this went wrong when the last kernel update was done. I am trying both the current and the previous VMPlayer. The previous one did work - I have been running it on 11.2 for months. And I am fairly certain that it made the modules prior to the last kernel update. It has just stopped being able to do so. -- 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
* Philipp Thomas (pth@suse.de) [20100827 15:04]:
What flags are passed to the compiler? If they include -nostdinc it's clear why it won't be found because that flag tells the compiler to only search in those directories passed explicitly to it.
I have to correct myself. The kernel itself uses -notdinc -isystem $(shell $(CC) -print-file-name=include) this excludes the user land headers but includes the compiler specific ones. To explain: gcc -print-file-name=include outputs the path to the compiler specific headers and prepending -isystem includes them and treats them as system headers for which a number of warnings are suppressed. So the short story is that if -nostdinc is present and -isystem $(shell $(CC) -print-file-name=include) not you have the reason why kernel compiles succeed but not the vmware modules. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2010-08-26 at 09:45 +0200, Roger Oberholtzer wrote:
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):
I wound up having to untar the driver sources in /usr/lib/vmware/modules/source, and adding a link in their various include files as follows: ln -s /usr/lib/gcc/i586-suse-linux/4.4/include/stdarg.h . Then, the modules built ok. I tried making a link in the kernel includes (it was a kernel include file that was making the reference, after all), That failed with some errors. Now I can run VMPlayer. Next step is to get the network working again. My IP address changed on the host machine. And I am not using eth0 for this network. -- 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
On Mon, 2010-08-30 at 10:46 +0200, Roger Oberholtzer wrote:
On Thu, 2010-08-26 at 09:45 +0200, Roger Oberholtzer wrote:
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):
I wound up having to untar the driver sources in /usr/lib/vmware/modules/source, and adding a link in their various include files as follows:
ln -s /usr/lib/gcc/i586-suse-linux/4.4/include/stdarg.h .
DO NOT MAKE A LINK! MAKE A COPY OF THE FILE!!! It seems that when the vmplayer kernel compiling is finished, it deletes the temp place it unpacked the tar archive. And, this delete seems to have been done in such a way that targets of sym links are deleted! don't see that as an option to 'rm'. But this seems to be what happened. When my one-at-a-time testing of the compiling was finished, I let vmplayer do the whole thing again so any other things were also done. After that, my stdarg.h file was deleted. Had to reinstall gcc44. VMware just keeps biting me... -- 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
On Monday 23 August 2010 04:43:38 am Roger Oberholtzer 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?
-- 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
slightly off topic, but, after using vmwre since the #2 series, finally switched to virtualbox. everything works better and i can even use my vmware virtual machines in vbox:) d. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2010-08-23 at 12:16 -1000, kanenas@hawaii.rr.com wrote:
slightly off topic, but, after using vmwre since the #2 series, finally switched to virtualbox. everything works better and i can even use my vmware virtual machines in vbox:)
Interesting. How did you get the VMs from VMware to vbox? I am not married to VMplayer. -- 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
On 08/24/2010 02:54 AM, Roger Oberholtzer pecked at the keyboard and wrote:
On Mon, 2010-08-23 at 12:16 -1000, kanenas@hawaii.rr.com wrote:
slightly off topic, but, after using vmwre since the #2 series, finally switched to virtualbox. everything works better and i can even use my vmware virtual machines in vbox:)
Interesting. How did you get the VMs from VMware to vbox? I am not married to VMplayer.
First remove the vmtools from the VM. Add the VM to Vbox using Virtual Media Manager. Create a new VM in Vbox and use the disk you setup in VMM. Start the VM and after you log in to the VM install the VboxTools. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2010-08-24 at 08:19 -0400, Ken Schneider - openSUSE wrote:
On 08/24/2010 02:54 AM, Roger Oberholtzer pecked at the keyboard and wrote:
On Mon, 2010-08-23 at 12:16 -1000, kanenas@hawaii.rr.com wrote:
slightly off topic, but, after using vmwre since the #2 series, finally switched to virtualbox. everything works better and i can even use my vmware virtual machines in vbox:)
Interesting. How did you get the VMs from VMware to vbox? I am not married to VMplayer.
First remove the vmtools from the VM. Add the VM to Vbox using Virtual Media Manager. Create a new VM in Vbox and use the disk you setup in VMM. Start the VM and after you log in to the VM install the VboxTools.
I tried this, but the guest does not boot. For some reason, the VMWare disk was set up to be a number of 2 GB files: -rw------- 1 roger users 2137260032 2010-08-30 10:08 Ramböll XP Professional-s001.vmdk -rw------- 1 roger users 2146762752 2010-08-30 10:08 Ramböll XP Professional-s002.vmdk -rw------- 1 roger users 2143617024 2010-08-30 10:08 Ramböll XP Professional-s003.vmdk -rw------- 1 roger users 2146762752 2010-08-30 10:08 Ramböll XP Professional-s004.vmdk -rw------- 1 roger users 1572864 2010-08-30 10:08 Ramböll XP Professional-s005.vmdk -rw------- 1 roger users 974 2010-08-30 10:04 Ramböll XP Professional.vmdk In VirtualBox, I selected the file "Ramböll XP Professional.vmdk". It seemed to be read okay. VB said it was an 8 GB partition, which it is. But when VB starts I get a window, but no boot. The log ends with: 00:00:29.461 Guest Log: BIOS: Boot from Floppy 0 failed 00:00:29.462 Guest Log: BIOS: CDROM boot failure code : 0003 00:00:29.463 Guest Log: BIOS: Boot from CD-ROM failed 00:00:29.463 Guest Log: BIOS: Booting from Hard Disk... 00:00:29.775 Guest Log: BIOS: int13_harddisk: function 15, unmapped device for ELDL=81 -- 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
participants (4)
-
kanenas@hawaii.rr.com
-
Ken Schneider - openSUSE
-
Philipp Thomas
-
Roger Oberholtzer