Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282743 - app-emulation/vmware-server-1.0.9.156507 with app-emulation/vmware-modules-1.0.0.15-r2 won't build with kernel 2.6.30-gentoo-r4
Summary: app-emulation/vmware-server-1.0.9.156507 with app-emulation/vmware-modules-1....
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 20:21 UTC by Ricardo Saffi Marques
Modified: 2011-03-17 13:13 UTC (History)
1 user (show)

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


Attachments
build log for app-emulation/vmware-modules-1.0.0.15-r2 (app-emulation:vmware-modules-1.0.0.15-r2:20090825-201353.log,1.90 KB, text/plain)
2009-08-25 20:29 UTC, Ricardo Saffi Marques
Details
New attempt to compile vmware-server, new error (app-emulation-vmware-modules-1.0.0.15-r2-20090826-165128.log,10.11 KB, text/plain)
2009-08-26 16:55 UTC, Ricardo Saffi Marques
Details
vmware-server is now installed with 2.6.30-gentoo-r4, but module vmnet causes kernel panic. (vmnet_kernel_panic.txt,8.33 KB, text/plain)
2009-09-03 13:29 UTC, Ricardo Saffi Marques
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Saffi Marques 2009-08-25 20:21:56 UTC
We have a development environment and for many reasons vmware-server-2 doesn't fit our purposes, so I'm now downgrading (trying at least) the vmware-server to version 1.

I'm using 2.6.30-gentoo-r4 and I *AM* aware vmware-server-1.0.9 is not supported on this kernel. I do know there were some patches around the web to deal with this, but everything I've found was designed for 2.6.27 to 2.6.29.

Reproducible: Always

Steps to Reproduce:
1.emerge =sys-kernel/gentoo-sources-2.6.30-r4
2.Set the kernel as default (with eselect), build the kernel and modules (make && make modules_install).
3.emerge =app-emulation/vmware-server-1.0.9.156507
Actual Results:  
app-emulation/vmware-modules-1.0.0.15-r2 fails to build because of incorrect kernel configuration

Expected Results:  
Both app-emulation/vmware-modules-1.0.0.15-r2 and app-emulation/vmware-server-1.0.9.156507 correctly (and smoothly :-) compiled and installed.

[17:10:04] chameleon ~ # emerge --info
Portage 2.2_rc40 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 25 Aug 2009 08:45:02 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3, 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo ftp://ftp.las.ic.unicamp.br/pub/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.las.ic.unicamp.br/gentoo-portage"
USE="3dnow 3dnowext X acl acpi admin agent alsa amd64 apache2 avahi bash-completion bcmath berkdb bzip2 caps cddb cgi clearpasswd cli cracklib crypt cups curl dbus device-mapper disk-partition diskio dri emacs extensions extras fat fbcon fontconfig fortran frontend ftp fuse gd gdbm gif gpm gtk hal hvm iconv icu ipv6 isdnlog javascript latex lcms ldap lm_sensors logrotate loop-aes math mbox mdnsresponder-compat mmx mmxext modperl mpi multilib mysql ncurses nls nptl nptlonly nss ntfs numarray numeric openmp oss overlays pam pcre perl php posix postfix pppd pygrub python qt3 qt3support qt4 readline reflection screen sdl sensord server session simplexml slp snmp sockets socks5 spell spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 subversion swat sysfs syslog tcpd threads tools truetype unicode urandom usb userlocales vim-syntax webdav xattr xml xorg zeroconf 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 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

---

[17:12:42] chameleon ~ # emerge -C vmware-vix vmware-server vmware-modules

 app-emulation/vmware-vix
    selected: 1.6.2.156745-r1 
   protected: none 
     omitted: none 

 app-emulation/vmware-server
    selected: 2.0.1.156745-r2 
   protected: none 
     omitted: none 

 app-emulation/vmware-modules
    selected: 1.0.0.24 
   protected: none 
     omitted: none 

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1 
>>> Unmerging app-emulation/vmware-vix-1.6.2.156745-r1...
>>> Unmerging app-emulation/vmware-server-2.0.1.156745-r2...
 * Stopping VMware Server 2 for safe unmerge
 * Caching service dependencies ...                                                                                                                                                                                                   [ ok ]
 * WARNING:  vmware has not yet been started.
