LINUX.ORG.RU

Не фурычит anbox на Linux mint

 


0

1

Распросов не надо, просто решил поставить Linux Mint на старый ноут без монитора

DKMS make.log for anbox-binder-1 for kernel 5.4.0-99-generic (x86_64)
Чт 24 фев 2022 18:37:43 +05
make -C /lib/modules/5.4.0-99-generic/build V=0 M=$PWD
make[1]: вход в каталог «/usr/src/linux-headers-5.4.0-99-generic»
  AR      /var/lib/dkms/anbox-binder/1/build/built-in.a
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4103: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4103 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      | 
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4103: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4103 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      | 
<command-line>: note: this is the location of the previous definition
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_binder’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1626:42: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1626 |  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                      ~~~~^~~~~
      |                                          |
      |                                          struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:255:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  255 | int security_binder_transfer_binder(const struct cred *from,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1626:60: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1626 |  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                                 ~~~~~~~~~~~^~~~~
      |                                                            |
      |                                                            struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:256:28: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  256 |         const struct cred *to);
      |         ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_handle’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1668:42: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1668 |  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                      ~~~~^~~~~
      |                                          |
      |                                          struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:255:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  255 | int security_binder_transfer_binder(const struct cred *from,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1668:60: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1668 |  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                                 ~~~~~~~~~~~^~~~~
      |                                                            |
      |                                                            struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:256:28: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  256 |         const struct cred *to);
      |         ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_fd’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1740:42: error: passing argument 1 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1740 |  ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
      |                                      ~~~~^~~~~
      |                                          |
      |                                          struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:257:54: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  257 | int security_binder_transfer_file(const struct cred *from,
      |                                   ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1740:60: error: passing argument 2 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1740 |  ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
      |                                                 ~~~~~~~~~~~^~~~~
      |                                                            |
      |                                                            struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:258:26: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  258 |       const struct cred *to, struct file *file);
      |       ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_transaction’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1967:39: error: passing argument 1 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1967 |   if (security_binder_transaction(proc->tsk,
      |                                   ~~~~^~~~~
      |                                       |
      |                                       struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:253:52: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  253 | int security_binder_transaction(const struct cred *from,
      |                                 ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1968:18: error: passing argument 2 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1968 |       target_proc->tsk) < 0) {
      |       ~~~~~~~~~~~^~~~~
      |                  |
      |                  struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:254:24: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  254 |     const struct cred *to);
      |     ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_ioctl_set_ctx_mgr’:
/var/lib/dkms/anbox-binder/1/build/binder.c:3262:44: error: passing argument 1 of ‘security_binder_set_context_mgr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 3262 |  ret = security_binder_set_context_mgr(proc->tsk);
      |                                        ~~~~^~~~~
      |                                            |
      |                                            struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:252:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  252 | int security_binder_set_context_mgr(const struct cred *mgr);
      |                                     ~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:270: /var/lib/dkms/anbox-binder/1/build/binder.o] Ошибка 1
make[1]: *** [Makefile:1762: /var/lib/dkms/anbox-binder/1/build] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-5.4.0-99-generic»
make: *** [Makefile:8: all] Ошибка 2

Ответ на: комментарий от Dumppper001

А, ну да. Но у тебя тоже не те/ не так структуры передаются. Напиши issue, тут тебе локально может кто и полезет код смотреть и искать где там что расходится. Но сомневаюсь.

LINUX-ORG-RU ★★★★★ ()
Последнее исправление: LINUX-ORG-RU (всего исправлений: 1)
Для того чтобы оставить комментарий войдите или зарегистрируйтесь.