Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504736 - app-emulation/vmware-modules-279.1 with kernel 3.14.0 - kernel: vmblock: Unknown symbol getname (err 0)
Summary: app-emulation/vmware-modules-279.1 with kernel 3.14.0 - kernel: vmblock: Unkn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-03-15 19:06 UTC by Fabio Rossi
Modified: 2015-07-11 04:50 UTC (History)
6 users (show)

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


Attachments
279-getname.patch (279-getname.patch,533 bytes, patch)
2014-03-15 19:06 UTC, Fabio Rossi
Details | Diff
Modified patch as per comment #1 (279-getname.patch,719 bytes, patch)
2014-05-08 07:33 UTC, Andreas Proteus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2014-03-15 19:06:12 UTC
Created attachment 372758 [details, diff]
279-getname.patch

With the commit 

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9115eac2c788c17b57c9256cb322fa7371972ddf

the symbol getname is not anymore exported for kernel >= 3.14.0. Without a patch the loading of the module fails with the following error:

kernel: vmblock: Unknown symbol getname (err 0)

I have written a patch which should solve the issue, here is attached. Please test it carefully.
Comment 1 Kamil Kamiński 2014-04-13 07:39:15 UTC
Patch is not compatible with sources patched for 3.12. That patch is also required for modules to build correctly.

Mainly because getname line looks like that:

---
name = (char*)getname(buf)->name;
----

After fixing patch applies correctly and vmware-modules-279.1-r1 are working as expected.
Comment 2 Fabio Rossi 2014-04-13 09:03:39 UTC
(In reply to Kamil Kamiński from comment #1)
> Patch is not compatible with sources patched for 3.12. That patch is also
> required for modules to build correctly.
> 
> Mainly because getname line looks like that:
> 
> ---
> name = (char*)getname(buf)->name;
> ----
> 
> After fixing patch applies correctly and vmware-modules-279.1-r1 are working
> as expected.

there is no need to patch kernel 3.12 so in the ebuild you should put

    kernel_is gt 3 13 99 && epatch "${FILESDIR}/279-getname.patch"
Comment 3 Andreas Proteus 2014-05-08 07:33:36 UTC
Created attachment 376568 [details, diff]
Modified patch as per comment #1
Comment 4 Greg Turner 2014-05-11 02:48:12 UTC
For folks googling: I now have 3.14.x support in my overlay:

gmt-vmware-overlay on github (username: gmt)

which solves several problems with gentoo's ebuilds.

nb: github was down as I wrote this.  I'll update as soon as they sort out their issues, but there may be a brief window where the 3.14.x patches are not yet available once github is online.
Comment 5 Ferry 2014-05-19 12:43:13 UTC
http://pastie.org/pastes/9090538/

contains diff to build it.

Shamelessly obtained from https://wiki.archlinux.org/index.php/VMware
Comment 6 Evan Teran 2014-10-14 02:21:57 UTC
I have commited a new ebuild and set of patches to the official vmware overlay. Please give it a try. Please be sure to remove any user patches you have in /etc/portage/patches/ as the code should now compile *cleanly* for all kernel versions 3.10 - 3.17.

I am working with the maintainer to get the ebuild and patches merged with the mainline once it has been tested enough.