Menu

#173 Modules fail to build with Linux 3.10

v1.0 (example)
open-fixed
nobody
None
5
2015-07-09
2013-06-30
Nate Muench
No

Distro: Ubuntu Saucy (13.10)
Kernel: 3.10-rc7
Version: 2013.04.16-1098359 (Devel)

Hello, me again. I've attached the complete build log from Ubuntu.

1 Attachments

Discussion

  • Zbigniew Luszpinski

    Most of these compilation errors can be bypassed by adding these flags:
    # gcc 4.8 fix
    CFLAGS+=' -Wno-error=unused-local-typedefs -Wno-error=implicit-function-declaration'

    but compilation will stop at errors:
    /usr/src/open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c: In function 'HgfsAioRead':
    /usr/src/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);
    ^
    /usr/src/open-vm-tools-2013.04.16-1098359/modules/linux/vmhgfs/file.c: In function 'HgfsAioWrite':
    /usr/src/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);

     
  • Fiz N. Stein

    Fiz N. Stein - 2013-07-30

    For open-vm-tools-2013.04.16-1098359 and Linux 3.10, try adding

    #include <linux/aio.h>

    at the beginning of modules/linux/vmhgfs/file.c with the other includes.

     

    Last edit: Fiz N. Stein 2013-07-30
  • Zbigniew Luszpinski

    Thanks it works. Made patch for easy fixing. If someone needs it see attached patch to this comment. To sum up everything: to successfully compile open-vm-tools on kernel 3.10 with gcc 4.8 both things are needed:
    1. Additional CFLAGS:
    CFLAGS+=' -Wno-error=unused-local-typedefs -Wno-error=implicit-function-declaration'
    2. This patch from attachment applied.

     
  • Nate Muench

    Nate Muench - 2013-08-10

    I reject your patch because vmhgfs isn't the only thing that is failing you know. Also it doesn't fix the problem. I hope you guys (the people who work for VMware) are hard at work with a new upstream release. I miss the old monthly devel releases :(

    I've also forced building of the old package with GCC 4.7.

     
  • Ravindra Kumar

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

    Ravindra Kumar - 2015-07-09

    This is partly DUP of tracker 174 and tracker 175.

    We are not going to support vmblock going forward. vmhgfs should compile fine. Please check with the latest version of open-vm-tools 9.10.2.

     

Log in to post a comment.