Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236739 - app-emulation/vmware-modules-1.0.0.16-r1 not compiling after re-emerge to new kernel
Summary: app-emulation/vmware-modules-1.0.0.16-r1 not compiling after re-emerge to new...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 19:34 UTC by Jon
Modified: 2011-10-30 23:15 UTC (History)
0 users

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


Attachments
my config file for the kernel in question 2.6.22-r10 (config,35.76 KB, text/plain)
2008-09-08 21:04 UTC, Jon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon 2008-09-04 19:34:05 UTC
In a 2.6.22 kernel, I can't seem to load the modules necessary to run vmware server.Pasted below is a link to the forum that lead me to report what might be a bug.


http://forums.gentoo.org/viewtopic.php?p=5204113#5204113

Reproducible: Always

Steps to Reproduce:
1.On a 2.6.22 kernel, emerge vmware server and then run the config script.

Actual Results:  
* Starting VMware services:                                                                                                                          [ ok ]
 *   Virtual machine monitor                                                                                                                          [ !! ]
 *   Virtual ethernet                                                                                                                                 [ !! ]
 *   Module vmnet is not loaded. Please verify that it is loaded before                                                                               [ !! ]
 *   running this script.                                                                                                                             [ !! ]



Expected Results:  
The modules should have loaded and I should be able to use vmware.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-09-05 00:32:50 UTC
Please post your emerge --info. Thanks.
Comment 2 Jon 2008-09-05 19:25:30 UTC
(In reply to comment #1)
> Please post your emerge --info. Thanks.
> 

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r10 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.22-gentoo-r10 i686 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
Timestamp of tree: Thu, 04 Sep 2008 19:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i486-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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl aiglx apache2 bash-completion berkdb bzip2 cli cracklib crypt cups doc dri dv examples ffmpeg flac fortran gdbm gpm hal iconv imagemagick imlib ipv6 ipw3945 isdnlog java jpeg2k kde lame ldap libcaca lzo midi mjpeg mmx mozcalendar mozdevelop mp3 mplayer mudflap mysql ncurses network nfs nls nojoystick nptl nptlonly nsplugin odbc opengl openmp pam pcmcia pcre pds perl pppd python qt-static qt3 qt3support qt4 rdesktop readline reflection ruby samba session snmp snmptraps source spl sse sse2 ssl svg svga symlink tcpd theora transcode unicode usb vcd vhosts visualization vorbis wifi x264 x86 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810 i915 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 Wormo (RETIRED) gentoo-dev 2008-09-08 07:14:01 UTC
Attaching kernel .config is also good in cases where modules are involved. 

By the way, what version of vmware-modules got installed? And do missing symbol errors show up in 'dmesg' after trying to load vmmon or vmnet modules manually?
Comment 4 Mike Auty (RETIRED) gentoo-dev 2008-09-08 19:17:06 UTC
Hiya Jon,

Wormo's right, could you please paste which version of the vmware-modules you're using, and ensure that they've been recompiled recently.  It's this package that contains the kernel modules, and it's this that needs rebuilding.  The error you reported on the forum page was of the modules not being found.  We need to figure out if that's because they haven't been rebuilt for this kernel, or if it's because they're being put in the wrong place.  If vmware-modules has been recompiled, please attach the output of the emerge.  Thanks...  5:)
Comment 5 Jon 2008-09-08 21:01:31 UTC
So I'm getting this message when I try to recompile the modules, which I think is the problem here. I'm a little hesitant to run those make commands because I don't want to break my new kernel which took me ages to finally get (mostly) right. What does this mean and what should I do? 



* These sources have not yet been prepared.
 * We cannot build against an unprepared tree.
 * To resolve this, please type the following:
 *
 * # cd /usr/src/linux
 * # make oldconfig
 * # make modules_prepare
 *
 * Then please try merging this module again.
 *
 * ERROR: app-emulation/vmware-modules-1.0.0.15-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called vmware-mod_pkg_setup
 *       vmware-mod.eclass, line   36:  Called linux-mod_pkg_setup
 *        linux-mod.eclass, line  471:  Called check_kernel_built
 *       linux-info.eclass, line  385:  Called die
 * The specific snippet of code:
 *              die "Kernel sources need compiling first"
 *  The die message:
 *   Kernel sources need compiling first
 *
 * 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.15-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.15-r1/temp/die.env'.
 *

Comment 6 Jon 2008-09-08 21:04:10 UTC
Created attachment 164958 [details]
my config file for the kernel in question 2.6.22-r10
Comment 7 Mike Auty (RETIRED) gentoo-dev 2008-09-08 21:08:49 UTC
Well, it suggests the kernel in /usr/src/linux hasn't been compiled yet.  If you think the new kernel has been compiled, then it suggests that the modules are being built against a different kernel.  It would be useful if you could please attach the full output of the vmware-modules failed compilation.

Please check that your new kernel has been symlinked to /usr/src/linux and that it's been compiled at least once (the instructions the ebuild gives you carry out the bare minimum compilation needed to be able to build against the kernel).  A full recompile should then remove that error...
Comment 8 Jon 2008-09-08 21:29:53 UTC
Oh man. I just figured out why at least I was getting the error about the modules. I had the symlink flag set in my make.conf and it updated my symlink to a non-existant kernel at some point without me realizing it.


After compiling the modules and reconfiguring vmware, it appears the modules loaded properly. Sorry to waste your time.
Comment 9 Mike Auty (RETIRED) gentoo-dev 2008-09-08 21:32:08 UTC
No problem, glad you got it all fixed.  5:)