>>> Unmerging app-emulation/vmware-modules-1.0.0.24...
 * Removing app-emulation/vmware-modules-1.0.0.24 from moduledb.

 * GNU info directory index is up-to-date.
[17:13:00] chameleon ~ # \rm -fr /etc/vmware/
[17:13:10] chameleon ~ # \rm -fr /var/lib/vmware/
[17:13:23] chameleon ~ # eix vmware-server$
* app-emulation/vmware-server
     Available versions:  1.0.8.126538!s 1.0.9.156507!s ~2.0.1.156745!s ~2.0.1.156745-r1!s ~2.0.1.156745-r2!s
     Homepage:            http://www.vmware.com/
     Description:         VMware Server for Linux

[17:13:34] chameleon ~ # eix vmware-modules
* app-emulation/vmware-modules
     Available versions:  1.0.0.15-r1 1.0.0.15-r2 1.0.0.23 ~1.0.0.23-r1 ~1.0.0.24 ~1.0.0.25 {kernel_linux}
     Homepage:            http://www.vmware.com/
     Description:         Modules for Vmware Programs

[17:13:38] chameleon ~ # emerge -va vmware-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-emulation/vmware-modules-1.0.0.15-r2  0 kB
[ebuild  N    ] app-emulation/vmware-server-1.0.9.156507  3,267 kB

Total: 2 packages (2 new), Size of downloads: 3,267 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) app-emulation/vmware-modules-1.0.0.15-r2
 * vmware-any-any-update115.tar.gz 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.30-gentoo-r4/build
 * Found sources for kernel version:
 *     2.6.30-gentoo-r4
 * Checking for suitable kernel configuration options...
 *   CONFIG_UNUSED_SYMBOLS:	 is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Once you have satisfied these options, please try merging
 * this package again.
 * 
 * ERROR: app-emulation/vmware-modules-1.0.0.15-r2 failed.
 * Call stack:
 *                           ebuild.sh, line   49:  Called pkg_setup
 *   vmware-modules-1.0.0.15-r2.ebuild, line   17:  Called vmware-mod_pkg_setup
 *                   vmware-mod.eclass, line   36:  Called linux-mod_pkg_setup
 *                    linux-mod.eclass, line  578:  Called linux-info_pkg_setup
 *                   linux-info.eclass, line  720:  Called check_extra_config
 *                   linux-info.eclass, line  615:  Called die
 * The specific snippet of code:
 *   		die "Incorrect kernel configuration options"
 *  The die message:
 *   Incorrect kernel configuration options
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-emulation:vmware-modules-1.0.0.15-r2:20090825-201353.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.15-r2/temp/die.env'.
 * 

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

