Building of vmmon modules fail when running vmware-config.pl. The problem appears both with vmware-workstation-3.2.1.2242-r1.ebuild, and vmware-workstation-4.5.1.7568.ebuild, and also with vmware-any-any-update68. The output of the command is: root@aborym vmware-workstation # /opt/vmware/bin/vmware-config.pl Making sure VMware Workstation's services are stopped. Stopping VMware services: Virtual machine monitor done Trying to find a suitable vmmon module for your running kernel. None of VMware Workstation's pre-built vmmon modules 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.6/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-config8/vmmon-only' Makefile:84: *** Inappropriate build environment: you wanted to use gcc version while kernel attempts to use gcc version 3.3.2. Makefile:86: *** For proper build you'll have to replace /usr/bin/gcc with symbolic link to . Stop. make: Leaving directory `/tmp/vmware-config8/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. root@aborym vmware-workstation # Reproducible: Always Steps to Reproduce: run vmware-config.pl and build the vmmon-only modules. root@aborym vmmon-only # gcc --version gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. root@aborym vmmon-only # make --version GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. root@aborym vmmon-only # bash --version GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc. root@aborym vmmon-only # Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6) ================================================================= System uname: 2.6.6 i686 AMD Athlon(TM) XP 1700+ Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ http://www.ibiblio.org/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts avi berkdb bonobo cdr crypt cups dga emacs encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib ipv6 jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml xml2 xmms xv zlib"
what is `cat /proc/version`
mbalazs@aborym mbalazs $ cat /proc/version Linux version 2.6.6 (root@aborym.mad.hu) (gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)) #1 Fri Jun 4 03:52:35 EEST 2004
i have been told that the problem may be that the variables set while the invocation of /usr/src/linux/Makefile somehow get stripped. I tried introducing a VMCCVER = $(VM_CCVER) line in the vmmon makefile just before the error check, the makefile runs with no errors, but the only command executed is "rm -f". It seems that all variables set by the kernel makefile get stripped. I tryed to build the modules with a kernel installed with emerge development-sources, and also with a stock kernel, both 2.6.6.
try: # echo $VERSION # unset VERSION
OK, it works now! Thanks!
Great job, Lang...