VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
10 Replies Last post: Jan 2, 2008 12:21 AM by cap3001  

Compiling Error posted: Dec 22, 2006 2:45 AM

Click to view cocobra798's profile Lurker 5 posts since
Dec 22, 2006
-Can someone translate for me from this log what is going wrong after I set the VM config file on it's way compiling:

-(I have my config.h file linked, have gcc and gcc++ installed, and have run the runme.pl script in vmware-any-any-update101, but the problem still occurs.
When I run unam -r it show up I have installed 2.6.18-1.2798.fc6. )

"
[root@CARTMAN ~]# vmware
vmware is installed, but it has not been (correctly) configured
for this system. To (re-)configure it, invoke the following command:
/usr/bin/vmware-config.pl.

[root@CARTMAN ~]# /usr/bin/vmware-config.pl
Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor [ OK ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel?
[/usr/src/kernels/2.6.18-1.2868.fc6-x86_64/include] /usr/src/kernels/2.6.18-1.2868.fc6-i686/include

]Extracting the sources of the vmmon module.

Building the vmmon module.

Unknown VMware Server 1.0.1 build 29996 detected. Building for Server 1 beta 2.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmmon-only'
make -C /usr/src/kernels/2.6.18-1.2868.fc6-i686/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-i686'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config2/vmmon-only/linux/driver.c:15:
include/linux/kernel.h:116: warning: conflicting types for built-in function ‘snprintf’
include/linux/kernel.h:118: warning: conflicting types for built-in function ‘vsnprintf’
In file included from include/linux/string.h:21,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:86,
from include/asm/processor.h:22,
from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:16:
include/asm/string.h:44: warning: conflicting types for built-in function ‘strncpy’
include/asm/string.h:80: warning: conflicting types for built-in function ‘strncat’
include/asm/string.h:125: warning: conflicting types for built-in function ‘strncmp’
include/asm/string.h:189: warning: conflicting types for built-in function ‘strlen’
include/asm/string.h:326: warning: conflicting types for built-in function ‘memmove’
In file included from include/linux/bitmap.h:8,
from include/linux/cpumask.h:86,
from include/asm/processor.h:22,
from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:16:
include/linux/string.h:76: warning: conflicting types for built-in function ‘strspn’
include/linux/string.h:79: warning: conflicting types for built-in function ‘strcspn’
include/linux/string.h:95: warning: conflicting types for built-in function ‘__builtin_memcmp’
In file included from include/asm/smp.h:17,
from include/linux/smp.h:18,
from include/linux/sched.h:63,
from include/linux/module.h:9,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:16:
include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:17,
from include/linux/smp.h:18,
from include/linux/sched.h:63,
from include/linux/module.h:9,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:16:
include/asm/mpspec.h:8: error: ‘MAX_MP_BUSSES’ undeclared here (not in a function)
include/asm/mpspec.h:22: error: ‘MAX_IRQ_SOURCES’ undeclared here (not in a function)
In file included from include/linux/smp.h:18,
from include/linux/sched.h:63,
from include/linux/module.h:9,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:16:
include/asm/smp.h:76:26: error: mach_apicdef.h: No such file or directory
In file included from include/linux/smp.h:18,
from include/linux/sched.h:63,
from include/linux/module.h:9,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:16:
include/asm/smp.h: In function ‘hard_smp_processor_id’:
include/asm/smp.h:80: error: implicit declaration of function ‘GET_APIC_ID’
In file included from include/asm/elf.h:52,
from include/linux/elf.h:7,
from include/linux/module.h:16,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:16:
include/asm/desc.h: In function ‘__set_tss_desc’:
include/asm/desc.h:69: warning: cast from pointer to integer of different size
include/asm/desc.h: In function ‘set_ldt_desc’:
include/asm/desc.h:77: warning: cast from pointer to integer of different size
In file included from include/linux/irq.h:22,
from include/asm/hardirq.h:5,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:24:
include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory
In file included from include/asm/hardirq.h:5,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:24:
include/linux/irq.h: At top level:
include/linux/irq.h:169: error: ‘NR_IRQS’ undeclared here (not in a function)
In file included from include/linux/irq.h:182,
from include/asm/hardirq.h:5,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:24:
include/asm/hw_irq.h:31: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function)
In file included from include/linux/interrupt.h:11,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:24:
include/linux/hardirq.h:35:27: warning: "NR_IRQS" is not defined
In file included from /tmp/vmware-config2/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config2/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:62: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config2/vmmon-only/linux/driver.c:160: warning: initialization from incompatible pointer type
/tmp/vmware-config2/vmmon-only/linux/driver.c:164: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

