samba 2.2.2 compilation error under linux7.2

Martin Pool mbp at
Mon Dec 3 20:04:04 GMT 2001

> I got the following error with none or any
> configuration options I use. Have any of you met the
> following problem?
> Compiling smbd/server.c
> In file included from /usr/include/linux/vfs.h:4,
> 		 from /usr/include/linux/fs.h:14,
> 		 from /usr/include/linux/capability.h:17
> 		 from /usr/include/sys/capability.h:24
> 		 from smbd/server.c:22
> /usr/include/asm/statfs.h:12: refinition of 'struct
> statfs'
> make: ***[smbd/server.o] Error 1
> I also noticed that /usr/include/bits/statfs.h and
> /usr/include/asm/statfs.h both define 'struct statfs'
> but with different fields definitions. Should I change
> includes.h to use asm/statfs.h?

A conflict there is probably not Samba's fault, but rather indicates
that your kernel or C header files are not properly installed or are
conflicting.  Make sure you're using versions of both that your
distributor has marked as compatible.


More information about the samba-technical mailing list