Автор Тема: etercifs-build не отрабатывает  (Прочитано 1652 раз)

Оффлайн Сергей-Нск

  • Участник
  • *
  • Сообщений: 1
etercifs-build не отрабатывает
« : 06.02.2020 09:07:38 »
Alt Образование 9
 uname -r
4.19.99-std-def-alt1

 etercifs-build

Building etercifs 5.6.0 for 4.19.99-std-def-alt1 Linux kernel (use headers in /lib/modules/4.19.99-std-def-alt1/build)
Detected ALTLinux/p9 via distr_info from EEPM
Building for 4.14 kernel version
Use GCC 8 from /lib/modules/4.19.99-std-def-alt1/build/gcc_version.inc
/usr/bin/gcc-8
Checking the kernel configuration...
OK
Setting etercifs version: OK
make: вход в каталог «/usr/src/linux-4.19.99-std-def-alt1»
make: выход из каталога «/usr/src/linux-4.19.99-std-def-alt1»
make: вход в каталог «/usr/src/linux-4.19.99-std-def-alt1»
  CC [M]  /tmp/.private/root/Etercifs.e07OrHL3/4.14/cifsfs.o
  CC [M]  /tmp/.private/root/Etercifs.e07OrHL3/4.14/cifssmb.o
  CC [M]  /tmp/.private/root/Etercifs.e07OrHL3/4.14/cifs_debug.o
  CC [M]  /tmp/.private/root/Etercifs.e07OrHL3/4.14/connect.o
/tmp/.private/root/Etercifs.e07OrHL3/4.14/cifsfs.c:903:17: error: initialization of ‘int (*)(struct inode *, struct dentry *, struct file *, unsigned int,  umode_t)’ {aka ‘int (*)(struct inode *, struct dentry *, struct file *, unsigned int,  short unsigned int)’} from incompatible pointer type ‘int (*)(struct inode *, struct dentry *, struct file *, unsigned int,  umode_t,  int *)’ {aka ‘int (*)(struct inode *, struct dentry *, struct file *, unsigned int,  short unsigned int,  int *)’} [-Werror=incompatible-pointer-types]
  .atomic_open = cifs_atomic_open,
                 ^~~~~~~~~~~~~~~~
/tmp/.private/root/Etercifs.e07OrHL3/4.14/cifsfs.c:903:17: note: (near initialization for ‘cifs_dir_inode_ops.atomic_open’)
  CC [M]  /tmp/.private/root/Etercifs.e07OrHL3/4.14/dir.o
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:303: /tmp/.private/root/Etercifs.e07OrHL3/4.14/cifsfs.o] Ошибка 1
make[1]: *** Ожидание завершения заданий…
/tmp/.private/root/Etercifs.e07OrHL3/4.14/dir.c: In function ‘cifs_atomic_open’:
/tmp/.private/root/Etercifs.e07OrHL3/4.14/dir.c:547:14: error: ‘FILE_CREATED’ undeclared (first use in this function); did you mean ‘FILE_CREATE’?
   *opened |= FILE_CREATED;
              ^~~~~~~~~~~~
              FILE_CREATE
/tmp/.private/root/Etercifs.e07OrHL3/4.14/dir.c:547:14: note: each undeclared identifier is reported only once for each function it appears in
/tmp/.private/root/Etercifs.e07OrHL3/4.14/dir.c:549:7: error: too many arguments to function ‘finish_open’
  rc = finish_open(file, direntry, generic_file_open, opened);
       ^~~~~~~~~~~
In file included from /tmp/.private/root/Etercifs.e07OrHL3/4.14/dir.c:23:
./include/linux/fs.h:2482:12: note: declared here
 extern int finish_open(struct file *file, struct dentry *dentry,
            ^~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:303: /tmp/.private/root/Etercifs.e07OrHL3/4.14/dir.o] Ошибка 1
In file included from ./include/linux/bitmap.h:9,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:81,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/wait.h:9,
                 from ./include/linux/wait_bit.h:8,
                 from ./include/linux/fs.h:6,
                 from /tmp/.private/root/Etercifs.e07OrHL3/4.14/cifssmb.c:30:
In function ‘strncpy’,
    inlined from ‘CIFSSMBSetEA’ at /tmp/.private/root/Etercifs.e07OrHL3/4.14/cifssmb.c:6357:3:
./include/linux/string.h:249:9: warning: ‘__builtin_strncpy’ offset [8, 65543] is out of the bounds [0, 4] [-Warray-bounds]
  return __builtin_strncpy(p, q, size);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:1523: _module_/tmp/.private/root/Etercifs.e07OrHL3/4.14] Ошибка 2
make: выход из каталога «/usr/src/linux-4.19.99-std-def-alt1»
---------------------------------
Как победить?



Оффлайн yaleks

  • Мастер
  • ***
  • Сообщений: 6 242
Re: etercifs-build не отрабатывает
« Ответ #1 : 06.02.2020 18:08:06 »
http://download.etersoft.ru/pub/Etersoft/CIFS%40Etersoft/last/ALTLinux/p9/ проверьте.

Вы 7.7 всё ещё используете что-ли?