@starejkarlik & @messagebus:
Díky máte pravdu, asi jsem po tom omylem rebootnul ten druhej server s debianem. Už to frčí, děkuji.
[root@testuju anbox-modules-master]# uname -r
3.10.0-957.12.1.el7.x86_64
Nicméně narazil jsem na další chybovku, zatímco instalace binder proběhla bez problému (stále se snažím postupovat dle návodu: https://github.com/anbox/anbox-modules):
[root@testuju anbox-modules-master]# dkms install anbox-binder/1
Module anbox-binder/1 already installed on kernel 3.10.0-957.12.1.el7.x86_64/x86_64
Ashmem dělá problémy u kterých se mi nedaří vygooglit řešení:
[root@testuju anbox-modules-master]# dkms install anbox-ashmem/1
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j1 KERNELRELEASE=3.10.0-957.12.1.el7.x86_64 all KERNEL_SRC=/lib/modules/3.10.0-957.12.1.el7.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-957.12.1.el7.x86_64 (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
[root@testuju anbox-modules-master]#
[root@testuju anbox-modules-master]# cat /var/lib/dkms/anbox-ashmem/1/build/make.log
DKMS make.log for anbox-ashmem-1 for kernel 3.10.0-957.12.1.el7.x86_64 (x86_64)
Wed May 1 19:12:03 CEST 2019
make -C /lib/modules/3.10.0-957.12.1.el7.x86_64/build V=0 M=$PWD
make[1]: Entering directory `/usr/src/kernels/3.10.0-957.12.1.el7.x86_64'
LD /var/lib/dkms/anbox-ashmem/1/build/built-in.o
CC [M] /var/lib/dkms/anbox-ashmem/1/build/deps.o
/var/lib/dkms/anbox-ashmem/1/build/deps.c: In function ‘shmem_zero_setup’:
/var/lib/dkms/anbox-ashmem/1/build/deps.c:9:24: warning: assignment makes pointer from integer without a cast [enabled by default]
shmem_zero_setup_ptr = kallsyms_lookup_name("shmem_zero_setup");
^
/var/lib/dkms/anbox-ashmem/1/build/deps.c: At top level:
cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default]
CC [M] /var/lib/dkms/anbox-ashmem/1/build/ashmem.o
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_read’:
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:321:3: warning: passing argument 2 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default]
ret = kernel_read(asma->file, buf, len, pos);
^
In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25:0:
include/linux/fs.h:2855:12: note: expected ‘loff_t’ but argument is of type ‘char *’
extern int kernel_read(struct file *, loff_t, char *, unsigned long);
^
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:321:3: warning: passing argument 3 of ‘kernel_read’ makes pointer from integer without a cast [enabled by default]
ret = kernel_read(asma->file, buf, len, pos);
^
In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25:0:
include/linux/fs.h:2855:12: note: expected ‘char *’ but argument is of type ‘size_t’
extern int kernel_read(struct file *, loff_t, char *, unsigned long);
^
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:321:3: warning: passing argument 4 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default]
ret = kernel_read(asma->file, buf, len, pos);
^
In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25:0:
include/linux/fs.h:2855:12: note: expected ‘long unsigned int’ but argument is of type ‘loff_t *’
extern int kernel_read(struct file *, loff_t, char *, unsigned long);
^
/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’
if (unlikely((vma->vm_flags & ~calc_vm_prot_bits(asma->prot_mask)) &
^
In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:30:0:
include/linux/mman.h:110:1: note: declared here
calc_vm_prot_bits(unsigned long prot, unsigned long pkey)
^
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:387:2: error: too few arguments to function ‘calc_vm_prot_bits’
if (unlikely((vma->vm_flags & ~calc_vm_prot_bits(asma->prot_mask)) &
^
In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:30:0:
include/linux/mman.h:110:1: note: declared here
calc_vm_prot_bits(unsigned long prot, unsigned long pkey)
^
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_shrink_scan’:
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:461:10: error: ‘SHRINK_STOP’ undeclared (first use in this function)
return SHRINK_STOP;
^
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:461:10: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c: At top level:
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:494:2: error: unknown field ‘count_objects’ specified in initializer
.count_objects = ashmem_shrink_count,
^
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:494:2: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:494:2: warning: (near initialization for ‘ashmem_shrinker.shrink’) [enabled by default]
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: error: unknown field ‘scan_objects’ specified in initializer
.scan_objects = ashmem_shrink_scan,
^
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: warning: (near initialization for ‘ashmem_shrinker.seeks’) [enabled by default]
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: error: initializer element is not computable at load time
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: error: (near initialization for ‘ashmem_shrinker.seeks’)
cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default]
make[2]: *** [/var/lib/dkms/anbox-ashmem/1/build/ashmem.o] Error 1
make[1]: *** [_module_/var/lib/dkms/anbox-ashmem/1/build] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-957.12.1.el7.x86_64'
make: *** [all] Error 2
[root@testuju anbox-modules-master]#
@k3dAR: Symlink stejným způsobem jsem již zkoušel. Nepomohlo viz. výpis níže. Jelikož jsis dal docela práci práci ještě poradit s Debianem, tak je furt ve hře, zkusím tvůj poslední návod. Děkuji ti moc. Každopádně raději bych byl kdyby to fakčilo na centosu. Admin serveru má v plánu debian nadále nepodporovat a nechat tam jen centos. Je to hold redheťák. Takže Debian na serveru ideálně vůbec nechce. Já sem to začal dělat na Debianu, jen ze zoufalosti, protože jsem se zaseknul na tom Centosu.