Bug 9297 - configure in source3: fix check 64 bit off_t
configure in source3: fix check 64 bit off_t
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: Build
All Linux
: P5 trivial
: ---
Assigned To: Björn Jacke
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2012-10-18 06:34 UTC by Boris Savelev
Modified: 2013-01-27 14:26 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Boris Savelev 2012-10-18 06:34:32 UTC

I try to configure source3 from last samba4 tarball on Debian Etch AMD64 and get an error:
checking if large file support can be enabled... checking for 64 bit off_t... no
configure: error: "large file support support not available: sizeof(off_t) != 8"

But early I see:
checking size of off_t... 8

I try to compile test myself:
cat test.c 
#include <stdio.h>
#include <sys/stat.h>
main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
gcc test.c
test.c: In function 'main':
test.c:3: warning: incompatible implicit declaration of built-in function 'exit'
test.c:3: error: 'off_t' undeclared (first use in this function)
test.c:3: error: (Each undeclared identifier is reported only once
test.c:3: error: for each function it appears in.)

After adding "#include <sys/types.h>"
Test compiled and run ok
Comment 1 Andrew Bartlett 2012-11-14 22:23:21 UTC
Does the top level waf build work for you?