Bug 14485 - waf configure fails with error about missing large file support
Summary: waf configure fails with error about missing large file support
Status: NEW
Alias: None
Product: TALLOC
Classification: Unclassified
Component: libtalloc (show other bugs)
Version: unspecified
Hardware: x64 Windows 10
: P5 normal
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Samba QA Contact
Depends on:
Reported: 2020-09-09 02:02 UTC by Maarten
Modified: 2020-09-10 08:58 UTC (History)
1 user (show)

See Also:

waf configure: Visual Studio 2017 Failed LFS (4.18 KB, text/plain)
2020-09-09 02:02 UTC, Maarten
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten 2020-09-09 02:02:55 UTC
Created attachment 16207 [details]
waf configure: Visual Studio 2017 Failed LFS

I'm currently working on creating conan [1] packages for talloc and tevent.
The build scripts would then get pushed to the central build script server at conan-center-index [2].

On Linux, building (and using) talloc and tevent works fine,
but on Windows (both Visual Studio and mingw) the configure step fails with the following error:
Checking for header assert.h                             : yes
Checking getconf LFS_CFLAGS                              : not found
Checking for large file support without additional flags : not found
Checking for -D_FILE_OFFSET_BITS=64                      : not found
Checking for -D_LARGE_FILES                              : not found
Samba requires large file support support, but not available on this platform: sizeof(off_t) < 8

The complete command that is used to configure talloc is:
python C:/Users/maarten/.conan/data/talloc/2.3.1/_/_/build/970e773c5651dc2560f86200a4ea56c23f568ff9/source_subfolder/buildtools/bin/waf configure --without-gettext --disable-python --disable-rpath --disable-rpath-install -C --prefix=C:/Users/maarten/.conan/data/talloc/2.3.1/_/_/package/970e773c5651dc2560f86200a4ea56c23f568ff9 --check-c-compiler=msvc

I've attached the complete log.

Note that I made sure to use vcvars when building with Visual Studio.


[1] https://conan.io/
[2] https://github.com/conan-io/conan-center-index
Comment 1 Maarten 2020-09-09 02:47:19 UTC
I forgot to mention this is using talloc release 2.3.1.
Comment 2 Jeremy Allison 2020-09-09 19:26:00 UTC
What configure options does Windows use to enable large file support ? Obviously Windows is correctly large-file-aware and uses 64-bit offsets for everything, but something in the VC++ configs isn't detecting this.

We require that off_t be detected as 64-bits in size to work.