[Sysadmins] Что лишнее?

Andrey Kuleshov andrey на kuleshov.in.ua
Пт Мар 5 09:17:13 UTC 2010


Доброго времени!

Откуда берутся переопределения? Вероятно, надо что-то сносить?

# service etercifs build

Building for 2.6.30-std-def-alt15 Linux kernel (headers in 
/lib/modules/2.6.30-std-def-alt15/build)
Use GCC 4.3
/usr/bin/gcc-4.3
Checking the kernel configuration...
OK
Setting etercifs version: OK
make: Entering directory `/usr/src/linux-2.6.30-std-def-alt15'
make: Leaving directory `/usr/src/linux-2.6.30-std-def-alt15'
make: Entering directory `/usr/src/linux-2.6.30-std-def-alt15'
   CC [M]  
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifsfs.o 

   CC [M]  
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.o 

In file included from 
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifsfs.c:40:
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifspdu.h:808: 
error: redefinition of ‘struct smb_com_flush_req’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifspdu.h:812: 
error: redefinition of typedef ‘FLUSH_REQ’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifspdu.h:801: 
error: previous declaration of ‘FLUSH_REQ’ was here
In file included from 
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.c:35: 

/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifspdu.h:808: 
error: redefinition of ‘struct smb_com_flush_req’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifspdu.h:812: 
error: redefinition of typedef ‘FLUSH_REQ’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifspdu.h:801: 
error: previous declaration of ‘FLUSH_REQ’ was here
make[1]: *** 
[/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifsfs.o] 
Error 1
make[1]: *** Waiting for unfinished jobs....
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.c: 
In function ‘SMBLegacyOpen’:
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.c:1180: 
warning: unused variable ‘count’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.c:1179: 
warning: unused variable ‘name_len’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.c:1178: 
warning: unused variable ‘bytes_returned’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.c:1177: 
warning: unused variable ‘pSMBr’
/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.c:1176: 
warning: unused variable ‘pSMB’
make[1]: *** 
[/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58/cifssmb.o] 
Error 1
make: *** 
[_module_/tmp/.private/root/Etercifs.IXTGJdqj/kernel-source-etercifs-2.6.30-1.58] 
Error 2
make: Leaving directory `/usr/src/linux-2.6.30-std-def-alt15'
can't locate built module etercifs.ko
#


Подробная информация о списке рассылки Sysadmins