Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: Gentoo Hardened using OpenRC not Systemd
compiling vmware module in ubuntu feisty
VMWare Server was working in Edgy. I upgraded to Feisty. Now the VMWare Server module will not compile.
vmware is installed, but it has not been (correctly) configured
for this system. To (re-)configure it, invoke the following command:
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?
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/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
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: 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: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make: 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
chris@ubuntu:~$ which gcc
chris@ubuntu:~$ gcc -v
Using built-in specs.
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 22.214.171.124-10.34 Header files related to Linux kernel version
ii linux-headers-2.6.17-10-generic 126.96.36.199-10.34 Linux kernel headers for version 2.6.17 on x
ii linux-headers-2.6.17-11 188.8.131.52-11.35 Header files related to Linux kernel version
ii linux-headers-2.6.17-11-generic 184.108.40.206-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 220.127.116.11.6 Generic Linux kernel headers
chris@ubuntu:~$ cat /etc/issue.net
Distribution: Gentoo Hardened using OpenRC not Systemd
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.
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.