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);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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);
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
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.
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.
workaround https://gist.github.com/kikairoya/6218671
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.