Public bug reported:

open-vm-tools-2013.04.16-1098359 dkms module does not build on linux-3.11.
It will be important this works on 3.11 since Saucy will be rebased on 3.11 
eventually.

The following errors occur:
1)
open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c: In function 
‘HgfsAioRead’:
open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c:754:32: error: 
dereferencing pointer to incomplete type
    result = HgfsRevalidate(iocb->ki_filp->f_dentry);
                                ^
open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c: In function 
‘HgfsAioWrite’:
open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c:803:32: error: 
dereferencing pointer to incomplete type
    result = HgfsRevalidate(iocb->ki_filp->f_dentry);
                                ^

This can be fixed with the patch in the following issue:
http://sourceforge.net/p/open-vm-tools/tracker/173/
https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1194940

Which adds the following to vmhgfs/file.c
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
+#include <linux/aio.h>
+#endif

2)
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.

** Affects: open-vm-tools (Ubuntu)
     Importance: Medium
         Status: New

** Description changed:

- open-vm-tools-2013.04.16-1098359 dkms module does not build on
- linux-3.11.
+ open-vm-tools-2013.04.16-1098359 dkms module does not build on linux-3.11.
+ It will be important this works on 3.11 since Saucy will be rebased on 3.11 
eventually.
  
  The following errors occur:
  1)
  open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c: In function 
‘HgfsAioRead’:
  open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c:754:32: error: 
dereferencing pointer to incomplete type
-     result = HgfsRevalidate(iocb->ki_filp->f_dentry);
-                                 ^
+     result = HgfsRevalidate(iocb->ki_filp->f_dentry);
+                                 ^
  open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c: In function 
‘HgfsAioWrite’:
  open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c:803:32: error: 
dereferencing pointer to incomplete type
-     result = HgfsRevalidate(iocb->ki_filp->f_dentry);
-                                 ^
+     result = HgfsRevalidate(iocb->ki_filp->f_dentry);
+                                 ^
  
  This can be fixed with the patch in the following issue:
  http://sourceforge.net/p/open-vm-tools/tracker/173/
+ https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1194940
  
  Which adds the following to vmhgfs/file.c
  +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
  +#include <linux/aio.h>
  +#endif
  
  2)
  open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/dir.c:82:4: error: 
unknown field ‘readdir’ specified in initializer
-     .readdir     = HgfsReaddir,
-     ^
+     .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.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to open-vm-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1208011

Title:
  open-vm-tools-2013.04.16-1098359 dkms module does not build on
  linux-3.11

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1208011/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to