Menu

#175 open-vm-tools-2013.04.16-1098359 dkms module does not build on linux-3.11

v1.0 (example)
open-fixed
nobody
None
2
2015-07-09
2013-08-04
No

Distro: Ubuntu Saucy (13.10)
Kernel: 3.11.0-0
Version: open-vm-tools-2013.04.16-1098359

This blocks open-vm-tools DKMS package from building on Saucy once the kernel is rebased to 3.11.

When building with 3.11 headers you get the following error:

open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/dir.c:82:4: error: unknown field ‘readdir’ specified in initializer
.readdir = HgfsReaddir,
^

This is because readdir has been renamed to iterate as of commit bb6f619b3a49f940d7478112500da312d70866eb. HgfsReaddir needs to use the new iterate functions, and readdir needs to be replaced with iterate for kernel versions that iterate exists.

A launchpad bug with slightly more info is here:
https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1208011

Thanks

Discussion

  • Fiz N. Stein

    Fiz N. Stein - 2013-08-05

    Looks like a patch at http://mysticalzero.blogspot.com/2013/07/vmblock-patch-for-linux-311-rc1-vmware.html should provide a solution. Not the exact patch needed, but should show what to do.

     
    • Nate Muench

      Nate Muench - 2013-08-26

      Patch only fixes one module. The vmci, vmhgfs, and vsock modules are still broken.

       
  • Bernd Zeimetz

    Bernd Zeimetz - 2014-01-07

    Building against 3.12 throws some more error messages, a log is here:

    http://devel.recluse.de/~bzed/.publish/2014-01-08-JgfKxGlqJX4/make.log

    (I've applied 1a3eb34dd0ad5aa3e51d586cf1fcf310c1f4350e - [PATCH] Fix AssertOnCompileFailed for GCC 4.8 (kernel 3.10+) on 9.4.0-1280544 - made things slightly better, but did not fix all issues unfortunately.

     
  • Bernd Zeimetz

    Bernd Zeimetz - 2014-01-07

    Actually I think 4a527c99 fixes at least the iterate issue.

     
  • Ravindra Kumar

    Ravindra Kumar - 2015-07-09
    • status: open --> open-fixed
     
  • Ravindra Kumar

    Ravindra Kumar - 2015-07-09

    Please check with the latest version of open-vm-tools 9.10.2.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.