Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vmware-modules with kernel 2.6.30_rc4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Bakou
n00b
n00b


Joined: 05 Feb 2007
Posts: 42

PostPosted: Fri May 01, 2009 7:08 pm    Post subject: vmware-modules with kernel 2.6.30_rc4 Reply with quote

Hi,

this is an important kernel update since it finally fixes a few problems for all us intel video users.
However as usual they've also managed to break vmware-modules! It builds the first two modules fine (vmmon and vmnet) then dies on vmblock.

It doesn't look like a lot of changes would be required, as this package built perfectly against kernel 2.6.29, I already started fixing the code myself by commenting out those lines but I have no idea about packaging patches and ebuilds. Can anyone help?

CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/block.o
CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.o
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c: In function 'SetupProcDevice':
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c:159: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c:171: error: 'struct proc_dir_entry' has no member named 'owner'
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.o] Error 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-rc4'
make: *** [vmblock.ko] Error 2
*
* ERROR: app-emulation/vmware-modules-1.0.0.23-r1 failed.
* Call stack:
* ebuild.sh, line 48: Called src_compile
* environment, line 3668: Called linux-mod_src_compile
* environment, line 2782: Called die
* The specific snippet of code:
* eval "emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.30-rc4/build


>>> Failed to emerge app-emulation/vmware-modules-1.0.0.23-r1, Log file:

>>> '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/temp/build.log'

* Messages for package app-emulation/vmware-modules-1.0.0.23-r1:

*
* ERROR: app-emulation/vmware-modules-1.0.0.23-r1 failed.
* Call stack:
* ebuild.sh, line 48: Called src_compile
* environment, line 3668: Called linux-mod_src_compile
* environment, line 2782: Called die
* The specific snippet of code:
* eval "emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.30-rc4/build
_________________
--Laptop--
ThinkPad T500 Gentoo

--Desktop--
Intel Core Duo E6420 (8x333)
3 GB PC6400 DDR2 825mhz 4-4-4-15
nVidia 8800GT
Creative X-Fi (works in Gentoo)
Back to top
View user's profile Send private message
Bakou
n00b
n00b


Joined: 05 Feb 2007
Posts: 42

PostPosted: Fri May 01, 2009 7:13 pm    Post subject: Reply with quote

Just verified that all it takes to get the whole package to build is commenting those two lines, however I still don't know how to install it properly..
_________________
--Laptop--
ThinkPad T500 Gentoo

--Desktop--
Intel Core Duo E6420 (8x333)
3 GB PC6400 DDR2 825mhz 4-4-4-15
nVidia 8800GT
Creative X-Fi (works in Gentoo)
Back to top
View user's profile Send private message
Bakou
n00b
n00b


Joined: 05 Feb 2007
Posts: 42

PostPosted: Fri May 01, 2009 7:46 pm    Post subject: Reply with quote

Okay, I figured it out!

Got my virtual machine running on this kernel, though it seems a bit slow.
create the patch, modify the ebuild as below, run ebuild <name> digest and off you go!

Patch (goes in files/ in the vmware overlay from the same folder as ebuild, call it vmmod-fix-2630.patch)
------------
--- control.c 2009-05-01 14:30:12.000000000 +0000
+++ vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c 2009-05-01 12:46:25.000000000 +0000
@@ -156,7 +156,7 @@ SetupProcDevice(void)
return -EINVAL;
}

- controlProcDirEntry->owner = THIS_MODULE;
+ //controlProcDirEntry->owner = THIS_MODULE;

/* Create /proc/fs/vmblock/mountPoint */
controlProcMountpoint = proc_mkdir(VMBLOCK_CONTROL_MOUNTPOINT,
@@ -168,7 +168,7 @@ SetupProcDevice(void)
return -EINVAL;
}

- controlProcMountpoint->owner = THIS_MODULE;
+ //controlProcMountpoint->owner = THIS_MODULE;

/* Create /proc/fs/vmblock/dev */
controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,



Modified ebuild of 1.0.0.23-r1:
-----

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-modules/vmware-modules-1.0.0.23.ebuild,v 1.2 2009/01/12 21:42:37 maekke Exp $

KEYWORDS="amd64 x86"
VMWARE_VER="VME_V65" # THIS VALUE IS JUST A PLACE HOLDER

PATCH_VER="1"

inherit eutils vmware-mod

LICENSE="GPL-2"
IUSE=""

VMWARE_MODULE_LIST="vmmon vmnet vmblock vmci vsock"
SRC_URI="x86? ( http://dev.gentoo.org/~ikelos/devoverlay-distfiles/${PN}-${PVR}.x86.tar.bz2 )
amd64? ( http://dev.gentoo.org/~ikelos/devoverlay-distfiles/${PN}-${PVR}.amd64.tar.bz2 )"
VMWARE_MOD_DIR="${PN}-${PVR}"

src_unpack() {
vmware-mod_src_unpack
cd "${S}"
epatch "${FILESDIR}/${PVR}-kernel-2.6.29.patch"
epatch "${FILESDIR}/${PV}-makefile-kernel-dir.patch"
epatch "${FILESDIR}/vmmod-fix-2630.patch"
}
_________________
--Laptop--
ThinkPad T500 Gentoo

--Desktop--
Intel Core Duo E6420 (8x333)
3 GB PC6400 DDR2 825mhz 4-4-4-15
nVidia 8800GT
Creative X-Fi (works in Gentoo)
Back to top
View user's profile Send private message
jowr
n00b
n00b


Joined: 27 Dec 2008
Posts: 52

PostPosted: Wed May 20, 2009 5:26 pm    Post subject: Reply with quote

The patch does not work on my system.

Quote:

* Failed Patch: vmmod-fix-2630.patch !
* ( /usr/local/portage/app-emulation/vmware-modules/files/vmmod-fix-2630.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/temp/vmmod-fix-2630.patch-4585.out


/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/temp/vmmod-fix-2630.patch-4585.out :

Quote:

***** vmmod-fix-2630.patch *****

================================

PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/local/portage/app-emulation/vmware-modules/files/vmmod-fix-2630.patch

================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- control.c 2009-05-01 14:30:12.000000000 +0000
|+++ vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c 2009-05-01 12:46:25.000000000 +0000
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 4: return -EINVAL;

================================

PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/local/portage/app-emulation/vmware-modules/files/vmmod-fix-2630.patch

================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- control.c 2009-05-01 14:30:12.000000000 +0000
|+++ vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c 2009-05-01 12:46:25.000000000 +0000
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 4: return -EINVAL;

================================

PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/local/portage/app-emulation/vmware-modules/files/vmmod-fix-2630.patch

================================
missing header for unified diff at line 3 of patch
patching file vmblock-only/linux/control.c
patch: **** malformed patch at line 4: return -EINVAL;

================================

PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/local/portage/app-emulation/vmware-modules/files/vmmod-fix-2630.patch

================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- control.c 2009-05-01 14:30:12.000000000 +0000
|+++ vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c 2009-05-01 12:46:25.000000000 +0000
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 4: return -EINVAL;

================================

PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/local/portage/app-emulation/vmware-modules/files/vmmod-fix-2630.patch

================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- control.c 2009-05-01 14:30:12.000000000 +0000
|+++ vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c 2009-05-01 12:46:25.000000000 +0000
--------------------------
No file to patch. Skipping patch.
patch: **** malformed patch at line 4: return -EINVAL;
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum