LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-14-2007, 02:57 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
compiling vmware module in ubuntu feisty


VMWare Server was working in Edgy. I upgraded to Feisty. Now the VMWare Server module will not compile.

Code:
chris@ubuntu:~$ 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.

chris@ubuntu:~$ sudo /usr/bin/vmware-config.pl 
Making sure services for VMware Server are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

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] 

/usr/share/applications/vmware-server.desktop: warning: The 'Application' category is not defined by the desktop entry specification.  Please use one of "AudioVideo", "Audio", "Video", "Development", "Education", "Game", "Graphics", "Network", "Office", "Settings", "System", "Utility" instead
/usr/share/applications/vmware-console-uri-handler.desktop: warning: The 'Application' category is not defined by the desktop entry specification.  Please use one of "AudioVideo", "Audio", "Video", "Development", "Education", "Game", "Graphics", "Network", "Office", "Settings", "System", "Utility" instead
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? [/lib/modules/2.6.20-10-generic/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.20-10-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-10-generic'
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:80:
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
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/linux-headers-2.6.20-10-generic'
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.

chris@ubuntu:~$ which gcc
/usr/bin/gcc
chris@ubuntu:~$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
chris@ubuntu:~$ dpkg -l | grep header
ii  linux-headers-2.6.17-10                    2.6.17.1-10.34                         Header files related to Linux kernel version
ii  linux-headers-2.6.17-10-generic            2.6.17.1-10.34                         Linux kernel headers for version 2.6.17 on x
ii  linux-headers-2.6.17-11                    2.6.17.1-11.35                         Header files related to Linux kernel version
ii  linux-headers-2.6.17-11-generic            2.6.17.1-11.35                         Linux kernel headers for version 2.6.17 on x
ii  linux-headers-2.6.20-10                    2.6.20-10.17                           Header files related to Linux kernel version
ii  linux-headers-2.6.20-10-generic            2.6.20-10.17                           Linux kernel headers for version 2.6.20 on x
ii  linux-headers-generic                      2.6.20.10.6                            Generic Linux kernel headers
chris@ubuntu:~$ cat /etc/issue.net 
Ubuntu feisty
 
Old 03-14-2007, 10:03 AM   #2
shshjun
Member
 
Registered: Nov 2004
Location: del
Distribution: jds
Posts: 88

Rep: Reputation: 15
actually red means try to stop
 
Old 03-14-2007, 12:52 PM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Original Poster
Rep: Reputation: 81
Do you have any help for the problem?
 
Old 04-15-2007, 01:25 PM   #4
k2t0f12d
LQ Newbie
 
Registered: Jan 2007
Location: Under a rock . . .
Distribution: LFS SVN 20070514; Kubuntu 7.04 `Feisty'
Posts: 11

Rep: Reputation: 0
Someone claims to have corrected the vmware module build for Fedora, and another says this works for Ubuntu as well. I have not tried this yet, but you can follow the thread here:

http://www.vmware.com/community/thre...threadID=65982
 
Old 05-02-2007, 10:23 AM   #5
ernesto_cgf
Member
 
Registered: Nov 2003
Location: Havana, Cuba
Distribution: Ubuntu 9.04 "Jaunty Jackalope"
Posts: 153

Rep: Reputation: 30
I'm exactly on the same problem here! At first I thought it was my problem but I thought about asking for help to see if I did anything wrong, and now I can see it is not me.

All that I can say is that the patch mentioned in that page works, and I am on Ubuntu Feisty too.

The page, mentioned just above by k2t0f12d, is
http://www.vmware.com/community/thre...threadID=65982
 
Old 05-04-2007, 06:12 PM   #6
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Original Poster
Rep: Reputation: 81
I found a solution. Installing a package with patched vmware server modules after the compilation has failed, and then running vmware-config.pl as root again solves the problem, and the modules will compile fine without errors.

Code:
vmware-server-kernel-modules-2.6.20-15 - vmware-server modules for Linux (kernel 2.6.20)
vmware-server-kernel-modules - vmware-server kernel module dependency package

Last edited by fakie_flip; 05-04-2007 at 06:13 PM.
 
  


Reply

Tags
feisty fawn, ubuntu, vmware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Feisty CDMA modem +TV tuner installation problem farhadali05 Linux - Software 0 03-11-2007 05:58 AM
LXer: Ubuntu says no to non-free video drivers for Feisty LXer Syndicated Linux News 0 02-14-2007 01:16 AM
LXer: Ubuntu Feisty Fawn Herd 3 Released LXer Syndicated Linux News 0 02-03-2007 12:54 AM
Errors when compiling vmware-server module hondo Linux - Software 5 02-02-2007 04:04 PM
compiling vmware module on mandrake 9.1 psychonic Linux - Newbie 4 07-21-2003 08:14 PM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration