anbox-modules icon indicating copy to clipboard operation
anbox-modules copied to clipboard

Build fails on Fedora 32

Open toggenation opened this issue 4 years ago • 3 comments

uname -a Linux tgn-ws01-tgn-home 5.6.19-300.fc32.x86_64 #1 SMP Wed Jun 17 16:10:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

When running INSTALL.sh

./INSTALL.sh modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.6.19-300.fc32.x86_64 modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.6.19-300.fc32.x86_64

toggenation avatar Jul 16 '20 23:07 toggenation

I have the same problem, I tried (with no success) to do yum update, reboot, then yum install make kernel-headers kernel-devel ut I have this error in the log file :

/var/lib/dkms/anbox-binder/1/build/binder.c:633:19: erreur: « struct mm_struct » n'a pas de membre nommé « mmap_sem »; vouliez-vous employer « mmap_base » ? 633 | down_write(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /var/lib/dkms/anbox-binder/1/build/binder.c:683:17: erreur: « struct mm_struct » n'a pas de membre nommé « mmap_sem »; vouliez-vous employer « mmap_base » ? 683 | up_write(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /var/lib/dkms/anbox-binder/1/build/binder.c:710:17: erreur: « struct mm_struct » n'a pas de membre nommé « mmap_sem »; vouliez-vous employer « mmap_base » ? 710 | up_write(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:280: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1 make[1]: *** [Makefile:1756: /var/lib/dkms/anbox-binder/1/build] Error 2 make[1] : on quitte le répertoire « /usr/src/kernels/5.8.8-200.fc32.x86_64 » make: *** [Makefile:8: all] Error 2

Any Idea ? Someone ?

badrow avatar Sep 15 '20 13:09 badrow

Hi, I get this problem too on Fedora 32. Is RedHat/CentOS/Fedora exporting kallsyms_lookup_name?

MODPOST /var/lib/dkms/anbox-ashmem/1/build/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-ashmem/1/build/ashmem_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:111: /var/lib/dkms/anbox-ashmem/1/build/Module.symvers] Error 1

mpichot avatar Oct 15 '20 16:10 mpichot

I got kallsyms_lookup_name undefined error with Fedora 31 as well, although I can find the name mentioned in /proc/kallsyms:

# fgrep kallsyms_lookup_name /proc/kallsyms ffffffff92189b50 T module_kallsyms_lookup_name ffffffff9218a520 T kallsyms_lookup_name

Also, the symbol kallsyms_lookup_name apparently in the way to go from official Linux kernel, not sure if that related to this issue. - https://lwn.net/Articles/813350/

arifsaha avatar Oct 20 '20 21:10 arifsaha