PDA

View Full Version : vmware-install.pl on fc5 errrors



norrtull
1st May 2006, 09:51 AM
I get errors when trying to compile modules for vmware workstation.
Can anybody help me with this ?
I have absolutely no clue what could be wrong

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

None of the pre-built vmmon modules for VMware Workstation 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? [/lib/modules/2.6.16-1.2096_FC5/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.16-1.2096_FC5/build/include/.. SUBDIRS=$PWD SRCROOT=$PW D/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2096_FC5-i686'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:49:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_ EPOLL" is not defined
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_ EPOLL" is not defined
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:49:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:60: error: conflicting ty pes for ‘poll_initwait’
include/linux/poll.h:45: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config0/vmmon-only/linux/driver.c:145: warning: initialization from incompatible pointer type
/tmp/vmware-config0/vmmon-only/linux/driver.c:149: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2096_FC5-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/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.




--------------------------- configuration ------------------------------------------------------------------------------
uname -a
Linux localhost.localdomain 2.6.16-1.2096_FC5 #1 Wed Apr 19 05:14:36 EDT 2006 i686 i686 i386 GNU/Linux


rpm -qa | grep kernel
kernel-devel-2.6.16-1.2080_FC5
kernel-2.6.16-1.2080_FC5
kernel-2.6.16-1.2096_FC5
kernel-devel-2.6.16-1.2096_FC5


rpm -qa | grep gcc
gcc-c++-4.1.0-3
gcc-4.1.0-3
libgcc-4.1.0-3
gcc-gfortran-4.1.0-3
compat-libgcc-296-2.96-135 :)

multescugeorge@
1st May 2006, 10:28 AM
tmp/vmware-config0/vmmon-only/./include/compat_wait.h:60: error: conflicting ty pes for 'poll_initwait'
include/linux/poll.h:45: error: previous declaration of 'poll_initwait' was here

These say there is a coding error in the source files of vmware
My guess is they didn't update the sources to match the new kernel.

You could get an older kernel, like 2.6.15 from www.kernel.org
Compile it, boot from it, and then try to make vmware install again.
(There is a ton of materials on how to build new kernel from sources, give it a search)

As an alternative, wait until the new version of vmware comes, or correct the code yourself (i wouldn't try that, but if you have lots of spare time available you can give it a try)

mcwill
1st May 2006, 10:40 AM
I have vmware workstation running on the 2096 kernel, I followed the excellent intructions here...

http://www.vmware.com/community/thread.jspa?threadID=26693&tstart=0

which basically says, download & extract

http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update101.tar.gz

then run ./runme.pl in the extracted folder.

As simple as that ;)

jim
1st May 2006, 10:54 AM
Just updated as well since installing the 2096 kernel works flawlessly

norrtull
1st May 2006, 11:44 AM
It seem to work.
Not exactly as described.
I had to run the runme script twice.
Firstattempt failed on some problem with fonts (no logs Im afraid).
Second try everything compile and started as expected.
Now lets see if I can create a virtual machine.

Thanks guys.

-------------------------------------------------------------------

norrtull
1st May 2006, 05:11 PM
Yep.
I created a windows 98 vm. Works pretty well.
Problems with the sound and some other minor stuff.
Shold be solvable ... :)

titon
10th May 2006, 03:29 PM
Hola a todos..
ya he buscado si alguien habia posteado este error, pero no lo encontre, asi que les cuento que despues de instalar el .rpm del VMware-workstation-5.5.0-18463.i386, al ejecutar el vmware-config.pl se ejecuta en el terminal asi:

Making sure services for VMware Workstation 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 Workstation 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] 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/linux/include] /lib/modules/2.6.15-1.2054_FC5/build/include

The kernel defined by this directory of header files does not have the same
address space size as your running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

entonces lo que no entiendo es lo que esta en negrita..
por favor agradezco su ayuda.
thanks!

titon
4th June 2006, 01:51 AM
esto lo encontre en http://www.fedora-es.com/node/3715 ojala sirva de ayuda a los que aun no han logrado instalar vmware

Hola...
Primero que todo actualiza Fedora Core 5, como root haz esto

# yum -y update

va demorar un poco, pero la inteción es que actualices el kernel...

luego instala el kernel-devel correspondiente a tu kernel...
que como sabes cual es tu kernel?:

# uname -rm

lo descargas y lo instalas, aunque mas facil sería:

# yum install kernel-devel

luego te bajas el parche de:

http://ftp.cvut.cz/vmware/vmware-any-any-update101.tar.gz

lo descomprimes, entras en la carpeta descomprimida y haces:

# runme.pl

y te saldra algo asi como lo siguiente:

Updating /usr/bin/vmware-config.pl ... already patched
Updating /usr/bin/vmware ... No patch needed/available
Updating /usr/bin/vmnet-bridge ... No patch needed/available
Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
VMware modules in "/usr/lib/vmware/modules/source" has been updated.
Before running VMware for the first time after update, you need to configure it
for your running kernel by invoking the following command:
"/usr/bin/vmware-config.pl". Do you want this script to invoke the command for
you now? [yes]

le das enter y empezara ejecutar vmware-config.pl.... y te saldra:

Making sure services for VMware Workstation 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 Workstation 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/linux/include]

ahi le ingresas:

/usr/src/2.6.16-1.xxxx_FC5-i586/kernels/include

ahi le pones en vez de xxxx la que coresponde a tu kernel, que puedes ser 2080 o otro, y en donde esta i586 pones la arquitectura de acuerdo a tu kernel, que puede ser i586 o i686, en realidad es la carpeta que esta dentro de /usr/src, verificalo...

y terminara de ejecutar el vmware-config.pl; y con eso podras ejecutar el vmware.