While compiling aufs-standalone with linux kernel 4.1.6 after applying all aufs patches below error occures
GCC 5.2.0 x64, Binutils 2.25.1 x64, Glibc 2.22
CC fs/aufs/sbinfo.o
CC fs/aufs/super.o
CC fs/aufs/branch.o
CC fs/aufs/xino.o
fs/aufs/xino.c: In function 'find_readf':
fs/aufs/xino.c:1003:9: error: 'const struct file_operations' has no member named 'aio_read'
if (fop->aio_read)
^
fs/aufs/xino.c:1004:10: error: 'do_sync_read' undeclared (first use in this function)
return do_sync_read;
^
fs/aufs/xino.c:1004:10: note: each undeclared identifier is reported only once for each function it appears in
fs/aufs/xino.c:1006:10: error: 'new_sync_read' undeclared (first use in this function)
return new_sync_read;
^
fs/aufs/xino.c: In function 'find_writef':
fs/aufs/xino.c:1016:9: error: 'const struct file_operations' has no member named 'aio_write'
if (fop->aio_write)
^
fs/aufs/xino.c:1017:10: error: 'do_sync_write' undeclared (first use in this function)
return do_sync_write;
^
fs/aufs/xino.c:1019:10: error: 'new_sync_write' undeclared (first use in this function)
return new_sync_write;
^
scripts/Makefile.build:258: recipe for target 'fs/aufs/xino.o' failed
make[2]: *** [fs/aufs/xino.o] Error 1
scripts/Makefile.build:403: recipe for target 'fs/aufs' failed
make[1]: *** [fs/aufs] Error 2
Makefile:947: recipe for target 'fs' failed
make: *** [fs] Error 2
Sorry, forgot to mention it is aufs4-standalone
Hello SamD,
"SamD":
Which version (branch) in aufs4-standalone.git are you using?
While I have never tried linux-4.1.6, this error (at least) should not
happen if you use aufs4.1 or aufs4.x-rcN.
J. R. Okajima
As a layman, I used git://github.com/sfjro/aufs4-standalone.git mentioned at aufs.sourceforge.net page.
I'll give aufs4.1 branch a try. It would be really helpful if you can mention the method and link to download branches as well.
Thank you Okajima,
aufs4.1 branch compiled flawlessly