Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375461 - vmware-modules-1.0.0.25* (needed by stable vmware-workstation-6*) cannot be compiled with new 2.6.39 kernel
Summary: vmware-modules-1.0.0.25* (needed by stable vmware-workstation-6*) cannot be c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Vadim Kuznetsov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 17:20 UTC by Melendro
Modified: 2011-12-17 14:41 UTC (History)
7 users (show)

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


Attachments
Patch for vmware-modules-1.0.0.25 (10.0.0.25-kernel-2.6.39.patch,20.68 KB, patch)
2011-07-18 13:58 UTC, Benjamin Gaillard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Melendro 2011-07-17 17:20:45 UTC
This bug must be fixed in an stable release of vmware-modules-1.0.0.25*, so this bug is not a duplicate of others focused on vmware-modules-2XX*

vmware-modules-1.0.0.25-r3 (stable) compilation fails with:

app-emulation/vmware-modules-1.0.0.25-r3/work/vmblock-only/linux/dentry.c: In function ‘DentryOpRevalidate’:
app-emulation/vmware-modules-1.0.0.25-r3/work/vmblock-only/linux/dentry.c:121: error: implicit declaration of function ‘path_lookup’

vmware-modules-1.0.0.25-r4 (unstable) compilation fails with:

CONFIG_BKL:         is not set when it should be.
(but CONFIG_BKL doesn't exist anymore on 2.6.39 kernel).

vmware-modules-1.0.0.25* is needed for stable vmware-workstation-6*.
vmware-modules-2XX* cannot be used with workstation-6.
So there's no way to make workstation-6 run under this new 2.6.39 kernel.


Reproducible: Always

Steps to Reproduce:
1. Install new stable kernel gentoo-sources-2.6.39-r3
2. Try to emerge any release of vmware-modules-1.0.0.25* for adding the kernel module to the new kernel

Actual Results:  
Compilation fails and no kernel module is generated

Expected Results:  
Compilation Ok and module generated
Comment 1 Benjamin Gaillard 2011-07-18 13:58:57 UTC
Created attachment 280301 [details, diff]
Patch for vmware-modules-1.0.0.25

Here is a patch I created (using http://communities.vmware.com/message/1784494 as a base and adapting it to work with already applied Gentoo patches).
This makes -r3 compile and work, I haven't tested with -r4 (which is just about the same with a now erroneous kernel configuration check for the BKL).
Comment 2 olo 2011-07-26 02:45:49 UTC
how to use it? if any full information. thanks a lot. never used patch before.
Comment 3 olo 2011-07-26 03:05:43 UTC
(In reply to comment #2)
> how to use it? if any full information. thanks a lot. never used patch before.

Successfully got it work
Comment 4 andcycle-gentoo.bugs 2011-07-29 10:55:06 UTC
(In reply to comment #1)

oops, looks like this patch works for vmware-modules-208.2 too,
just needs to get rid of vmblock-only part,

I am gonna do some test to see if it works for vmware-server 2.
Comment 5 andcycle-gentoo.bugs 2011-07-30 05:54:51 UTC
ok, I just confirm this patch works for vmware-modules-208.2 too,
my vmware-server-2.0.2.203138-r4 have ran for 6 hrs without any problem
Comment 6 olo 2011-07-30 10:27:05 UTC
seems 3D doesnt work and halted the vmware...
if someone could confirm.

I just installed Google Earth Pro trail, 
it used to work well, but now once I executed the program, vmware halted and have to reboot the system.
Comment 7 olo 2011-07-30 10:54:23 UTC
Sorry forgot mention, the log file
mks| GLUtil_InstallExtensionLists: Missing extension GL_ARB_vertex_blend 
mks| GLUtil_InstallExtensionLists: Missing extension GL_ARB_vertex_shader_texture_lod
mks| GLUtil_InstallExtensionLists: Missing extension GL_ATI_vertex_shader_texture_lod
mks| GLUtil_InstallExtensionLists: Missing extension GL_APPLE_fence
mks| GLUtil_InstallExtensionLists: Missing extension GL_APPLE_flush_buffer_range
Comment 8 Guy 2011-07-31 00:05:48 UTC
The patch works fine for vmware-modules-1.0.0.25-r4.

I created a local overlay, copied the patch to an overlay file I named:

/usr/local/portage/app-emulation/vmware-modules/files/big_K_lock.patch

then updated the following from the ebuild:


BEFORE:

pkg_setup() {
        if kernel_is ge 2 6 37; then
                CONFIG_CHECK="BKL"
                linux-info_pkg_setup
        fi
..
src_prepare() {
        epatch "${FILESDIR}/${PV}-makefile-kernel-dir.patch"
        epatch "${FILESDIR}/${PV}-makefile-include.patch"
        epatch "${FILESDIR}/sched_h-2.6.32.patch"
        epatch "${FILESDIR}/${PV}-autoconf-generated.patch"
        epatch "${FILESDIR}/apic.patch"
        kernel_is ge 2 6 35 && epatch "${FILESDIR}/${PV}-sk_sleep.patch"
        kernel_is ge 2 6 36 && epatch "${FILESDIR}/${PV}-unlocked_ioctl.patch"
        kernel_is ge 2 6 37 && epatch "${FILESDIR}/${PV}-sema.patch"


AFTER:
pkg_setup() {
        if kernel_is le 2 6 38; then
                if kernel_is ge 2 6 37; then
                        CONFIG_CHECK="BKL"
                        linux-info_pkg_setup
                fi
        fi
..
src_prepare() {
        epatch "${FILESDIR}/${PV}-makefile-kernel-dir.patch"
        epatch "${FILESDIR}/${PV}-makefile-include.patch"
        epatch "${FILESDIR}/sched_h-2.6.32.patch"
        epatch "${FILESDIR}/${PV}-autoconf-generated.patch"
        epatch "${FILESDIR}/apic.patch"
        kernel_is ge 2 6 35 && epatch "${FILESDIR}/${PV}-sk_sleep.patch"
        kernel_is ge 2 6 36 && epatch "${FILESDIR}/${PV}-unlocked_ioctl.patch"
        kernel_is ge 2 6 37 && epatch "${FILESDIR}/${PV}-sema.patch"
        kernel_is ge 2 6 39 && epatch "${FILESDIR}/${PV}-big_K_lock.patch"


Limited testing and works for the program I normally use in virtual clients.
Comment 9 seller 2011-09-21 13:44:13 UTC
Hello!
Who can say where i want to apply this patch (10.0.0.25-kernel-2.6.39.patch) and how?
Comment 10 seller 2011-09-22 08:35:08 UTC
I reemerge vmware-modules with that patch. Thanks this small manual:


" That's almost it--

1) copy the ebuild and /files folder to your overlay
(/usr/local/portage/media-sound/aumix/, assuming that your
PORTDIR_OVERLAY is /usr/local/portage);

2) copy the patch to the /files folder in the overlay folder with the
other aumix patches;

3) edit the following section of the overlay ebuild copy:

src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-nohome.patch
epatch ${FILESDIR}/${P}-close-dialogs.patch
epatch ${FILESDIR}/${P}-save_load.patch
epatch ${FILESDIR}/${P}-nls.patch

to

src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-nohome.patch
epatch ${FILESDIR}/${P}-close-dialogs.patch
epatch ${FILESDIR}/${P}-save_load.patch
epatch ${FILESDIR}/${P}-nls.patch
==> epatch ${FILESDIR}/${P}-autoconf.patch

Save (of course), redigest (ebuild
/usr/local/portage/media-sound/aumix/aumix-2.8-r2.ebuild digest), emerge. "
Comment 11 Melendro 2011-09-25 14:33:18 UTC
Any plans on inserting the patch into main portage tree?

The patch is almost 2 months old now, I think it is more than enough time to approve it, specially when it solves a problem that breaks a stable system.
Comment 12 Melendro 2011-10-08 18:08:02 UTC
Why is this bug in the UNCONFIRMED status?

It's really easy to confirm it: just try to emerge vmware-workstation in an stable system (stable vmware-workstation-6.5.5.328052 with stable gentoo-sources-2.6.39-r3).
Comment 13 Anton Smorodsky 2011-10-09 10:36:02 UTC
Confirm reproducing problem for x86 for kernel 3.0.3 .
Also confirm that applying patch solve issue .

P.S. Special thanks to seller@mail.ru for clear steps how to apply the patch .
Comment 14 Matt Summers (RETIRED) gentoo-dev 2011-10-17 20:50:37 UTC
What is blocking this? I see this issue on the current stable kernel (3.0.6).
Comment 15 mephinet 2011-10-20 10:55:36 UTC
Tested the patch in the following combination, works fine:

Linux 3.0.6-gentoo x86_64 
vmware-modules-1.0.0.25-r3 (with attached patch)
vmware-player-2.5.5.328052

please stabilize.
Comment 16 Vadim Kuznetsov (RETIRED) gentoo-dev 2011-12-17 14:41:52 UTC
Workstation 6 and its modules age no longer in the tree. 
Modules for workstation 7 are patched. Thanks.