Under examples/VFS, autoconf generates ./configure which in turn generates a wrong Makefile for the VFS examples ***WITHOUT*** the following #defines (with respect to the main Samba ./configure): -D_SAMBA_BUILD_=3 -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED This leads to structures disalignment between Samba daemon and VFS binaries, e.g.: sizeof(SMB_STRUCT_STAT) == 96 in Samba sizeof(SMB_STRUCT_STAT) == 88 in VFS modules Samba version: 3.0.27a Platform: Redhat Linux Fedora Core 7 i386 32-bit
The autoconf build system in examples/VFS was removed for Samba 4.1 by commit cbddf9e2efd856a25c6405f6893ad3a9cda1b181 Author: Andrew Bartlett <abartlet@samba.org> Date: Wed May 22 14:22:36 2013 +1000 build: Remove autoconf build system from examples/VFS Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>