| Summary: | app-emulation/open-vm-tools fails to build | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
| Component: | New packages | Assignee: | Gentoo VMWare Bug Squashers [disabled] <vmware+disabled> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | steffen.bergner, zteccc |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Build log | ||
|
Description
Diego Elio Pettenò (RETIRED)
2008-11-29 19:29:40 UTC
Created attachment 173797 [details]
Build log
I'm experiencing the same issue after upgrading to gentoo-sources-2.6.27-r7 (which was marked x86 stable on December 25, 2008). It appears that the 2.6.27 tree is missing something that open-vm-tools is looking for (asm/semaphore.h) The actual path (for x86) is /usr/src/linux-2.6.27-gentoo-r7/include/asm-x86/semaphore.h or /usr/src/linux-2.6.27-gentoo-r7/include/asm/semaphore.h (linux and asm are symbolic links). From the 2.6.26 kernel, semaphore.h under asm is simply a single line: ---- BEGIN CODE ---- #include <linux/semaphore.h> ---- END CODE ---- Adding this file back to the 2.6.27-r7 allows the compilation to complete properly. It appears that the 2.6.27-r7 tree be patched by re-adding this file to allow this compilation until the Open Virtual Machine Tools upstream folks can adjust their build to compensate. Alternatively, the open-vm-tools ebuild can be patched to point to the linux/semaphore.h vs the asm/semaphore.h. I don't know which would be more difficult (sorry, not yet very good at ebuilds). Whoops, missed something. The modules compiled properly under 2.6.27-r7 but they definitely do not work properly. When the vmblock module is loaded we get this under dmesg (forgot to check before my last post):
---- DMESG clip ----
BUG: unable to handle kernel NULL pointer dereference at 00000004
IP: [<c01653c6>] d_instantiate+0x18/0x3f
*pde = 00000000
Oops: 0002 [#1]
Modules linked in: vmblock
Pid: 2522, comm: mount Not tainted (2.6.27-gentoo-r7 #1)
EIP: 0060:[<c01653c6>] EFLAGS: 00010282 CPU: 0
EIP is at d_instantiate+0x18/0x3f
EAX: 00000000 EBX: de4d9008 ECX: df51c9bc EDX: de4d9020
ESI: df51c980 EDI: de483000 EBP: 00000000 ESP: de4c1e70
DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process mount (pid: 2522, ti=de4c1000 task=df9d57a0 task.ti=de4c1000)
Stack: df51c980 de4d9008 c0165635 de4d9008 de483000 e09119c9 00000001 de483000
00000000 c0158375 00000000 dfbe5700 e0911947 dfbe5700 e09134e0 ffffffed
de495000 c0157ed9 e0911947 dfbe5700 00000000 00000000 de495000 e09134e0
Call Trace:
[<c0165635>] d_alloc_root+0x36/0x3b
[<e09119c9>] VMBlockCleanupFileSystem+0xcd/0x117 [vmblock]
[<c0158375>] get_sb_nodev+0x4a/0x82
[<e0911947>] VMBlockCleanupFileSystem+0x4b/0x117 [vmblock]
[<c0157ed9>] vfs_kern_mount+0x59/0x11b
[<e0911947>] VMBlockCleanupFileSystem+0x4b/0x117 [vmblock]
[<c0157fe2>] do_kern_mount+0x31/0xbc
[<c016a651>] do_new_mount+0x69/0x8e
[<c016a82d>] do_mount+0x1b7/0x1d2
[<c013d667>] __get_free_pages+0x19/0x38
[<c0168985>] copy_mount_options+0x28/0x12a
[<c015d920>] getname+0x90/0xb2
[<c016a8ba>] sys_mount+0x72/0xb8
[<c0102c01>] sysenter_do_call+0x12/0x25
=======================
Code: 5b 5e 5f 5d c3 8b 1c 24 c7 43 08 00 00 00 00 31 ed eb e8 56 53 89 c6 89 d3 8d 48 3c 3b 48 3c 75 2d 85 d2 74 12 8d 52 18 8b 43 18 <89> 48 04 89 46 3c 89 51 04 89 4b 18 89 5e 08 89 da 89 f0 e8 bf
EIP: [<c01653c6>] d_instantiate+0x18/0x3f SS:ESP 0068:de4c1e70
---[ end trace 8d28c404594efb5f ]---
---- END DMESG clip ----
I guess that open-vm-tools-0.0.20080808.109361-r1 isn't compatible with the 2.6.27 tree even though it will compile (of course perhaps there is a .config setting to enable that will help, not sure).
For the moment therefore, I'm reverting to kernel 2.6.26-r4
It appears that there is a relatively new release (Dec 23rd of 2008) of the open VM tools at Sourceforge...
open-vm-tools at sourceforge - 2008.12.23 Please bump version of open-vm-tools. Thanks! Notes: Changes: open-vm-tools 2009.12.23 changes: * Lots of makefile cleanup with the switch to using libtool archives. * Automatically disable Unity if multimon support is disabled. * Actually build the pvscsi modules. * First bits of the "Core Service" project are starting to show up; the base "vmtools" library was added to the package. It currently is mostly a collection of the existing libraries already shipped with open-vm-tools, plus some extra functionality build on top of glib. Currently no other code in open-vm-tools uses it, so it's optional. * The HGFS driver was fixed for the Linux 2.6.28 kernel. Ok, just pushed the latest ebuild into the main tree (there's been a working version in the vmware overlay for a while, it just never got pushed over). Hopefully this is now FIXED. 5:) * app-emulation/open-vm-tools
Latest version available: 0.0.20081223.137496
Latest version installed: 0.0.20081223.137496
Size of downloaded files: 3,240 kB
Homepage: http://open-vm-tools.sourceforge.net/
Description: Opensourced tools for VMware guests
License: LGPL-2
... works perfect (with sys-kernel/gentoo-sources-2.6.28). Thanks a lot!
Works well with 2.6.27-gentoo-r7 as well. Thanks! |