Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93975 - Vmware module build fails 5.0.0.13124
Summary: Vmware module build fails 5.0.0.13124
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 10:48 UTC by Nick Palmer
Modified: 2005-05-26 14:12 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Palmer 2005-05-25 10:48:00 UTC
I am unable to build a module that will load in the stock gentoo-2.6.11-r6
kernel. When I try to build it compiles okay, but I can't insert it into the
running kernel.

This page at redhat:
https://www.redhat.com/archives/fedora-test-list/2004-April/msg01807.html
Seems to be describing a problem like mine, but their fix doesn't work for me.

# gcc --version
gcc (GCC) 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1,
pie-8.7.7.1)
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.


Reproducible: Always
Steps to Reproduce:
ACCEPT_KEYWORDS="~x86" emerge vmware-workstation
/opt/vmware/bin/vmware-config.pl
Actual Results:  
/opt/vmware/bin/vmware-config.pl
Making sure services for VMware Workstation are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   Virtual ethernet                                                    done

Configuring fallback GTK+ 2.4 libraries.

***
* Updating MIME database in /usr/share/mime...
***
In which directory do you want to install the mime type icons?
[/usr/share/icons]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation 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? [/usr/src/linux-2.6.11-gentoo-r6/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

VMware 2 or VMware Express detected, building for VMware 2, VMware Express and
VMware Workstation 4.0.x.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config7/vmmon-only'
make -C /usr/src/linux-2.6.11-gentoo-r6/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
modules
make[1]: Entering directory `/usr/src/linux-2.6.11-gentoo-r6'
  CC [M]  /tmp/vmware-config7/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config7/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-config7/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-config7/vmmon-only/common/hash.o
  CC [M]  /tmp/vmware-config7/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-config7/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-config7/vmmon-only/common/task.o
cc1plus: warning: "-ffreestanding" is valid for C/ObjC but not for C++
  CC [M]  /tmp/vmware-config7/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-config7/vmmon-only/vmcore/compat.o
  CC [M]  /tmp/vmware-config7/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-config7/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST
  CC      /tmp/vmware-config7/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-config7/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.11-gentoo-r6'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config7/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config7/vmmon.o': -1 Unknown symbol in module
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel.  You may want to
rebuild a kernel based on that directory, or specify another directory.

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.



Expected Results:  
Loaded a working module into the running kernel.

 # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3 [2.3.3 (#1, Mar  6 2004, 11:36:51)]
dev-lang/python:     2.3.3
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.58-r1, 2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.4.3-r4, 1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks keeptemp keepwork sandbox
sfperms strict userpriv"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/di"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib afs alsa apache2 apm avi berkdb bitmap-fonts bonobo caps cdr
crypt cups curl divix emacs emboss encode esd ezmlm fam flac font-server
foomaticdb fortran gcj gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2
gtkhtml guile imagemagick imap imlib ipv6 jack java jikes jpeg kde krb4 ldap
leim libg++ libwww mad mikmod mit-krb5 motif mozilla mozspellcheck mp3 mpeg nas
ncurses nls nptl odbc ofx ogg oggvorbis opengl oss pam pda pdflib perl pic png
portaudio postgres ppds python qmail qt quicktime quotes readline sdl slang
speex spell sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts usb vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Nick Palmer 2005-05-25 10:56:30 UTC
Note that I have the exact same problem with the latest stable version:
vmware-workstation-4.5.2.8848-r6 

Thanks,
-Nick
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-26 06:59:44 UTC
Are you positive that the config in /usr/src/linux matches your running kernel?

If both versions are telling you that it doesn't, perhaps it doesn't...
Comment 3 Stian Skjelstad 2005-05-26 09:06:42 UTC
Please upload your .config from the kernel source directory aswell, and could
you manage to get the output from insmod that vmware tries to do.
Comment 4 Nick Palmer 2005-05-26 11:39:52 UTC
Okay, I figured out the problem. I _was_ using the right kernel source version,
however neither VMWare version supports an SMP kernel. 

It slipped my mind that I had turned on SMP support for my Hyper Threading P4
awhile ago. Perhaps we could add a check to the vmware build to test for SMP
turned on in the kernel config and issue a warning in such a case.

Thanks,
-Nick

Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-26 12:13:05 UTC
Umm... all my machines are SMP and it works fine.  In fact, this machine in
front of me is SMP and it has a working config.  It sounds more likely that your
kernel config in the directory didn't match the actual kernel you had booted.
Comment 6 Nick Palmer 2005-05-26 14:12:27 UTC
You are in fact correct. I recompiled an SMP version of the kernel and rebooted
and was able to build and compile the vmware module.

Thanks for the help resolving this.

-Nick