Bug 5110 - autoconf does not generate correct #defines for VFS examples
autoconf does not generate correct #defines for VFS examples
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: VFS
3.0.27
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-27 06:55 UTC by Leonardo Bettarello
Modified: 2007-11-27 06:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Bettarello 2007-11-27 06:55:26 UTC
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