LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [VMware] Compile kernel problem. (https://www.linuxquestions.org/questions/linux-software-2/%5Bvmware%5D-compile-kernel-problem-736549/)

baicunko 06-29-2009 07:28 PM

[VMware] Compile kernel problem.
 
Hi, i'm currently running fedora 11, just changed from ubuntu, got tired of it and im currently trying to install VMware, i couldn't install it on ubuntu either.

Currently when it comes to rebuilding the kernel it brings up the following error
"unable to build kernel module"
see log file XXXXXXXXXX for details."

If i copy the terminal stuff it says.
Code:

[root@Fedora-RulZ baicunko]# vmware
Logging to /tmp/vmware-root/setup-5679.log
modinfo: could not find module vmmon
modinfo: could not find module vmnet
modinfo: could not find module vmblock
modinfo: could not find module vmci
modinfo: could not find module vsock
modinfo: could not find module vmmon
modinfo: could not find module vmnet
modinfo: could not find module vmblock
modinfo: could not find module vmci
modinfo: could not find module vsock
modinfo: could not find module vmmon
modinfo: could not find module vmnet
modinfo: could not find module vmblock
modinfo: could not find module vmci
modinfo: could not find module vsock
modinfo: could not find module vmmon
modinfo: could not find module vmnet
modinfo: could not find module vmblock
modinfo: could not find module vmci
modinfo: could not find module vsock
modinfo: could not find module vmmon
modinfo: could not find module vmnet
modinfo: could not find module vmblock
modinfo: could not find module vmci
modinfo: could not find module vsock
modinfo: could not find module vmmon
modinfo: could not find module vmnet
modinfo: could not find module vmblock
modinfo: could not find module vmci
modinfo: could not find module vsock
Stopping VMware services:
  Virtual machine communication interface[  OK  ]
  Virtual machine monitor[  OK  ]
  Blocking file system[  OK  ]
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/2.6.29.5-191.fc11.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.29.5-191.fc11.x86_64'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
In file included from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:31:
/tmp/vmware-root/modules/vmmon-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:67: note: previous declaration of ‘poll_initwait’ was here
In file included from /tmp/vmware-root/modules/vmmon-only/./include/vmware.h:38,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:99:
/tmp/vmware-root/modules/vmmon-only/./include/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
In file included from /tmp/vmware-root/modules/vmmon-only/./common/vmx86.h:31,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.h:29,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:101:
/tmp/vmware-root/modules/vmmon-only/./include/x86apic.h:97:1: warning: "APIC_BASE_MSR" redefined
In file included from /usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/numa_64.h:5,
                from /usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/numa.h:4,
                from /usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/acpi.h:28,
                from /usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/fixmap_64.h:15,
                from /usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/fixmap.h:7,
                from /usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/apic.h:8,
                from /usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/smp.h:13,
                from include/linux/smp.h:36,
                from include/linux/topology.h:33,
                from include/linux/mmzone.h:767,
                from include/linux/gfp.h:4,
                from include/linux/kmod.h:22,
                from include/linux/module.h:13,
                from /tmp/vmware-root/modules/vmmon-only/./include/compat_module.h:27,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:26:
/usr/src/kernels/2.6.29.5-191.fc11.x86_64/arch/x86/include/asm/apicdef.h:132:1: warning: this is the location of the previous definition
In file included from /tmp/vmware-root/modules/vmmon-only/./include/vcpuset.h:103,
                from /tmp/vmware-root/modules/vmmon-only/./include/modulecall.h:37,
                from /tmp/vmware-root/modules/vmmon-only/./common/vmx86.h:33,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.h:29,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:101:
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:329:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:333:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:401:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:407:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:460:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:506:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:551:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:595:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:640:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:684:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:729:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:773:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:775:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:816:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:860:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:862:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:903:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:945:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:947:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:986:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1028:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1030:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1069:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1223:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1227:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1313:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1536:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1663:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1796:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86_64.h:39,
                from /tmp/vmware-root/modules/vmmon-only/./include/vm_asm.h:41,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:103:
/tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:486:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:779:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:820:7: warning: "_MSC_VER" is not defined
/tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:922:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-root/modules/vmmon-only/./include/vm_asm.h:41,
                from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:103:
/tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86_64.h:56:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:119:
/tmp/vmware-root/modules/vmmon-only/./common/hostif.h:53:7: warning: "WINNT_DDK" is not defined
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1423: error: too many arguments to function ‘smp_call_function’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘euid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘fsuid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘egid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘fsgid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:2007: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.29.5-191.fc11.x86_64'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only


And this is the log file VMware tells me to read
Code:

Jun 29 19:58:43.328: app| Log for VMware Workstation pid=2606 version=6.5.1 build=build-126130 option=Release
Jun 29 19:58:43.329: app| Host codepage=UTF-8 encoding=UTF-8
Jun 29 19:58:43.329: app| Logging to /tmp/vmware-root/setup-2606.log
Jun 29 19:58:45.694: app| Extracting the sources of the vmmon module.
Jun 29 19:58:45.781: app| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.29.5-191.fc11.x86_64/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.0
Jun 29 19:59:07.159: app| Extracting the sources of the vmmon module.
Jun 29 19:59:07.197: app| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.29.5-191.fc11.x86_64/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.0


anyone know what i can do?

masand 06-29-2009 11:49 PM

hi there

How are your rebuilding the kernel for VMWare ?Which kernel source and config you are using ?

regards

baicunko 06-30-2009 05:59 PM

Quote:

Originally Posted by masand (Post 3590982)
hi there

How are your rebuilding the kernel for VMWare ?Which kernel source and config you are using ?

regards

I just open VMware through console.

su.
then vmware and it automatically starts to compile.

[baicunko@Fedora-RulZ ~]$ uname -r
2.6.29.5-191.fc11.x86_64

what else do u need?
http://img15.imageshack.us/img15/8711/screenshotorr.png

thats an screen shot of the error

unSpawn 06-30-2009 06:29 PM

Quote:

Originally Posted by baicunko (Post 3592200)
I just open VMware through console.

You're supposed to run the config perl script. If that doesn't work check if downloading a recent fix patch (http://communities.vmware.com/servle...ch;jsessionid=) and fix shell script (http://communities.vmware.com/servle...sh;jsessionid=) and then running the vmware-6.5.2-modules-2.6.30-fix.sh helps. If that doesn't work one of the VMware people might have released a vmware-any-any-update*.tar.gz update but I haven't checked.

george00 07-24-2009 08:47 AM

patch
 
Here is a patch for 2.9.29 kernel:

http://communities.vmware.com/thread/203231


All times are GMT -5. The time now is 12:06 PM.