Samba4 compiling error

Joel Reed joelwreed at gmail.com
Mon Oct 27 12:55:35 GMT 2008


Hannu Tikka wrote:
> Hi
>
> Get following compiling error:
> ------------------
> Compiling ntvfs/sysdep/inotify.c
> In file included from /usr/include/asm/fcntl.h:1,
>                  from /usr/include/linux/fcntl.h:4,
>                  from /usr/include/linux/inotify.h:11,
>                  from ntvfs/sysdep/inotify.c:32:
> /usr/include/asm-generic/fcntl.h:117: error: redefinition of ‘struct
> flock’
> /usr/include/asm-generic/fcntl.h:140: error: redefinition of ‘struct
> flock64’
> ntvfs/sysdep/inotify.c: In function ‘inotify_watch’:
> ntvfs/sysdep/inotify.c:337: warning: ‘global_loadparm’ is
> deprecated
> (declared at ./param/param.h:73)
> The following command failed:
> gcc  -fPIC -I./include -I. -I./lib -I./../lib/replace -I./../lib/talloc
> -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H  -c ntvfs/sysdep/inotify.c -o
> ntvfs/sysdep/inotify.o
> make: *** [ntvfs/sysdep/inotify.o] Error 1
> ------------------
>
> tried two different distros:
> mandriva 2009.0 i386 and ubuntu 8.10 i386.
> Am I missing some package or what is the matter?
this patch from the debian experimental package fixes the problem.

jr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 00_inotify_ftbfs.diff
Type: text/x-patch
Size: 600 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081027/66333ac7/00_inotify_ftbfs.bin


More information about the samba-technical mailing list