Bug 8716

Summary: не собирается etercifs 5.4.3 под SUSE 12.1
Product: CIFS@Etersoft Reporter: Дмитрий Галочкин <dm>
Component: компиляция модуляAssignee: Pavel Shilovsky <piastry>
Status: CLOSED FIXED QA Contact: Дмитрий Галочкин <dm>
Severity: minor    
Priority: P4 CC: akadown, lav, sin
Version: не указана   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Заявки RT: 26192 Связано с:
Дата напоминания:
Bug Depends on:    
Bug Blocks: 8896    
Deadline: 2012-10-31   

Description Дмитрий Галочкин 2012-09-21 17:37:19 MSK
Building etercifs 5.4.3 for 3.1.10-1.16-vanilla Linux kernel (headers in /lib/modules/3.1.10-1.16-vanilla/build) /usr/bin/gcc
Checking the kernel configuration...
OK
Setting etercifs version: OK
make: Entering directory `/usr/src/linux-3.1.10-1.16-obj/x86_64/vanilla'
make: Leaving directory `/usr/src/linux-3.1.10-1.16-obj/x86_64/vanilla'
make: Entering directory `/usr/src/linux-3.1.10-1.16-obj/x86_64/vanilla'
  CC [M]  /tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.o
  CC [M]  /tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifssmb.o
  CC [M]  /tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifs_debug.o
  CC [M]  /tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.o
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:526:2:  warning: initialization from incompatible pointer type [enabled by  default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:526:2:  warning: (near initialization for 'cifs_super_ops.show_options')  [enabled by default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:530:2:  warning: initialization from incompatible pointer type [enabled by  default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:530:2:  warning: (near initialization for 'cifs_super_ops.show_stats') [enabled  by default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:777:2:  warning: initialization from incompatible pointer type [enabled by  default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:777:2:  warning: (near initialization for 'cifs_dir_inode_ops.create') [enabled  by default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:782:2:  warning: initialization from incompatible pointer type [enabled by  default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:782:2:  warning: (near initialization for 'cifs_dir_inode_ops.mkdir') [enabled  by default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:789:2:  warning: initialization from incompatible pointer type [enabled by  default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/cifsfs.c:789:2:  warning: (near initialization for 'cifs_dir_inode_ops.mknod') [enabled  by default]
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.c: In function 'cifs_set_cifscreds':
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.c:2109:21:  error: 'key_type_logon' undeclared (first use in this function)
/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.c:2109:21:  note: each undeclared identifier is reported only once for each  function it appears in
make[3]: *** [/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-3.1.10-1.16-obj/x86_64/vanilla'
can't locate built module etercifs.ko
Comment 1 Дмитрий Галочкин 2012-10-31 13:22:59 MSK
Точно такой же вывод и при сборке 5.4.4

/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.c: In function
'cifs_set_cifscreds':

/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.c:2109:21: 
error: 'key_type_logon' undeclared (first use in this function)

/tmp/Etercifs.pKtIfyvA/kernel-source-etercifs-3.3-1.76/connect.c:2109:21: 
note: each undeclared identifier is reported only once for each  function it
appears in

Имя виртуалки - openSUSE 12.1 x64
Два снимка с названием - 8716 (для 5.4.3 и 5.4.4)
Comment 2 Pavel Shilovsky 2012-10-31 14:06:00 MSK
Разобрался в чём проблема - grep 3.1 подхватывал не только ...-3.1-1... но и ...-3.3-1... исходники. Исправление будет в следующей версии etercifs - 5.4.5.
Comment 3 Pavel Shilovsky 2012-11-29 07:10:55 MSK
*** Bug 8855 has been marked as a duplicate of this bug. ***
Comment 4 Pavel Shilovsky 2012-12-12 17:50:26 MSK
Решена.