Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255208 - app-emulation/vmware-modules-1.0.0.23 fails to compile on kernels <=2.6.27
Summary: app-emulation/vmware-modules-1.0.0.23 fails to compile on kernels <=2.6.27
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 265261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-16 21:39 UTC by norbert kamenicky
Modified: 2011-11-10 16:19 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.97 KB, text/plain)
2009-02-01 04:18 UTC, Péter Werner
Details
1.0.0.23-smpcall-pollinitwait.patch Patch to fix the issues described here (1.0.0.23-smpcall-pollinitwait.patch,10.60 KB, patch)
2009-02-20 14:47 UTC, Robert Schultz
Details | Diff
applied patch for the too many arguments error (vmware-2.6.29-rc1.patch,19.42 KB, text/plain)
2009-04-30 12:13 UTC, renato gallo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description norbert kamenicky 2009-01-16 21:39:12 UTC
vmware-modules-1.0.0.23 fails to compile with 
error: too many arguments to function 'smp_call_function'


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. ACCEPT_KEYWORDS="~x86" emerge vmware-modules
3. 

Actual Results:  




#ls -l /usr/src/linux
lrwxrwxrwx 1 root root 22 2009-01-16 12:30 /usr/src/linux -> linux-2.6.27-gentoo-r7

vmware-modules-1.0.0.23 fails to compile with this message:

Compiling source in /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work ...
 .[32;01m*.[0m Preparing vmmon module
make -j3 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/usr/src/linux
Using 2.6.x kernel build system.
make -C /usr/src/linux M=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r7'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.o
In file included from /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:31:
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'
include/linux/poll.h:65: error: previous declaration of 'poll_initwait' was here
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c: In function 'LinuxDriverSyncCallOnEachCPU':
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1423: error: too many arguments to function 'smp_call_function'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:2007: error: too many arguments to function 'smp_call_function'
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.o] Error 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
make: *** [vmmon.ko] Error 2
Comment 1 Mike Auty (RETIRED) gentoo-dev 2009-01-19 23:46:33 UTC
Please include the output from the "emerge --info" command.
Comment 2 norbert kamenicky 2009-01-19 23:54:32 UTC
After todays rsync it builds OK ...
I guess it was "sse" bug.
Comment 3 Péter Werner 2009-02-01 04:18:35 UTC
Created attachment 180507 [details]
emerge --info

/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here

declaration in vmware-modules-1.0.0.23:
/* If prototype does not match, build will abort here */
extern void poll_initwait(compat_poll_wqueues *);

declaration in kernel:
/usr/src/linux-2.6.27-gentoo-r8/include/linux/poll.h:65:
extern void poll_initwait(struct poll_wqueues *pwq);

See also bug 227303.
Comment 4 Péter Werner 2009-02-01 05:20:34 UTC
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/./include/compat_wait.h:

#ifdef VMW_HAVE_EPOLL // {
#define compat_poll_wqueues struct poll_wqueues
#else // } {
#define compat_poll_wqueues poll_table
#endif // }

The problem is that VMW_HAVE_EPOLL is not defined.

/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/Makefile.kernel:
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/nopage1.c, -DVMW_NOPAGE_261, -DVMW_NOPAGE_261__OFF)
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/skas1.c,   -DVMW_SKAS_MMAP, -DVMW_SKAS_MMAP__OFF)
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/epoll.c,   -DVMW_HAVE_EPOLL, -DVMW_HAVE_EPOLL__OFF)
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/setnice.c, -DVMW_HAVE_SET_USER_NICE, -DVMW_HAVE_SET_USER_NICE__OFF)
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/smpcall.c, -DVMW_HAVE_SMP_CALL_3ARG, -DVMW_HAVE_SMP_CALL_3ARG__OFF)

vm_check_build is defined in
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/Makefile
It calls gcc, which fails with the error "-pg and -fomit-frame-pointer are incompatible"

So the root cause is that I switched on FTRACE (Kernel hacking / Kernel Function Tracer) in the kernel configuration recently.

See also http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00499.html
Comment 5 Robert Schultz 2009-02-20 14:45:54 UTC
So this SAME EXACT problem happened to me.
I found a solution here: http://communities.vmware.com/thread/188410?tstart=0

So I created an overlay for vmware-modules.

Steps to fix:
1. mkdir /usr/local/portage/app-emulation
2. mkdir /usr/local/portage/app-emulation/vmware-modules
3. mkdir /usr/local/portage/app-emulation/vmware-modules/files
4. cp /usr/portage/app-emulation/vmware-modules/vmware-modules-1.0.0.23.ebuild /usr/local/portage/app-emulation/vmware-modules
5. Edit /usr/local/portage/app-emulation/vmware-modules/vmware-modules-1.0.0.23.ebuild 

When editing I added the following line after the makefile-kernel-dir.patch line:
epatch "${FILESDIR}/${PV}-smpcall-pollinitwait.patch"

5. Copy the attached file (see next comment) into your /usr/local/portage/app-emulation/vmware-modules/files directory
6. cd /usr/local/portage/app-emulation/vmware-modules
7. ebuild ./vmware-modules-1.0.0.23.ebuild manifest
8. emerge vmware-modules

Works perfectly for me. It compiled and installed :)
Comment 6 Robert Schultz 2009-02-20 14:47:28 UTC
Created attachment 182663 [details, diff]
1.0.0.23-smpcall-pollinitwait.patch Patch to fix the issues described here
Comment 7 Marcel Partap 2009-03-21 21:13:52 UTC
(In reply to comment #6)
> Created an attachment (id=182663) [edit]
> 1.0.0.23-smpcall-pollinitwait.patch Patch to fix the issues described here
> 
Very nice Robert the patch works fine even for the very latest kernel, imho this should be added to the official repo... i think the kernel API changes were applied to 2.6.28 so the patching should be made conditional:
kernel_is ge 2 6 28 && epatch ...
Comment 8 renato gallo 2009-04-07 08:23:34 UTC
Please add this to tree I pray you

(In reply to comment #6)
> Created an attachment (id=182663) [edit]
> 1.0.0.23-smpcall-pollinitwait.patch Patch to fix the issues described here
> 

Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-07 20:37:23 UTC
*** Bug 265261 has been marked as a duplicate of this bug. ***
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-07 20:37:55 UTC
Reopening... see duplicate bug for a patch.
Comment 11 Mike Auty (RETIRED) gentoo-dev 2009-04-07 21:49:34 UTC
Guys, can you please try the ebuild in the vmware overlay for vmware-modules-1.0.0.23-r1, and see if that solves your problems?  It has a new patch for kernel-2.6.29 which hopefully won't impact on the poll_init_wait function...
Comment 12 renato gallo 2009-04-09 10:00:05 UTC
ok here
(In reply to comment #11)
> Guys, can you please try the ebuild in the vmware overlay for
> vmware-modules-1.0.0.23-r1, and see if that solves your problems?  It has a new
> patch for kernel-2.6.29 which hopefully won't impact on the poll_init_wait
> function...
> 

Comment 13 Angelo Giuseppe De Michele 2009-04-28 14:51:25 UTC
Doesn't work here :(

Linux hellmouth 2.6.29-tuxonice #1 SMP Sat Apr 18 15:07:16 CEST 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ AuthenticAMD GNU/Linux

(In reply to comment #11)
> Guys, can you please try the ebuild in the vmware overlay for
> vmware-modules-1.0.0.23-r1, and see if that solves your problems?  It has a new
> patch for kernel-2.6.29 which hopefully won't impact on the poll_init_wait
> function...
> 

Comment 14 renato gallo 2009-04-28 16:23:30 UTC
which error do you have ?? here it works perfectly 
uname -a
Linux TOOLBOX 2.6.29.1 #1 SMP Sat Apr 18 11:33:02 CEST 2009 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux

(In reply to comment #13)
> Doesn't work here :(
> 
> Linux hellmouth 2.6.29-tuxonice #1 SMP Sat Apr 18 15:07:16 CEST 2009 x86_64 AMD
> Athlon(tm) 64 X2 Dual Core Processor 4000+ AuthenticAMD GNU/Linux
> 
> (In reply to comment #11)
> > Guys, can you please try the ebuild in the vmware overlay for
> > vmware-modules-1.0.0.23-r1, and see if that solves your problems?  It has a new
> > patch for kernel-2.6.29 which hopefully won't impact on the poll_init_wait
> > function...
> > 
> 

Comment 15 renato gallo 2009-04-28 16:24:46 UTC
uname -a
Linux Princess 2.6.29.1 #1 SMP PREEMPT Tue Apr 7 10:58:39 CEST 2009 x86_64 Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz GenuineIntel GNU/Linux

and here too
Comment 16 Angelo Giuseppe De Michele 2009-04-28 16:27:49 UTC
Same as always:

make[1]: Entering directory `/usr/src/linux-2.6.29-tuxonice'
  CC [M]  /var/tmp/paludis/app-emulation-vmware-modules-1.0.0.23-r1/work/vmmon-only/linux/driver.o
In file included from /var/tmp/paludis/app-emulation-vmware-modules-1.0.0.23-r1/work/vmmon-only/linux/driver.c:32:
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.23-r1/work/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'

Using vmware-modules in vmware overlay
(In reply to comment #14)
> which error do you have ?? here it works perfectly 
> uname -a
> Linux TOOLBOX 2.6.29.1 #1 SMP Sat Apr 18 11:33:02 CEST 2009 x86_64 Intel(R)
> Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux
> 
> (In reply to comment #13)
> > Doesn't work here :(
> > 
> > Linux hellmouth 2.6.29-tuxonice #1 SMP Sat Apr 18 15:07:16 CEST 2009 x86_64 AMD
> > Athlon(tm) 64 X2 Dual Core Processor 4000+ AuthenticAMD GNU/Linux
> > 
> > (In reply to comment #11)
> > > Guys, can you please try the ebuild in the vmware overlay for
> > > vmware-modules-1.0.0.23-r1, and see if that solves your problems?  It has a new
> > > patch for kernel-2.6.29 which hopefully won't impact on the poll_init_wait
> > > function...
> > > 
> > 
> 

Comment 17 renato gallo 2009-04-28 16:50:18 UTC
the overlay works

(In reply to comment #16)
> Same as always:
> 
> make[1]: Entering directory `/usr/src/linux-2.6.29-tuxonice'
>   CC [M] 
> /var/tmp/paludis/app-emulation-vmware-modules-1.0.0.23-r1/work/vmmon-only/linux/driver.o
> In file included from
> /var/tmp/paludis/app-emulation-vmware-modules-1.0.0.23-r1/work/vmmon-only/linux/driver.c:32:
> /var/tmp/paludis/app-emulation-vmware-modules-1.0.0.23-r1/work/vmmon-only/./include/compat_wait.h:78:
> error: conflicting types for 'poll_initwait'
> 
> Using vmware-modules in vmware overlay
> (In reply to comment #14)
> > which error do you have ?? here it works perfectly 
> > uname -a
> > Linux TOOLBOX 2.6.29.1 #1 SMP Sat Apr 18 11:33:02 CEST 2009 x86_64 Intel(R)
> > Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux
> > 
> > (In reply to comment #13)
> > > Doesn't work here :(
> > > 
> > > Linux hellmouth 2.6.29-tuxonice #1 SMP Sat Apr 18 15:07:16 CEST 2009 x86_64 AMD
> > > Athlon(tm) 64 X2 Dual Core Processor 4000+ AuthenticAMD GNU/Linux
> > > 
> > > (In reply to comment #11)
> > > > Guys, can you please try the ebuild in the vmware overlay for
> > > > vmware-modules-1.0.0.23-r1, and see if that solves your problems?  It has a new
> > > > patch for kernel-2.6.29 which hopefully won't impact on the poll_init_wait
> > > > function...
> > > > 
> > > 
> > 
> 

Comment 18 Angelo Giuseppe De Michele 2009-04-28 16:53:31 UTC
Works for most, doesn't work for me.

(In reply to comment #17)
> the overlay works
Comment 19 Mike Auty (RETIRED) gentoo-dev 2009-04-28 20:41:15 UTC
Angelo, can you please include the output of "emerge --info"?  You might have an unusual CFLAG that causes issues...
Comment 20 Angelo Giuseppe De Michele 2009-04-28 21:25:48 UTC
Wanna know something weird? I just tried to build it with emerge and it worked. (I use paludis). Something in the ebuild making patch not appying correctly/being overwritten/don't know?
Comment 21 Mike Auty (RETIRED) gentoo-dev 2009-04-28 21:29:02 UTC
Hmmm, well I'm glad it's building properly, but you'd best file a bug with paludis...
Comment 22 renato gallo 2009-04-30 12:11:49 UTC
uname -a
Linux TOOLBOX 2.6.29.2 #5 SMP Thu Apr 30 12:52:28 CEST 2009 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux 


* Preparing vmnet module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.29.2/build
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.29.2/build M=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.29.2'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmnet-only/driver.o
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmnet-only/driver.c:157: error: redefinition of ‘vmnet_proto’
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmnet-only/driver.c:135: error: previous definition of ‘vmnet_proto’ was here
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmnet-only/driver.o] Error 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/work/vmnet-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29.2'
make: *** [vmnet.ko] Error 2
 *
 * ERROR: app-emulation/vmware-modules-1.0.0.23 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 3737:  Called linux-mod_src_compile
 *             environment, line 2851:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC="$(tc-getBUILD_CC)"                                                 CROSS_COMPILE=${CHOST}-                LDFLAGS="$(get_abi_LDFLAGS)"                                             ${BUILD_FIXES}                                          ${BUILD_PARAMS}${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=   auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.29.2/build
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'
Comment 23 renato gallo 2009-04-30 12:13:10 UTC
Created attachment 189961 [details]
applied patch for the too many arguments error
Comment 24 Monte Freeman 2009-05-06 01:17:02 UTC
(In reply to comment #5)
> So this SAME EXACT problem happened to me.
> I found a solution here: http://communities.vmware.com/thread/188410?tstart=0
> 
> So I created an overlay for vmware-modules.
> 
> Steps to fix:
> 1. mkdir /usr/local/portage/app-emulation
> 2. mkdir /usr/local/portage/app-emulation/vmware-modules
> 3. mkdir /usr/local/portage/app-emulation/vmware-modules/files
> 4. cp /usr/portage/app-emulation/vmware-modules/vmware-modules-1.0.0.23.ebuild
> /usr/local/portage/app-emulation/vmware-modules
> 5. Edit
> /usr/local/portage/app-emulation/vmware-modules/vmware-modules-1.0.0.23.ebuild 
> 
> When editing I added the following line after the makefile-kernel-dir.patch
> line:
> epatch "${FILESDIR}/${PV}-smpcall-pollinitwait.patch"
> 
> 5. Copy the attached file (see next comment) into your
> /usr/local/portage/app-emulation/vmware-modules/files directory
> 6. cd /usr/local/portage/app-emulation/vmware-modules
> 7. ebuild ./vmware-modules-1.0.0.23.ebuild manifest
> 8. emerge vmware-modules
> 
> Works perfectly for me. It compiled and installed :)
> 

I'm trying to follow Robert's directions and patch my system. Looking at the output from 'emerge vmware-modules', it doesn't appear that the 'smpcall-pollinitwait' patch was applied.

Probably something I did wrong.

Can anyone suggest anything?

------
ebuild ./vmware-modules-1.0.0.23.ebuild manifest
Appending /usr/local/portage to PORTDIR_OVERLAY...
>>> Downloading 'http://distfiles.gentoo.org/distfiles/vmware-modules-1.0.0.23.x86.tar.bz2'
--2009-05-05 20:46:56--  http://distfiles.gentoo.org/distfiles/vmware-modules-1.0.0.23.x86.tar.bz2
Resolving distfiles.gentoo.org... 156.56.247.195, 149.20.20.135, 140.211.166.134, ...
Connecting to distfiles.gentoo.org|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 486085 (475K) [application/x-tar]
Saving to: `/usr/portage/distfiles/vmware-modules-1.0.0.23.x86.tar.bz2'

100%[======================================>] 486,085      202K/s   in 2.3s    

2009-05-05 20:46:59 (202 KB/s) - `/usr/portage/distfiles/vmware-modules-1.0.0.23.x86.tar.bz2' saved [486085/486085]

>>> Creating Manifest for /usr/local/portage/app-emulation/vmware-modules
-----

emerge vmware-modules
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/vmware-modules-1.0.0.23
 * vmware-modules-1.0.0.23.amd64.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.29-gentoo-r2/build
 * Found sources for kernel version:
 *     2.6.29-gentoo-r2
>>> Unpacking source...
>>> Unpacking vmware-modules-1.0.0.23.amd64.tar.bz2 to /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work
>>> Unpacking ./vmware-modules-1.0.0.23/vmmon.tar to /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work
 * Converting vmmon-only/Makefile to use M= instead of SUBDIRS= ...       [ ok ]
>>> Unpacking ./vmware-modules-1.0.0.23/vmnet.tar to /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work
 * Converting vmnet-only/Makefile to use M= instead of SUBDIRS= ...       [ ok ]
>>> Unpacking ./vmware-modules-1.0.0.23/vmblock.tar to /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work
 * Converting vmblock-only/Makefile to use M= instead of SUBDIRS= ...     [ ok ]
>>> Unpacking ./vmware-modules-1.0.0.23/vmci.tar to /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work
 * Converting vmci-only/Makefile to use M= instead of SUBDIRS= ...        [ ok ]
>>> Unpacking ./vmware-modules-1.0.0.23/vsock.tar to /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work
 * Converting vsock-only/Makefile to use M= instead of SUBDIRS= ...       [ ok ]
 * Applying 1.0.0.23-makefile-kernel-dir.patch ...                        [ ok ]
>>> Source unpacked in /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work
>>> Compiling source in /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work ...
 * Preparing vmmon module
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.29-gentoo-r2/build 
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.29-gentoo-r2/build M=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.29-gentoo-r2'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.o
In file included from /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:31:
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'
include/linux/poll.h:67: error: previous declaration of 'poll_initwait' was here
In file included from /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/./common/vmx86.h:31,
                 from /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.h:29,
                 from /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:101:
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/./include/x86apic.h:97:1: warning: "APIC_BASE_MSR" redefined
In file included from /usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/numa_64.h:5,
                 from /usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/numa.h:4,
                 from /usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/acpi.h:28,
                 from /usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/fixmap_64.h:15,
                 from /usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/fixmap.h:7,
                 from /usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/apic.h:8,
                 from /usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/smp.h:13,
                 from include/linux/smp.h:36,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:767,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/./include/compat_module.h:27,
                 from /scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:26:
/usr/src/linux-2.6.29-gentoo-r2/arch/x86/include/asm/apicdef.h:132:1: warning: this is the location of the previous definition
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c: In function 'LinuxDriverSyncCallOnEachCPU':
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1423: error: too many arguments to function 'smp_call_function'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'euid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'uid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'fsuid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'uid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'egid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'gid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'fsgid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'gid'
/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.c:2007: error: too many arguments to function 'smp_call_function'
make[3]: *** [/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only/linux/driver.o] Error 1
make[2]: *** [_module_/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/work/vmmon-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29-gentoo-r2'
make: *** [vmmon.ko] Error 2
 * 
 * ERROR: app-emulation/vmware-modules-1.0.0.23 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3675:  Called linux-mod_src_compile
 *             environment, line 2789:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 			CROSS_COMPILE=${CHOST}- 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 		${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=   auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.29-gentoo-r2/build
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/temp/build.log'.
 * The ebuild environment file is located at '/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/temp/environment'.
 * 

>>> Failed to emerge app-emulation/vmware-modules-1.0.0.23, Log file:

>>>  '/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/temp/build.log'

 * Messages for package app-emulation/vmware-modules-1.0.0.23:

 * 
 * ERROR: app-emulation/vmware-modules-1.0.0.23 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3675:  Called linux-mod_src_compile
 *             environment, line 2789:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 			CROSS_COMPILE=${CHOST}- 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 		${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=   auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.29-gentoo-r2/build
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/temp/build.log'.
 * The ebuild environment file is located at '/scratch/portage/portage/app-emulation/vmware-modules-1.0.0.23/temp/environment'.
 * 
-----

emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r2-x86_64-AMD_Phenom-tm-_II_X3_710_Processor-with-gentoo-2.0.0
Timestamp of tree: Mon, 04 May 2009 16:00:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/scratch/portage"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apache2 apm asym audiofile avi berkdb bitmap-fonts bzip2 cdr cleartype cli cracklib crypt ctype cups dba dmix dri dvd eds emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 isdnlog jpeg kde lcms libg++ libwww mad mbox memlimit midi mikmod mmx mng motif mozilla mp3 mpeg mudflap multilib ncurses networking nls nptl nptlonly ogg opengl openmp oss pam pcre pdflib perl plug png posix pppd python qt quicktime readline reflection samba sdl session simplexml slang soap sockets spl sse sse2 ssl sysfs tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xcb xml xml2 xorg xsl xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null plug rate route share shm" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

-----

Not sure what else in the way of information needs to be provided.
Helpful suggestions appreciated.
Comment 25 Péter Werner 2009-05-06 07:01:34 UTC
Add PORTDIR_OVERLAY="/usr/local/portage" to /etc/make.conf

BTW, the topic has been changed.  Maybe the discussion about problems with kernel 2.6.29 should be in a new bug or the subject should be fixed.

I forked the issue I had (see comment #4) to bug 268741.
Comment 26 Monte Freeman 2009-05-07 15:13:29 UTC
(In reply to comment #25)
> Add PORTDIR_OVERLAY="/usr/local/portage" to /etc/make.conf
> 
> BTW, the topic has been changed.  Maybe the discussion about problems with
> kernel 2.6.29 should be in a new bug or the subject should be fixed.
> 
> I forked the issue I had (see comment #4) to bug 268741.
> 
 Yep. Adding the PORTDIR_OVERLAY fixed it. Patch as posted in comment #5 above applied, and both vmware-modules-1.0.0.23 and vmware-workstation both emerged just fine on my AMD64 2.6.29-r2 system.

 Thanks!

Comment 27 renato gallo 2009-05-07 15:14:52 UTC
since it works ...
why can't it be added to official tree ?

(In reply to comment #25)
> Add PORTDIR_OVERLAY="/usr/local/portage" to /etc/make.conf
> 
> BTW, the topic has been changed.  Maybe the discussion about problems with
> kernel 2.6.29 should be in a new bug or the subject should be fixed.
> 
> I forked the issue I had (see comment #4) to bug 268741.
> 

Comment 28 Alessandro Degano 2009-05-10 21:09:21 UTC
here:
 uname -a
Linux virtuHal 2.6.29.1 #6 SMP PREEMPT Fri May 8 10:48:31 CEST 2009 x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux

works as well, thx.
Comment 29 coolone 2009-05-14 21:47:53 UTC
works perfect!
thanks a lot... 
hopefully this patch could be added into official tree.
Comment 30 Derk Muenchhuasen 2009-05-19 06:31:14 UTC
The solution worked very well, but I had to use the patch described in
 http://communities.vmware.com/thread/188410?tstart=0.

Thanks!
Comment 31 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-06-14 15:58:28 UTC
I've commited new vmware-modules ebuild to portage tree. It has patches for 2.6.29 and 2.6.30.
Comment 32 Steven Elling 2009-10-18 06:20:26 UTC
Same error here with vmware-modules-1.0.0.15-r2 and 2.6.29-gentoo-r5 kernel
Comment 33 pgb205 2009-11-19 01:27:23 UTC
(In reply to comment #32)
> Same error here with vmware-modules-1.0.0.15-r2 and 2.6.29-gentoo-r5 kernel
> 

same thing here. I have fully uptodate gentoo system. Trying to install VMWorkstation 6.5.  Get the following error when trying to run /usr/bin/vmware


using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/2.6.30-gentoo-r5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30-gentoo-r5'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
In file included from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:31:
/tmp/vmware-root/modules/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'
include/linux/poll.h:67: error: previous declaration of 'poll_initwait' was here
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function 'LinuxDriverSyncCallOnEachCPU':
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1423: error: too many arguments to function 'smp_call_function'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'euid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'fsuid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'egid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'gid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'fsgid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'gid'
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r5'
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:2007: error: too many arguments to function 'smp_call_function'
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make: *** [vmmon.ko] Error 2
modinfo: could not open /lib/modules/2.6.30-gentoo-r5/misc/vmmon.ko: No such file or directory
Comment 34 pgb205 2009-11-19 01:29:48 UTC
(In reply to comment #32)
> Same error here with vmware-modules-1.0.0.15-r2 and 2.6.29-gentoo-r5 kernel
> 

same thing here. I have fully uptodate gentoo system. Trying to install VMWorkstation 6.5.  Get the following error when trying to run /usr/bin/vmware


using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/2.6.30-gentoo-r5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30-gentoo-r5'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
In file included from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:31:
/tmp/vmware-root/modules/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'
include/linux/poll.h:67: error: previous declaration of 'poll_initwait' was here
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function 'LinuxDriverSyncCallOnEachCPU':
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1423: error: too many arguments to function 'smp_call_function'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'euid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'fsuid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'egid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'gid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'fsgid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'gid'
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r5'
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:2007: error: too many arguments to function 'smp_call_function'
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make: *** [vmmon.ko] Error 2
modinfo: could not open /lib/modules/2.6.30-gentoo-r5/misc/vmmon.ko: No such file or directory

Here is output /tmp/vmware-root/setup.log has the following
Nov 18 20:19:44.425: app| Log for VMware Workstation pid=14789 version=6.5.2 build=build-156735 option=Release
Nov 18 20:19:44.426: app| Host codepage=UTF-8 encoding=UTF-8
Nov 18 20:19:44.426: app| Logging to /tmp/vmware-root/setup-14789.log
Nov 18 20:19:45.142: app| Extracting the sources of the vmmon module.
Nov 18 20:19:45.161: app| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.30-gentoo-r5/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.1.2

Comment 35 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-11-19 13:58:38 UTC
(In reply to comment #33)
> (In reply to comment #32)
> > Same error here with vmware-modules-1.0.0.15-r2 and 2.6.29-gentoo-r5 kernel
> > 
> 
> same thing here. I have fully uptodate gentoo system. Trying to install
> VMWorkstation 6.5.  

To install vmware-workstation 6.5.3 you will need vmware-modules-1.0.0.25
 
>Get the following error when trying to run /usr/bin/vmware

It's not clear what do you run.

Comment 36 pgb205 2009-11-19 20:10:53 UTC
I do have vmware-modules-1.0.0.25 installed.
I run vmware<ENTER> from command line
I get a popup window "VMWare Kernel Module Update"saying
Before you can run VMWAre Workstation several modules just be compiled and loaded into the running kernel. I click install and get the error "Unable
to build kernel module. see log file /tmp/vmware-root/setup.log for details.
In the konsole window I see
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/2.6.30-gentoo-r5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30-gentoo-r5'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
In file included from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:31:
/tmp/vmware-root/modules/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'
include/linux/poll.h:67: error: previous declaration of 'poll_initwait' was here
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function 'LinuxDriverSyncCallOnEachCPU':
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1423: error: too many arguments to function 'smp_call_function'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'euid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'fsuid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'egid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'gid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'fsgid'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'gid'
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r5'
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:2007: error: too many arguments to function 'smp_call_function'
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make: *** [vmmon.ko] Error 2
modinfo: could not open /lib/modules/2.6.30-gentoo-r5/misc/vmmon.ko: No such file or directory


(In reply to comment #35)
> (In reply to comment #33)
> > (In reply to comment #32)
> > > Same error here with vmware-modules-1.0.0.15-r2 and 2.6.29-gentoo-r5 kernel
> > > 
> > 
> > same thing here. I have fully uptodate gentoo system. Trying to install
> > VMWorkstation 6.5.  
> 
> To install vmware-workstation 6.5.3 you will need vmware-modules-1.0.0.25
> 
> >Get the following error when trying to run /usr/bin/vmware
> 
> It's not clear what do you run.
> 

Comment 37 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-11-19 20:35:29 UTC
(In reply to comment #36)
> I do have vmware-modules-1.0.0.25 installed.
> modinfo: could not open /lib/modules/2.6.30-gentoo-r5/misc/vmmon.ko: No such
> file or directory
modinfo here says that you do not have it.

Please check that you booted the same kernel as you build vmware-modules for.

you can reinstall it with
emerge -1v vmware-modules
or
modules-rebuild rebuild

Also don't forget to configure networks
emerge --config vmware-workstation
and start vmware services
/etc/init.d/vmware start
By the way the last one will load modules, if you have it.
Comment 38 pgb205 2009-11-19 20:57:54 UTC
some progress...
I've recompiled vmware-modules as you've suggested. I don't see vmware script in
/etc/init.d/ so I've loaded vmnet vmmon and vmblock by hand. I start vmware<ENTER> and try to start my winxp VM. I get the following message
Version mismath with vmmon module expecting 208.0 got 209.0 You have an incorrect version of vmmon kernel module. Try reinstalling VMware Workstation.
I've tried reinstalling several time but the message persists.

thanks

(In reply to comment #37)
> (In reply to comment #36)
> > I do have vmware-modules-1.0.0.25 installed.
> > modinfo: could not open /lib/modules/2.6.30-gentoo-r5/misc/vmmon.ko: No such
> > file or directory
> modinfo here says that you do not have it.
> 
> Please check that you booted the same kernel as you build vmware-modules for.
> 
> you can reinstall it with
> emerge -1v vmware-modules
> or
> modules-rebuild rebuild
> 
> Also don't forget to configure networks
> emerge --config vmware-workstation
> and start vmware services
> /etc/init.d/vmware start
> By the way the last one will load modules, if you have it.
> 

Comment 39 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-11-19 21:20:36 UTC
(In reply to comment #38)
> some progress...
> I've recompiled vmware-modules as you've suggested. I don't see vmware script
> in
> /etc/init.d/

vmware-workstation ebuild installs /etc/init.d/vmware

> so I've loaded vmnet vmmon and vmblock by hand. I start
> vmware<ENTER> and try to start my winxp VM. I get the following message
> Version mismath with vmmon module expecting 208.0 got 209.0 You have an
> incorrect version of vmmon kernel module. Try reinstalling VMware Workstation.
> I've tried reinstalling several time but the message persists.

vmware-workstation 6.5.3 wants vmmon 209, which is vmware-modules-10.0.0.25
vmware-workstation 6.5.2 wants vmmon 208, which is vmware-modules- 10.0.0.24-r1 

So, what version of vmware-workstation and vmware-modules you have installed?
And how?


Comment 40 pgb205 2009-11-19 22:46:20 UTC
that explains it. I was installing 6.5.2 not .3 Once I've upgraded everything is fine.

thanks

(In reply to comment #39)
> (In reply to comment #38)
> > some progress...
> > I've recompiled vmware-modules as you've suggested. I don't see vmware script
> > in
> > /etc/init.d/
> 
> vmware-workstation ebuild installs /etc/init.d/vmware
> 
> > so I've loaded vmnet vmmon and vmblock by hand. I start
> > vmware<ENTER> and try to start my winxp VM. I get the following message
> > Version mismath with vmmon module expecting 208.0 got 209.0 You have an
> > incorrect version of vmmon kernel module. Try reinstalling VMware Workstation.
> > I've tried reinstalling several time but the message persists.
> 
> vmware-workstation 6.5.3 wants vmmon 209, which is vmware-modules-10.0.0.25
> vmware-workstation 6.5.2 wants vmmon 208, which is vmware-modules- 10.0.0.24-r1 
> 
> So, what version of vmware-workstation and vmware-modules you have installed?
> And how?
> 

Comment 41 renato gallo 2009-11-19 23:12:53 UTC
vmware workstation 7 is out with new tools new functions and better grafik support
Comment 42 Steven Elling 2009-12-13 18:35:33 UTC
(In reply to comment #32)
> Same error here with vmware-modules-1.0.0.15-r2 and 2.6.29-gentoo-r5 kernel
> 

I'm trying to use vmware-server-1.0.9.156507 and still getting the same error.