[root@CARTMAN ~]# ]

"

--Any Advise would be greatly appreciated.
-Thanks Craig

Re: Compiling Error

1. Dec 22, 2006 4:02 AM in response to: cocobra798
Click to view RDPetruska's profile Guru 15,875 posts since
Jan 11, 2005
Well, the any-any-update-101 is quite old. I think the most recent one was 105. You may want to try that first.

Re: Compiling Error

2. Dec 22, 2006 4:25 AM in response to: cocobra798
Click to view KevinG's profile Guru 16,980 posts since
Jan 8, 2004
Hi Craig ,

You do NOT need the any-any-update patch

When I run unam -r it show up I have installed 2.6.18-1.2798.fc6. )

/usr/src/kernels/2.6.18-1.2868.fc6-i686/include

You need the matching kernel and kernel-devel packages

Please post the output from the following command

rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\ n" | grep kernel | sort

Re: Compiling Error

4. Dec 23, 2006 8:32 AM in response to: cocobra798
Click to view KevinG's profile Guru 16,980 posts since
Jan 8, 2004
I did not ask for the output of all the packages installed on your system. ;-)

Please copy and paste the following and run it.
I believe that the original psoting may have had syntax errors.

rpm -qa --queryformat "%{NAME}%{VERSION}%{RELEASE}%{ARCH}\ n" | grep kernel | sort

The output from the above command should be a short list of only the kernel packages installed.

[/usr/src/kernels/2.6.18-1.2868.fc6-x86_64/include] /usr/src/kernels/2.6.18-1.2868.fc6-i686/include

You are using the wrong include directory for you x86_64 kernel

You should use
/usr/src/kernels/2.6.18-1.2868.fc6-x86_64/include

Pleaase post the output from

rpm -qa | grep -i kernel

Re: Compiling Error

6. Dec 24, 2006 3:48 AM in response to: cocobra798
Click to view KevinG's profile Guru 16,980 posts since
Jan 8, 2004
Like I said in my previous posting, you are using the wrong kernel-devel and kernel-header package for the running kernel

Re: Compiling Error

7. Dec 26, 2006 8:29 AM in response to: KevinG
Click to view singk's profile Novice 6 posts since
Dec 22, 2006
KevinG,
I have similar problem. I had upgrade from 10.1 to 10.2, and now my VMware is not working. Here's an output of my Kernel list

# rpm -qa | grep -i kernel

kernel-source-2.6.18.2-34
kernel-um-2.6.18.2-34
kernel-smp-2.6.16.21-0.25
kernel-kdump-2.6.18.2-34
kernel-xen-2.6.18.2-34
linux-kernel-headers-2.6.18.2-3
kernel-syms-2.6.18.2-34

Help please..

Re: Compiling Error

8. Mar 17, 2007 9:43 AM in response to: singk
Click to view bossi's profile Lurker 1 posts since
Mar 17, 2007
after i have upgrated fedora 6 from kernel 2911 to 2925, the vmware-config.pl did not work anymore.

I believe i have the correct kernel source installed.

rpm -qa | grep -i kernel | sort gives the following output:

kernel-2.6.19-1.2911.6.5.fc6
kernel-2.6.20-1.2925.fc6
kernel-devel-2.6.20-1.2925.fc6
kernel-doc-2.6.20-1.2925.fc6
kernel-headers-2.6.20-1.2925.fc6
kernel-xen-2.6.19-1.2911.6.4.fc6
kernel-xen-2.6.19-1.2911.6.5.fc6
kernel-xen-devel-2.6.19-1.2911.6.5.fc6

the procedure of wmware-config.pl is the following:

Making sure services for VMware Player are stopped.

Stopping VMware services:
Virtual machine monitor [ OK ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Player is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/kernels/2.6.20-1.2925.fc6-i686/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config5/vmmon-only'
make -C /usr/src/kernels/2.6.20-1.2925.fc6-i686/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2925.fc6-i686'
CC [M] /tmp/vmware-config5/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config5/vmmon-only/linux/driver.c:80:
/tmp/vmware-config5/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config5/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config5/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config5/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config5/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2925.fc6-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config5/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

???????
the uname output is:

uname -a

Linux quatro 2.6.20-1.2925.fc6 #1 SMP Sat Mar 10 19:15:16 EST 2007 i686 i686 i386 GNU/Linux

please help me ...

Martin Bossard

Re: Compiling Error

9. Mar 17, 2007 9:52 AM in response to: bossi
Click to view KevinG's profile Guru 16,980 posts since
Jan 8, 2004
Remove the following packages since you can not use a xen kernel with VMware installed

kernel-xen-2.6.19-1.2911.6.4.fc6
kernel-xen-2.6.19-1.2911.6.5.fc6
kernel-xen-devel-2.6.19-1.2911.6.5.fc6

You will most likely need to apply Petr's patch to be able to use that kernel version (kernel-2.6.20-1.2925.fc6 )

Petr's unofficial vmware-any-any-update108.tar.gz can be found here
http://knihovny.cvut.cz/ftp/pub/vmware/

Re: Compiling Error

10. Jan 2, 2008 3:07 AM in response to: KevinG
Click to view cap3001's profile Lurker 1 posts since
Jan 2, 2008
Hi KevinG,

I think that i have the same kind of problem. Maybe you can help me cause i can't see the problem.
I am using kernel 2.6.23.8-34-fc7 and have the following kernel packages installed:


kernel- 2.6.21-1.3194.fc7
kernel-headers- 2.6.23.8-34.fc7
kernel-devel- 2.6.21-1.3194.fc7
kernel-devel- 2.6.23.8-34.fc7
kernel- 2.6.23.8-34.fc7


After installing FC7 i did an yum update, after that i installed vmware server 1.0.4.


When running /usr/bin/vmware-config.pl i got the following error:

  1. None of the pre-built vmmon modules for VMware Server is suitable for your
  2. running kernel. Do you want this program to try to build the vmmon module for
  3. your system (you need to have a C compiler installed on your system)? yes

  1. Using compiler "/usr/bin/gcc". Use environment variable CC to override.
  2. What is the location of the directory of C header files that match your running
  3. kernel? [/lib/modules/2.6.23.8-34.fc7/build/include]

  1. Extracting the sources of the vmmon module.

  1. Building the vmmon module.

  1. Using 2.6.x kernel build system.
  2. make: Entering directory `/tmp/vmware-config0/vmmon-only'
  3. make -C /lib/modules/2.6.23.8-34.fc7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
  4. make[1]: Entering directory `/usr/src/kernels/2.6.23.8-34.fc7-i686'
  5. CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
  6. /tmp/vmware-config0/vmmon-only/linux/driver.c: In function âLinuxDriver_Ioctlâ:
  7. /tmp/vmware-config0/vmmon-only/linux/driver.c:1659: error: âstruct mm_structâ has no member named âdumpableâ
  8. make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
  9. make[1]: *** --_module_/tmp/vmware-config0/vmmon-only-- Error 2
  10. make[1]: Leaving directory `/usr/src/kernels/2.6.23.8-34.fc7-i686'
  11. make: *** http://vmmon.ko Error 2
  12. make: Leaving directory `/tmp/vmware-config0/vmmon-only'
  13. Unable to build the vmmon module.
#
  1. For more information on how to troubleshoot module-related problems, please
  2. visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
  3. "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
#
  1. Execution aborted.

Do you have any idea where i can looking for?


Thanks in advance!


Martijn

I was to fast posting my question :-( The following post worked for me:

http://communities.vmware.com/message/784356#784356

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities