Bug 9297 - configure in source3: fix check 64 bit off_t
Summary: configure in source3: fix check 64 bit off_t
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.0.0rc3
Hardware: All Linux
: P5 trivial (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2012-10-18 06:34 UTC by Boris Savelev
Modified: 2019-06-11 21:24 UTC (History)
2 users (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?
Comment 2 Andrew Bartlett 2019-06-11 20:38:28 UTC
The old autoconf build system in which this bug was found is no longer part of any supported Samba version, so marking as WONTFIX.  Sorry!