ANBOX problemi

Discussioni sul progetto ROSA e aiuto agli utenti
Post Reply
User avatar
Alex-G
Utente
Utente
Posts: 108
Joined: 19 September 2011, 11:49
ROSA: Rosa
OpenMandriva: OpenMandriva
Kernel: Vari
Desktop: Vari
country: IT

ANBOX problemi

Post by Alex-G »

Per chi non sapesse cos'è Anbox: https://anbox.io/

Fa uso di 2 moduli che non sono presenti nel kernel e vengono caricati all' avvio da DKMS: binder e ashmem
Dunque stavo provando a installarlo ma pur essendoci i requisiti di base, qualcos.a è andato storto:

Macchina: Lenovo ThinkCentre M75n - ROSA Fresh Desktop 12.2 rosalinux:rosa:2021.1
Kernel: Linux 5.17.11-generic-2rosa2021.1-x86_64

dunque Anbox system-info

Code: Select all

binder: false
binderfs: false
ashmem: false
tutto il resto dei requisiti è a posto

ulteriori messaggi d' errore

Code: Select all

anbox-container-manager.service - Anbox Container Manager
     Loaded: loaded (/lib/systemd/system/anbox-container-manager.service; disabled; vendor preset: disabled)
     Active: inactive (dead)
       Docs: man:anbox(1)

set 13 07:38:24 localhost systemd[1]: Anbox Container Manager was skipped because of a failed condition check (ConditionPathExists=/var/lib/anbox/android.img).
Aggiungo anche il contenuto del log del makefile del modulo binder

Code: Select all

DKMS make.log for anbox-binder-5-3.git98f0f3 for kernel 5.17.11-generic-2rosa2021.1-x86_64 (x86_64)
gio 15 set 2022, 15:00:24, CEST
make -C /lib/modules/5.17.11-generic-2rosa2021.1-x86_64/build V=0 M=$PWD
make[1]: ingresso nella directory «/usr/src/linux-5.17.11-generic-2rosa2021.1-x86_64»
  CC [M]  /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.o
  CC [M]  /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/deps.o
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘task_get_unused_fd_flags’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:444:16: error: implicit declaration of function ‘__alloc_fd’ [-Werror=implicit-function-declaration]
  444 |         return __alloc_fd(files, 0, rlim_cur, flags);
      |                ^~~~~~~~~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘task_fd_install’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:454:17: error: implicit declaration of function ‘__fd_install’; did you mean ‘fd_install’? [-Werror=implicit-function-declaration]
  454 |                 __fd_install(proc->files, fd, file);
      |                 ^~~~~~~~~~~~
      |                 fd_install
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘task_close_fd’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:467:18: error: implicit declaration of function ‘__close_fd’; did you mean ‘close_fd’? [-Werror=implicit-function-declaration]
  467 |         retval = __close_fd(proc->files, fd);
      |                  ^~~~~~~~~~
      |                  close_fd
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘binder_update_page_range’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:667:23: error: implicit declaration of function ‘map_kernel_range_noflush’ [-Werror=implicit-function-declaration]
  667 |                 ret = map_kernel_range_noflush((unsigned long)page_addr,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:709:17: error: implicit declaration of function ‘unmap_kernel_range’ [-Werror=implicit-function-declaration]
  709 |                 unmap_kernel_range((unsigned long)page_addr, PAGE_SIZE);
      |                 ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘binder_translate_binder’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1638:49: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1638 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                             ~~~~^~~~~
      |                                                 |
      |                                                 struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:266:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  266 | int security_binder_transfer_binder(const struct cred *from,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1638:67: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1638 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                                        ~~~~~~~~~~~^~~~~
      |                                                                   |
      |                                                                   struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:267:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  267 |                                     const struct cred *to);
      |                                     ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘binder_translate_handle’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1680:49: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1680 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                             ~~~~^~~~~
      |                                                 |
      |                                                 struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:266:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  266 | int security_binder_transfer_binder(const struct cred *from,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1680:67: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1680 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                                        ~~~~~~~~~~~^~~~~
      |                                                                   |
      |                                                                   struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:267:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  267 |                                     const struct cred *to);
      |                                     ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘binder_translate_fd’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1752:49: error: passing argument 1 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1752 |         ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
      |                                             ~~~~^~~~~
      |                                                 |
      |                                                 struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:268:54: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  268 | int security_binder_transfer_file(const struct cred *from,
      |                                   ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1752:67: error: passing argument 2 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1752 |         ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
      |                                                        ~~~~~~~~~~~^~~~~
      |                                                                   |
      |                                                                   struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:269:54: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  269 |                                   const struct cred *to, struct file *file);
      |                                   ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘binder_transaction’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1979:53: error: passing argument 1 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1979 |                 if (security_binder_transaction(proc->tsk,
      |                                                 ~~~~^~~~~
      |                                                     |
      |                                                     struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:264:52: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  264 | int security_binder_transaction(const struct cred *from,
      |                                 ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:1980:60: error: passing argument 2 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1980 |                                                 target_proc->tsk) < 0) {
      |                                                 ~~~~~~~~~~~^~~~~
      |                                                            |
      |                                                            struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:265:52: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  265 |                                 const struct cred *to);
      |                                 ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘binder_ioctl_set_ctx_mgr’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:3274:51: error: passing argument 1 of ‘security_binder_set_context_mgr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 3274 |         ret = security_binder_set_context_mgr(proc->tsk);
      |                                               ~~~~^~~~~
      |                                                   |
      |                                                   struct task_struct *
In file included from /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:48:
./include/linux/security.h:263:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  263 | int security_binder_set_context_mgr(const struct cred *mgr);
      |                                     ~~~~~~~~~~~~~~~~~~~^~~
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c: In function ‘binder_mmap’:
/var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.c:3498:23: error: implicit declaration of function ‘get_files_struct’; did you mean ‘put_files_struct’? [-Werror=implicit-function-declaration]
 3498 |         proc->files = get_files_struct(current);
      |                       ^~~~~~~~~~~~~~~~
      |                       put_files_struct
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/anbox-binder/5-3.git98f0f3/build/binder.o] Errore 1
make[1]: *** [Makefile:1819: /var/lib/dkms/anbox-binder/5-3.git98f0f3/build] Errore 2
make[1]: uscita dalla directory «/usr/src/linux-5.17.11-generic-2rosa2021.1-x86_64»
make: *** [Makefile:8: all] Errore 2
A occhio sembra un problema di compilazione del gcc e/o con il kernel

Post Reply