ClamAV VFS module in samba 3.6.1

Richard Sharpe realrichardsharpe at gmail.com
Sat Oct 29 11:31:55 MDT 2011


On Sat, Oct 29, 2011 at 10:22 AM, Theodor Chirana <office at adaptcom.ro> wrote:
> On 10/29/2011 8:10 PM, Richard Sharpe wrote:
>>
>> On Sat, Oct 29, 2011 at 9:43 AM, Theodor Chirana<office at adaptcom.ro>
>>  wrote:
>>>
>>> Hello,
>>> Today I started to update my PDC's and BDC's to samba latest (3.6.1) and
>>> surprisingly the vfs module for clamav seems not to be su[pported
>>> anymore.
>>> Even the make option for samba 3.6.1 (make proto) which is required by
>>> this
>>> vfs module is not present. Anyoane have a solution to this?? or nobody
>>> encountered the error and I just found a new one?
>>
>> Were you previously working with 3.5.x?
>>
>> Things have changed in 3.6.x and in master. For example, make proto no
>> longer works and functions you want to make visible are statically
>> added to one of the include files now. (At least that has been my
>> experience.)
>>
>> Why does your VFS module require make proto? Are you modifying Samba
>> or making more functions visible in a VFS module?
>>
>> I suggest that you work with the git repository and base all your work
>> against master. That way, it will be easier for your work to be
>> included in future versions. You will, however, have to make separate
>> patches available for 3.6.1, etc, most likely.
>>
> Hello,
> I am trying to compile samba-vscan (not a module of mine) but it fails. I
> update fro samba 3.0.30 and all settings worked ok, even the ldap schema,
> but not clamav VFS module for samba.

>From the look of things no one has kept the VFS examples up to date
:-( Your task, should you choose to accept it ...

> Here are the errors:
> Compiling global/vscan-functions.c with -fPIC
> In file included from
> /usr/local/src/samba-3.6.1/examples/VFS/samba-vscan/include/vscan-global.h:4,
>                 from global/vscan-functions.c:15:
> /usr/local/src/samba-3.6.1/source/include/includes.h:23:32: error:
> ../replace/replace.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/include/includes.h:33:2: error: #error
> "make sure you have removed all config.h files from standalone builds!"
> /usr/local/src/samba-3.6.1/source/include/includes.h:34:2: error: #error
> "the included config.h isn't from samba!"
> /usr/local/src/samba-3.6.1/source/include/includes.h:71:24: error:
> system/dir.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/include/includes.h:72:27: error:
> system/locale.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/include/includes.h:73:25: error:
> system/time.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/include/includes.h:74:25: error:
> system/wait.h: No such file or directory
> In file included from
> /usr/local/src/samba-3.6.1/examples/VFS/samba-vscan/include/vscan-global.h:4,
>                 from global/vscan-functions.c:15:
> /usr/local/src/samba-3.6.1/source/include/includes.h:196: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'volatile'
> /usr/local/src/samba-3.6.1/source/include/includes.h:328: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'br_off'
> /usr/local/src/samba-3.6.1/source/include/includes.h:368: error: expected
> specifier-qualifier-list before 'dev_t'
> In file included from
> /usr/local/src/samba-3.6.1/source/include/includes.h:506,
>                 from
> /usr/local/src/samba-3.6.1/examples/VFS/samba-vscan/include/vscan-global.h:4,
>                 from global/vscan-functions.c:15:
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:24:38: error:
> lib/util/charset/charset.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:25:27: error:
> lib/util/attr.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:28:20: error: talloc.h:
> No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:40:27: error:
> lib/util/time.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:41:32: error:
> lib/util/data_blob.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:42:28: error:
> lib/util/xfile.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:43:32: error:
> lib/util/byteorder.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:44:35: error:
> lib/util/talloc_stack.h: No such file or directory
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:64:29: error:
> lib/util/memory.h: No such file or directory
> In file included from
> /usr/local/src/samba-3.6.1/source/include/includes.h:506,
>                 from
> /usr/local/src/samba-3.6.1/examples/VFS/samba-vscan/include/vscan-global.h:4,
>                 from global/vscan-functions.c:15:
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:69: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'void'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:74: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before '_NORETURN_'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:88: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'bool'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:96: error: expected ')'
> before 'block'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:123: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'struct'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:124: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'struct'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:129: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'pid_t'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:134: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'pid_t'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:136: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'int'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:140: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'int'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:147: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'int'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:153: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'void'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:158: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'void'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:165: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'void'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:171: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'void'
> /usr/local/src/samba-3.6.1/source/../lib/util/util.h:176: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'uint32_t'
> ........\
>
>
> ....../
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:84: warning: excess elements in scalar initializer
> global/vscan-functions.c:84: warning: (near initialization for
> 'urlchr_table')
> global/vscan-functions.c:89: error: expected declaration specifiers before
> 'BOOL'
> global/vscan-functions.c:114: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '{' token
> global/vscan-functions.c:128: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '{' token
> global/vscan-functions.c:141: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '{' token
> global/vscan-functions.c:188: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '{' token
> global/vscan-functions.c:221: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '{' token
> global/vscan-functions.c:248: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '{' token
> global/vscan-functions.c:255: error: old-style parameter declarations in
> prototyped function definition
> global/vscan-functions.c:254: error: expected '{' at end of input
> make: *** [global/vscan-functions.po] Error 1
> "
>
>



-- 
Regards,
Richard Sharpe


More information about the samba-technical mailing list