LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-03-2011, 02:27 PM   #1
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Problems building vmmon module in CentOS


Hello everyone,

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.
Any help will be appreciated.
 
Old 08-03-2011, 02:45 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
stdarg.h, which is the file it can't find, is provided by gcc. Looks like you need to install gcc or the gcc development package.
 
1 members found this post helpful.
Old 08-03-2011, 03:04 PM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Original Poster
Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Thanks for your reply.

When I run rpm -qa | grep gcc I get the following response:

Code:
# rpm -qa | grep gcc
libgcc-4.1.2-48.el5
gcc-4.1.2-48.el5
gcc-c++-4.1.2-48.el5
gcc44-4.4.0-6.el5
Is there anything else that I should be looking for?
 
Old 08-03-2011, 04:16 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well, you could check, that the file is present ..

Latest is : gcc-4.1.2-50.el5.i386 ..

/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h
 
1 members found this post helpful.
Old 08-03-2011, 04:19 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Original Poster
Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi knudfl,

Yes, stdarg.h is present under /usr/lib/gcc/i386-redhat-linux/4.1.2/include/linux/
 
Old 08-03-2011, 04:43 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


Installed a few days ago, please see post #3 here
http://www.linuxquestions.org/questi...help-894451/#3

..
 
Old 08-04-2011, 02:52 PM   #7
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Original Poster
Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Thank you for your reply knudfl.

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.

Please advice.
 
Old 08-05-2011, 08:08 PM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Original Poster
Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hello everyone,

Thank you for your replies.

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.
 
  


Reply



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
Unable to build the vmmon module. malickhat Linux - Virtualization and Cloud 4 12-14-2009 12:26 AM
Problem with VMware server on OpenSUSE 10.2: building vmmon Intec Linux - Kernel 9 04-01-2007 08:41 AM
VMMON module error with vmware JET-33 Linux - Newbie 3 11-20-2006 04:47 PM
Trouble building vmmon module for VMware Server with Slackware 10.2 Lothoir Linux - Software 14 07-15-2006 09:01 PM
VMware vmmon building error Akuji Slackware 2 02-01-2004 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration