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.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have CentOS 5.5 (Final Release) installed on my netbook. I am trying to configure vmware on this machine. When I run vmware-config.pl it goes smooth until it tries to build vmmon module. It gives me following error when it tries to build vmmon module:
Code:
Extracting the sources of the vmmon module.
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config10/vmmon-only'
make -C /lib/modules/2.6.18-194.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-i686'
CC [M] /tmp/vmware-config10/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config10/vmmon-only/linux/driver.c:11:
include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory
In file included from /tmp/vmware-config10/vmmon-only/linux/driver.c:11:
include/linux/kernel.h:147: error: expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:151: error: expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:155: error: expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:162: error: expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:177: error: expected declaration specifiers or ‘...’ before ‘va_list’
In file included from include/linux/module.h:21,
from /tmp/vmware-config10/vmmon-only/linux/driver.c:12:
include/linux/marker.h:33: error: expected declaration specifiers or ‘...’ before ‘va_list’
In file included from /tmp/vmware-config10/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config10/vmmon-only/linux/driver.c:49:
/tmp/vmware-config10/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config10/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config10/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config10/vmmon-only/linux/driver.c:49:
/tmp/vmware-config10/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-config10/vmmon-only/linux/driver.c:145: warning: initialization from incompatible pointer type
/tmp/vmware-config10/vmmon-only/linux/driver.c:149: warning: initialization from incompatible pointer type
/tmp/vmware-config10/vmmon-only/linux/driver.c:2048: error: expected declaration specifiers or ‘...’ before ‘va_list’
/tmp/vmware-config10/vmmon-only/linux/driver.c: In function ‘LinuxDriverError’:
/tmp/vmware-config10/vmmon-only/linux/driver.c:2050: error: ‘args’ undeclared (first use in this function)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2050: error: (Each undeclared identifier is reported only once
/tmp/vmware-config10/vmmon-only/linux/driver.c:2050: error: for each function it appears in.)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2050: error: too many arguments to function ‘vsprintf’
/tmp/vmware-config10/vmmon-only/linux/driver.c: In function ‘Warning’:
/tmp/vmware-config10/vmmon-only/linux/driver.c:2069: error: ‘va_list’ undeclared (first use in this function)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2069: error: expected ‘;’ before ‘args’
/tmp/vmware-config10/vmmon-only/linux/driver.c:2071: error: implicit declaration of function ‘va_start’
/tmp/vmware-config10/vmmon-only/linux/driver.c:2071: error: ‘args’ undeclared (first use in this function)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2072: error: too many arguments to function ‘LinuxDriverError’
/tmp/vmware-config10/vmmon-only/linux/driver.c:2073: error: implicit declaration of function ‘va_end’
/tmp/vmware-config10/vmmon-only/linux/driver.c: In function ‘Log’:
/tmp/vmware-config10/vmmon-only/linux/driver.c:2128: error: ‘va_list’ undeclared (first use in this function)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2128: error: expected ‘;’ before ‘args’
/tmp/vmware-config10/vmmon-only/linux/driver.c:2135: error: ‘args’ undeclared (first use in this function)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2136: error: too many arguments to function ‘LinuxDriverError’
/tmp/vmware-config10/vmmon-only/linux/driver.c: In function ‘Panic’:
/tmp/vmware-config10/vmmon-only/linux/driver.c:2159: error: ‘va_list’ undeclared (first use in this function)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2159: error: expected ‘;’ before ‘args’
/tmp/vmware-config10/vmmon-only/linux/driver.c:2161: error: ‘args’ undeclared (first use in this function)
/tmp/vmware-config10/vmmon-only/linux/driver.c:2162: error: too many arguments to function ‘LinuxDriverError’
make[2]: *** [/tmp/vmware-config10/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config10/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.el5-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config10/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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Actually, the vmmon module should be present, when VMware is installed:
$ find /lib/modules/2.6.18-238.19.1.el5/ -name "*vmmon*"
/lib/modules/2.6.18-238.19.1.el5/misc/vmmon.ko
/lib/modules/2.6.18-238.19.1.el5/misc/vmmon.o
I had a look at the post that you mentioned. It is related to installing VMware player whereas I have installed vmware server. Installing part went smoothly without any issues but when I am trying to configure vmware (like network, NAT, host only, Bridge) using vmware-config.pl it is failing.
I am able to find vmmon.o modules but not vmmon.ko modules anywhere.
I finally got it sorted :-) I know the solution that I will put sounds funny but it worked for me. So here is what I did:
1. When I ran rpm -qa | grep gcc it was showing me gcc44, gcc-4.1.2, libgcc-4.1.2 and gcc-c++
2. When I was running vmware-config.pl I noticed at one point it is referring to /usr/bin/gcc for compilation which appears to be fine but I was having doubt that it is referring to some other location.
3. So, I removed gcc-4.1.2 which in turn removed gcc-c++.
4. When I ran vmware-config.pl this time it said that it is unable to find C compiler on my system.
5. I then ran yum install gcc which installed gcc-4.1.2 but it did not install gcc-c++
6. This time when I ran vmware-config.pl it gave me different error which was: gcc: error trying to exec 'cc1plus': execvp: No such file or directory
7. I then ran yum install gcc-c++
8. This time when I ran vmware-config.pl it went smooth and wow!!! I got my vmware configured :-)
What appears to me is that vmware-config.pl was showing that it is using /usr/bin/gcc but was trying to compile using /usr/bin/gcc44 but when I re-installed gcc it became default and things went smooth. May be I am wrong on but it worked for me :-)
I have a small query though. Does removing and re-installing gcc on a production system can affect any other applications? This one I did on my personal system but I just want to be sure if someday I have to do it on a production system.
Last edited by T3RM1NVT0R; 08-05-2011 at 08:12 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.