>>>  '/var/log/portage/app-emulation:vmware-modules-1.0.0.15-r2:20090825-201353.log'
Comment 1 Ricardo Saffi Marques 2009-08-25 20:29:33 UTC
Created attachment 202283 [details]
build log for app-emulation/vmware-modules-1.0.0.15-r2
Comment 2 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-08-26 15:16:23 UTC
(In reply to comment #1)
> Created an attachment (id=202283) [edit]
> build log for app-emulation/vmware-modules-1.0.0.15-r2
> 

Checking for suitable kernel configuration options...
   CONFIG_UNUSED_SYMBOLS:	 is not set when it should be.

Could you try to recompile your kernel with:
 Kernel hacking  ---> 
   [*] Enable unused/obsolete exported symbols

Comment 3 Ricardo Saffi Marques 2009-08-26 16:55:37 UTC
Created attachment 202330 [details]
New attempt to compile vmware-server, new error

This one is with a kernel with:
CONFIG_UNUSED_SYMBOLS=y
Comment 4 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-08-28 14:44:53 UTC

*** This bug has been marked as a duplicate of bug 273173 ***
Comment 5 Ricardo Saffi Marques 2009-08-28 16:38:23 UTC
(In reply to comment #4)
> 
> *** This bug has been marked as a duplicate of bug 273173 ***

I'm not sure I agree with the idea of this bug being a duplicate of bug #273173.
The problem I'm facing is that I'm was already using a 2.6.30 kernel when I decided to downgrade from vmware-server-2 to vmware-server-1. That being said, the problem is that I cannot use the patch, because the patch needs vmware-server-1 to be installed.

What I need is a way to install vmware-server-1.0.9 on a machine running with 2.6.30-gentoo-r4 (or greater). I refuse to the idea of installing a old kernel like 2.6.24 just to be able to install vmware-server-1 and THEN go to >=2.6.30 and apply the patch.

Got it?

Best regards,

Saffi
Comment 6 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-08-28 17:17:48 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > 
> > *** This bug has been marked as a duplicate of bug 273173 ***
> 
> I'm not sure I agree with the idea of this bug being a duplicate of bug
> #273173.

You are getting same errors as in 273173, therefor it's duplicate.
273173 is about how to compile 1.0.0.15-r2 modules for 2.6.29 and up kernel.
Is not it what you are doing?


> The problem I'm facing is that I'm was already using a 2.6.30 kernel when I
> decided to downgrade from vmware-server-2 to vmware-server-1. That being said,
> the problem is that I cannot use the patch, because the patch needs
> vmware-server-1 to be installed.
>
> What I need is a way to install vmware-server-1.0.9 on a machine running with
> 2.6.30-gentoo-r4 (or greater). I refuse to the idea of installing a old kernel
> like 2.6.24 just to be able to install vmware-server-1 and THEN go to >=2.6.30
> and apply the patch.
> 
> Got it?

"because the patch needs vmware-server-1 to be installed."
Nope. did not get that.

"I refuse to the idea of installing a old kernel
like 2.6.24 just to be able to install vmware-server-1 and THEN go to >=2.6.30
and apply the patch."

Did not get that either.

It's quite straight forward.
1. upgrade kernel.
2. emerge modules.
3. emerge vmware-server

What deviates from straight forward in this case is that you need to patch the kernel. See comment 8: https://bugs.gentoo.org/show_bug.cgi?id=273173#c8

So, the best answer *so far* to this issue is in 273173. That is why I marked this bug as dup.
Comment 7 Ricardo Saffi Marques 2009-09-02 00:07:29 UTC
(In reply to comment #6)
> You are getting same errors as in 273173, therefor it's duplicate.
> 273173 is about how to compile 1.0.0.15-r2 modules for 2.6.29 and up kernel.
> Is not it what you are doing?

Not really. For what I understood, that patch is for someone that, let's say: already had vmware-server-1 installed and had been using it with 2.6.24, and at some time upgraded their kernel to >2.6.24 and the module stopped working.
Is that correct?

My scenario is different. When I installed 2.6.30 I did NOT have vmware-server-1 previously installed. So in my case is not just the modules that won't compile because of a kernel upgrade. The whole vmware-server-1 won't install. 

>> "because the patch needs vmware-server-1 to be installed."
> Nope. did not get that.
>> "I refuse to the idea of installing a old kernel like 2.6.24 just to be able to install vmware-server-1 and THEN go to >=2.6.30 and apply the patch."
> Did not get that either.

> It's quite straight forward.
> 1. upgrade kernel.

Did that, but like I said, I didn't have vmware-server-1 installed before.

> 2. emerge modules.

Can't do that. Doesn't work. She the error I attached the other time.

> 3. emerge vmware-server

Can't do that either.

Sorry to insist on this. I just can't figure out a way to go through this and this annoying thing is not just bothering me, but is also delaying other people's work. Thanks for the reply, Vadim. Got it now?
In case I didn't make myself clear (yet), try to get in touch with me somehow: www.rsaffi.com

Best regards,

Saffi
Comment 8 Ricardo Saffi Marques 2009-09-03 13:29:18 UTC
Created attachment 203052 [details]
vmware-server is now installed with 2.6.30-gentoo-r4, but module vmnet causes kernel panic.

Ok, the scenario has (just) changed. But I still can't get it right.
What I did (using the patches from Bug #273173):

* emerge =sys-kernel/gentoo-sources-2.6.26-r4;
* eselect kernel set linux-2.6.26-gentoo-r4
* cd /usr/src/linux/;
* make -sj8 && make modules_install;
* emerge -va vmware-server (which brings vmware-modules-1.0.0.15-r2 as dependency);
* /opt/vmware/server/bin/vmware-config.pl;
* eselect kernel set linux-2.6.30-gentoo-r4;
* cd /var/tmp/portage/app-emulation/vmware-modules-1.0.0.15-r2/work/
* patch -p1 < /root/vmware_patch/040_all_kernel-2.6.29.patch
* patch -p1 < /root/vmware_patch/050_all_kernel-2.6.29.patch
* cd /usr/src/linux/
* patch -p1 < /root/vmware_patch/2.6.29-export-init_mm.patch
* make -sj8 && make modules_install && make install
* [Updated grub and rebooted to the new kernel]
* ebuild /usr/portage/app-emulation/vmware-modules/vmware-modules-1.0.0.15-r2.ebuild configure compile install qmerge

Ok, so the patches worked great and I now have vmware-server-1 installed with 2.6.30-gentoo-r4. BUT I still have issues. It should be working just fine, but it isn't.

I re-configured vmware (/opt/vmware/server/bin/vmware-config.pl), just in case. But I can't get the service to start properly. That certainly happens due to a kernel panic when loading vmnet. Check out the attachment I'll post right away. It'll probably be easier to understand the problem I'm having by checking the attachment.
Comment 9 Ricardo Saffi Marques 2009-09-03 13:37:05 UTC
So what I mean is that, besides the panic when loading "vmnet", the rc script is ALWAYS creating that "not_configured" file, which makes the service not start the next time it is invoked.
I don't know if it's only with me, but the instability of vmware-server with my system is quite annoying.
Comment 10 Mario Fetka (geos_one) 2009-11-29 13:54:49 UTC
> I'm using 2.6.30-gentoo-r4 and I *AM* aware vmware-server-1.0.9 is not
> supported on this kernel. I do know there were some patches around the web to
> deal with this, but everything I've found was designed for 2.6.27 to 2.6.29.

me too

i have made my own overly for dealing with vmware server 1.x.x
i also created my own modules package to deal with vmware server 1 on kernels greater then 2.6.29 
you still have to add "EXPORT_UNUSED_SYMBOL(init_mm);" at the end of arch/x86/kernel/init_task.c of your kernel-sources 

my layman file http://ftp.mars.arge.at/pub/overlay/geos_one-overlay.xml
the overlay is called go-vmware
Comment 11 Mario Fetka (geos_one) 2010-12-05 20:28:28 UTC
(In reply to comment #10)
> > I'm using 2.6.30-gentoo-r4 and I *AM* aware vmware-server-1.0.9 is not
> > supported on this kernel. I do know there were some patches around the web to
> > deal with this, but everything I've found was designed for 2.6.27 to 2.6.29.
> 
> me too
> 
> i have made my own overly for dealing with vmware server 1.x.x
> i also created my own modules package to deal with vmware server 1 on kernels
> greater then 2.6.29 
> you still have to add "EXPORT_UNUSED_SYMBOL(init_mm);" at the end of
> arch/x86/kernel/init_task.c of your kernel-sources 
> 
> my layman file http://ftp.mars.arge.at/pub/overlay/geos_one-overlay.xml
> the overlay is called go-vmware
> 

i have updated my overlay with some important changes

vmware-modules-138.10 now works with 2.6.36

the most important change is that you don't have to patch the kernel to reexport the init_mm symbole

just compile and you are done.

the location of the overlay has changed to
http://ftp.disconnected-by-peer.at/pub/overlay/geos_one-overlay.xml
Comment 12 Vadim Kuznetsov (RETIRED) gentoo-dev 2011-03-17 13:13:37 UTC
vmware-server 1.0.x is not in the portage anymore.
Bug 354383.