Menu

#22 Error Compiling aufs-standalone (Linux Kernel 4.1.6)

v1.0_(example)
open
None
1
2015-09-03
2015-09-02
SamD
No

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

Discussion

  • SamD

    SamD - 2015-09-02

    Sorry, forgot to mention it is aufs4-standalone

     
    • J. R. Okajima

      J. R. Okajima - 2015-09-02

      Hello SamD,

      "SamD":

      Sorry, forgot to mention it is aufs4-standalone
      :::
      While compiling aufs-standalone with linux kernel 4.1.6 after applying all aufs patches below error occures

      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

       
  • SamD

    SamD - 2015-09-03

    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.

     
  • SamD

    SamD - 2015-09-03

    Thank you Okajima,

    aufs4.1 branch compiled flawlessly

     

Log in to post a comment.

MongoDB Logo MongoDB