CentOs 7.6 build fails with compilation errors.
I am following the steps in the read me. When I get to "sudo dkms install anbox-ashmem/1" it fails. Looking at the log file I see:
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_mmap’: /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:387:2: error: too few arguments to function ‘calc_vm_prot_bits’
When running "sudo dkms install anbox-binder/1" it appears to complete and installs the module, but it shows these errors:
Adding any weak-modules depmod: ERROR: fstatat(5, vboxdrv.ko): No such file or directory depmod: ERROR: fstatat(5, vboxnetadp.ko): No such file or directory depmod: ERROR: fstatat(5, vboxsf.ko): No such file or directory depmod: ERROR: fstatat(5, vboxnetflt.ko): No such file or directory depmod: ERROR: fstatat(5, vboxguest.ko): No such file or directory depmod: ERROR: fstatat(5, vboxvideo.ko): No such file or directory depmod: ERROR: fstatat(5, vboxdrv.ko): No such file or directory depmod: ERROR: fstatat(5, vboxnetadp.ko): No such file or directory depmod: ERROR: fstatat(5, vboxsf.ko): No such file or directory depmod: ERROR: fstatat(5, vboxnetflt.ko): No such file or directory depmod: ERROR: fstatat(5, vboxguest.ko): No such file or directory depmod: ERROR: fstatat(5, vboxvideo.ko): No such file or directory
uname -a Linux cpu11 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
vbox*.ko are part of VirtualBox.
I think your ashmem problem is a duplicate of #14 . I just posted a workaround there.