Hello Recently I migrated from samba 3.0.24 to samba 3.2.5 on Debian etch amd64. In old system I have working samba-vscan used with ClamAV 0.91. Now I have ClamAV 0.94.2. I compiled vscan-clamav successfully, but when I try to connect to the share, it fails and I get some strange messages in the samba logs: "Error trying to resolve symbol 'init_samba_module' in /usr/samba/lib/vfs/vscan-clamav.so". Actually there is no such symbol inside compiled binary. Other compiled VFS modules have that symbol in binary. ClamAV socket is configured correctly and have proper rights. How to get working vscan- clamav with samba 3.2.5 ?? Next I compiled other antivirus VFS module - scannedonly from scannedonly-0.11_git.patch.gz. In compiled binary also I haven't found 'init_samba_module'. Any ideas?
Hi I made this patch for samba-vscan-0.3.6b because it a very old module. This solves the old samba init_module to new init_samba_module and the vanished pstring in samba. For me it works fine! - Thomas ==================================================================--- include/vscan-global.h.orig 2004-10-05 21:47:54.000000000 +0200 +++ include/vscan-global.h 2008-12-09 15:55:04.000000000 +0100 @@ -69,6 +69,17 @@ #endif #endif +/* Patched by T. Wild, 9.12.2008, because pstrcpy removed by samba.org */ +#define PSTRING_LEN 1024 +typedef char pstring[PSTRING_LEN]; +#define pstrcpy(d,s) safe_strcpy((d),(s),sizeof(pstring)-1) +#define pstrcat(d,s) safe_strcat((d),(s),sizeof(pstring)-1) + +/* Furthermore init_module changed to init_samba_module */ + +#define init_module(void) init_samba_module(void) + +/* end of patch by T. Wild */ #endif /* __VSCAN_GLOBAL_H */ ================================================================== Am 2008-12-30 17:59, Andrzej schrieb: Hello Recently I migrated from samba 3.0.24 to samba 3.2.5 on Debian etch amd64. In old system I have working samba-vscan used with ClamAV 0.91. Now I have ClamAV 0.94.2. I compiled vscan-clamav successfully, but when I try to connect to the share, it fails and I get some strange messages in the samba logs: "Error trying to resolve symbol 'init_samba_module' in /usr/samba/lib/vfs/vscan-clamav.so". Actually there is no such symbol inside compiled binary. Other compiled VFS modules have that symbol in binary. ClamAV socket is configured correctly and have proper rights. How to get working vscan-clamav with samba 3.2.5 ?? Next I compiled other antivirus VFS module - scannedonly from scannedonly-0.11_git.patch.gz. In compiled binary also I haven't found 'init_samba_module'. Any ideas? -- mfg/regards Thomas Wild ----------------------------------------------------------------- Thomas Wild www.ids-gmbh.de Thomas.Wild <at> ids-gmbh.de
Hello Thomas I know that is old module but it is very handy. I patched samba-vscan with your patch but I can't compile it: ~/samba-3.2.5/source/include/proto.h: In function ?vfs_scannedonly_init?: ~/samba-3.2.5/source/include/proto.h:5216: error: ?scannedonly_op_tuples? undeclared (first use in this function) ~/samba-3.2.5/source/include/proto.h:5216: error: (Each undeclared identifier is reported only once ~/samba-3.2.5/source/include/proto.h:5216: error: for each function it appears in.) ~/samba-3.2.5/source/include/proto.h:5216: error: incompatible types in return ~/samba-3.2.5/source/include/proto.h: At top level: ~/samba-3.2.5/source/include/proto.h:10185: error: conflicting types for ?smb_register_vfs? ~/samba-3.2.5/source/include/proto.h:5216: error: previous implicit declaration of ?smb_register_vfs? was here :( I build dazuko, it should be a little bit faster than samba-vscan, and I hope it will work for me. However samba-vscan have got nice features like notification via winpopup or possibility of using libclamav instead clamd, which dazuko haven't got.
Hi Andrzej, try the patch create by me and Leonardo available in https://sourceforge.net/tracker/?func=detail&atid=310590&aid=2521012&group_id=10590 and post your comments. This solution worked fine for us. We use Samba 3.2.5, Samba-vscan and Clamav on a Debian Etch amd64 server. Clever Jr.